-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.vscode
27 lines (25 loc) · 1.24 KB
/
Dockerfile.vscode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-10
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y sudo curl wget locales-all net-tools tcpdump python-pip make gdb \
gdbserver vim-common wget git bzip2 build-essential libstdc++5:i386 wine wine32 procps \
openjdk-11-jre zip && \
pip install compiledb && \
mkdir -p /root/tmp && cd /root/tmp && \
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/5_3-2016q1/gccarmnoneeabi532016q120160330linuxtar.bz2 && \
tar -xjf gccarmnoneeabi532016q120160330linuxtar.bz2 && \
mkdir -p /usr/local && \
cp -R gcc-arm-none-eabi-5_3-2016q1/* /usr/local && \
rm -rf gcc-arm-none-eabi-5_3-2016q1 && \
rm -rf gccarmnoneeabi532016q120160330linuxtar.bz2 && \
wine hh && \
for timeCount in 0 1 2 3 4 5 6 7 8 9 10 ; do \
if [ -r "$HOME/.wine/system.reg" ]; then break; \
elif [ $timeCount -eq 10 ]; then fail; fi; \
sleep 1; \
done && \
sed -i -r 's/"PATH"=str\(2\):"(.*)"/"PATH"=str\(2\):"\1;C:\\\\MinGW\\\\bin"/' ~/.wine/system.reg && \
wget http://download.emcellsoft.de/digitronic/mingw.tar.gz && \
tar -xf mingw.tar.gz -C /opt/ && \
ln -s /opt/mingw ~/.wine/drive_c/MinGW
WORKDIR /home/user