Skip to content

Commit 4a2fe4f

Browse files
committed
add devcontainer template
1 parent d03eee7 commit 4a2fe4f

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore any custom folders outside of our predefined ones, to let you create your own
2+
# One use might be using your own container mapping the install path onto your actual game folder
3+
*/
4+
!clang-cross
5+
!llvm-mingw
6+
!mingw
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
FROM alpine:latest AS clang-cross
2+
CMD ["/bin/bash"]
3+
RUN <<EOF
4+
apk add --no-cache \
5+
bash \
6+
clang \
7+
clang-extra-tools \
8+
cmake \
9+
git \
10+
lld \
11+
llvm \
12+
msitools \
13+
ninja \
14+
perl \
15+
python3 \
16+
py3-requests
17+
git clone https://github.com/mstorsjo/msvc-wine.git
18+
msvc-wine/vsdownload.py \
19+
--accept-license \
20+
--dest /win-sdk \
21+
Microsoft.VisualStudio.Workload.VCTools \
22+
--arch x86 x64
23+
msvc-wine/install.sh /win-sdk
24+
rm -r msvc-wine
25+
EOF
26+
27+
# llvm-mingw comes with pre-built ubuntu binaries, so using that
28+
FROM ubuntu:latest AS llvm-mingw
29+
CMD ["/bin/bash"]
30+
RUN <<EOF
31+
apt-get update
32+
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \
33+
apt-get install -y \
34+
cmake \
35+
git \
36+
msitools \
37+
ninja-build \
38+
python-is-python3 \
39+
python3 \
40+
python3-requests \
41+
wget \
42+
xz-utils
43+
wget -nv https://github.com/mstorsjo/llvm-mingw/releases/download/20250114/llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64.tar.xz
44+
tar -xf llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64.tar.xz
45+
rm llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64.tar.xz
46+
mv llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64 /llvm-mingw
47+
EOF
48+
ENV PATH="/llvm-mingw/bin:$PATH"
49+
50+
FROM alpine:latest AS mingw
51+
CMD ["/bin/bash"]
52+
RUN <<EOF
53+
apk add --no-cache \
54+
bash \
55+
cmake \
56+
git \
57+
i686-mingw-w64-gcc \
58+
mingw-w64-gcc \
59+
msitools \
60+
ninja \
61+
py3-requests \
62+
python3
63+
EOF
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "clang-cross",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"target": "clang-cross"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "llvm-mingw",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"target": "llvm-mingw"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "mingw",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"target": "mingw"
6+
}
7+
}

0 commit comments

Comments
 (0)