Skip to content

Commit 8f9bbe3

Browse files
authored
Merge pull request #205 from aminya/docs [skip ci]
2 parents 436e27c + 20bb9d6 commit 8f9bbe3

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,14 @@ stages:
263263
apt-get update -qq
264264
apt-get install -y --no-install-recommends curl gnupg ca-certificates
265265

266-
# keys used by apt
267-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
268-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
269-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
270-
271266
.setup-cpp: &setup-cpp |
272-
curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.35.6/setup-cpp-x64-linux"
273-
chmod +x setup-cpp-x64-linux
267+
# install nodejs
268+
apt-get install -y --no-install-recommends nodejs npm
269+
270+
# install setup-cpp
271+
npm install -g setup-cpp@v0.35.6
272+
273+
# install the compiler and tools
274274
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
275275
source ~/.cpprc
276276

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#### Base Image
2+
FROM ubuntu:20.04 as setup-cpp-ubuntu-mingw
3+
4+
RUN apt-get update -qq && \
5+
# install latest nodejs on ubuntu 20.04
6+
apt-get update -qq && \
7+
apt-get install -y --no-install-recommends curl gnupg ca-certificates && \
8+
mkdir -p /etc/apt/keyrings && \
9+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
10+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
11+
apt-get update -qq && \
12+
apt-get install -y --no-install-recommends nodejs && \
13+
# install setup-cpp
14+
npm install -g setup-cpp@v0.35.6 && \
15+
# install the compiler and tools
16+
setup-cpp \
17+
--nala true \
18+
--compiler mingw \
19+
--cmake true \
20+
--ninja true \
21+
--task true \
22+
--vcpkg true \
23+
--python true \
24+
--make true \
25+
--cppcheck true \
26+
--gcovr true \
27+
--doxygen true \
28+
--ccache true \
29+
--powershell true && \
30+
# cleanup
31+
nala autoremove -y && \
32+
nala autopurge -y && \
33+
apt-get clean && \
34+
nala clean --lists && \
35+
rm -rf /var/lib/apt/lists/* && \
36+
rm -rf /tmp/*
37+
38+
ENTRYPOINT ["/bin/bash"]

0 commit comments

Comments
 (0)