Closed tisaud closed 3 years ago
For anyone having random issues on windows using Docker to build I recommend checking that your git config has autocrlf disabled, and if you have disabled it since pulling, do a fresh pull of the repo to ensure all LF line endings are intact. Caused me all kinds of problems that seemed unrelated to line endings until I did a fresh pull with aurocrlf off.
System information
Describe the problem I'm trying to build a docker image for Windows. Follow this. https://github.com/homuler/MediaPipeUnityPlugin#docker-for-windows-experimental
Full logs C:\MediaPipe\MediaPipeUnityPlugin>docker build -t mediapipe_unity:windows . -f docker/windows/x86_64/Dockerfile Sending build context to Docker daemon 3.782MB Step 1/39 : ARG NODE_VERSION=14.16.0 Step 2/39 : ARG BAZEL_VERSION=4.0.0 Step 3/39 : ARG PYTHON_VERSION=3.9.3 Step 4/39 : FROM mcr.microsoft.com/windows/servercore:ltsc2019 as builder ---> 5b60ac4e9e92 Step 5/39 : SHELL ["cmd", "/C"] ---> Using cache ---> 7ffa67bcb819 Step 6/39 : RUN mkdir C:\TEMP ---> Using cache ---> cced3137ff9e Step 7/39 : FROM builder as msys2 ---> cced3137ff9e Step 8/39 : RUN setx path "C:\msys64\usr\bin;%PATH%" ---> Using cache ---> bf0f6bd33261 Step 9/39 : RUN curl -L http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20210604.sfx.exe -o C:\TEMP\msys2-installer.exe ---> Using cache ---> 959619b679c6 Step 10/39 : RUN C:\TEMP\msys2-installer.exe -y -oC:\ && del C:\TEMP\msys2-installer.exe ---> Using cache ---> 0a3e9e9f958e Step 11/39 : RUN bash.exe -l -c "pacman -Syuu --needed --noconfirm --noprogressbar" && bash.exe -l -c "pacman -Syu --needed --noconfirm --noprogressbar" && bash.exe -l -c "pacman -Sy --needed --noconfirm --noprogressbar" && bash.exe -l -c "pacman -S --needed --noconfirm git patch unzip" && bash.exe -l -c "rm -r /var/cache/pacman/pkg/" ---> Running in 4920c99a8d90 mkdir: cannot change permissions of '/dev/shm': Permission denied mkdir: cannot change permissions of '/dev/mqueue': Permission denied 'C:\Windows\system32\drivers\etc\hosts' -> '/etc/hosts' 'C:\Windows\system32\drivers\etc\protocol' -> '/etc/protocols' 'C:\Windows\system32\drivers\etc\services' -> '/etc/services' 'C:\Windows\system32\drivers\etc\networks' -> '/etc/networks' gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created gpg: no ultimately trusted keys found gpg: starting migration from earlier GnuPG versions gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent gpg: migration succeeded gpg: Generating pacman keyring master key... gpg: key 4D6511BC407CE515 marked as ultimately trusted gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/963943FF84C96F594EE486F34D6511BC407CE515.rev' gpg: Done ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u ==> Appending keys from msys2.gpg... ==> Locally signing trusted keys in keyring... -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813... -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008... -> Locally signing key 6E8FEAFF9644F54EED90EEA0790AE56A1D3CFDDC... -> Locally signing key 69985C5EB351011C78DF7F6D755B8182ACD22879... -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C... -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A... ==> Importing owner trust values... gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 ==> Disabling revoked keys in keyring... -> Disabling key B19514FB53EB3668471B296E794DCF97F93FC717... ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 6 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 6 signed: 6 trust: 0-, 0q, 0n, 6m, 0f, 0u gpg: depth: 2 valid: 6 signed: 0 trust: 6-, 0q, 0n, 0m, 0f, 0u gpg: next trustdb check due at 2022-01-23 ^C C:\MediaPipe\MediaPipeUnityPlugin>docker build -t mediapipe_unity:windows . -f docker/windows/x86_64/Dockerfile Sending build context to Docker daemon 3.782MB Step 1/39 : ARG NODE_VERSION=14.16.0 Step 2/39 : ARG BAZEL_VERSION=4.0.0 Step 3/39 : ARG PYTHON_VERSION=3.9.3 Step 4/39 : FROM mcr.microsoft.com/windows/servercore:ltsc2019 as builder ---> 5b60ac4e9e92 Step 5/39 : SHELL ["cmd", "/C"] ---> Using cache ---> 7ffa67bcb819 Step 6/39 : RUN mkdir C:\TEMP ---> Using cache ---> cced3137ff9e Step 7/39 : FROM builder as msys2 ---> cced3137ff9e Step 8/39 : RUN setx path "C:\msys64\usr\bin;%PATH%" ---> Using cache ---> bf0f6bd33261 Step 9/39 : RUN curl -L http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20210604.sfx.exe -o C:\TEMP\msys2-installer.exe ---> Using cache ---> 959619b679c6 Step 10/39 : RUN C:\TEMP\msys2-installer.exe -y -oC:\ && del C:\TEMP\msys2-installer.exe ---> Using cache ---> 0a3e9e9f958e Step 11/39 : RUN bash.exe -l -c "pacman -Syuu --needed --noconfirm --noprogressbar" && bash.exe -l -c "pacman -Syu --needed --noconfirm --noprogressbar" && bash.exe -l -c "pacman -Sy --needed --noconfirm --noprogressbar" && bash.exe -l -c "pacman -S --needed --noconfirm git patch unzip" && bash.exe -l -c "rm -r /var/cache/pacman/pkg/" ---> Running in e10042b1faf9 mkdir: cannot change permissions of '/dev/shm': Permission denied mkdir: cannot change permissions of '/dev/mqueue': Permission denied 'C:\Windows\system32\drivers\etc\hosts' -> '/etc/hosts' 'C:\Windows\system32\drivers\etc\protocol' -> '/etc/protocols' 'C:\Windows\system32\drivers\etc\services' -> '/etc/services' 'C:\Windows\system32\drivers\etc\networks' -> '/etc/networks' gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created gpg: no ultimately trusted keys found gpg: starting migration from earlier GnuPG versions gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent gpg: migration succeeded gpg: Generating pacman keyring master key... gpg: key 1463488B81EFA3A4 marked as ultimately trusted gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/6C02E230F8182D32E8345F321463488B81EFA3A4.rev' gpg: Done ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u ==> Appending keys from msys2.gpg... ==> Locally signing trusted keys in keyring... -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813... -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008... -> Locally signing key 6E8FEAFF9644F54EED90EEA0790AE56A1D3CFDDC... -> Locally signing key 69985C5EB351011C78DF7F6D755B8182ACD22879... -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C... -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A... ==> Importing owner trust values... gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 ==> Disabling revoked keys in keyring... -> Disabling key B19514FB53EB3668471B296E794DCF97F93FC717... ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 6 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 6 signed: 6 trust: 0-, 0q, 0n, 6m, 0f, 0u gpg: depth: 2 valid: 6 signed: 0 trust: 6-, 0q, 0n, 0m, 0f, 0u gpg: next trustdb check due at 2022-01-23 gpg: refreshing 13 keys from hkps://hkps.pool.sks-keyservers.net
###################################################################
C A U T I O N
This is first start of MSYS2.
You MUST restart shell to apply necessary actions.
###################################################################
:: Synchronizing package databases... error: failed retrieving file 'mingw32.db' from repo.msys2.org : Resolving timed out after 10000 milliseconds error: failed retrieving file 'mingw32.db' from downloads.sourceforge.net : Resolving timed out after 10000 milliseconds error: failed retrieving file 'mingw32.db' from www2.futureware.at : Resolving timed out after 10011 milliseconds error: failed retrieving file 'mingw32.db' from mirror.yandex.ru : Resolving timed out after 10009 milliseconds error: failed retrieving file 'mingw32.db' from mirrors.tuna.tsinghua.edu.cn : Resolving timed out after 10015 milliseconds error: failed retrieving file 'mingw32.db' from mirrors.ustc.edu.cn : Resolving timed out after 10001 milliseconds error: failed retrieving file 'mingw32.db' from mirror.bit.edu.cn : Resolving timed out after 10015 milliseconds error: failed retrieving file 'mingw32.db' from mirror.selfnet.de : Resolving timed out after 10016 milliseconds error: failed retrieving file 'mingw32.db' from mirrors.sjtug.sjtu.edu.cn : Resolving timed out after 10004 milliseconds error: failed retrieving file 'mingw32.db' from mirror.jmu.edu : Resolving timed out after 10000 milliseconds