generated from TheLartians/ModernCppStarter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.Dockerfile
82 lines (73 loc) · 1.77 KB
/
.gitpod.Dockerfile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM gitpod/workspace-full
USER root
# Install util tools.
RUN apt-get update \
&& apt-get install -y \
apt-utils \
aria2 \
# c++ stuff \
gcc-10 \
g++-10 \
clang-13 \
ccache \
cmake-curses-gui \
clang-format \
clang-tidy \
cppcheck \
doxygen \
doctest-dev \
kcachegrind-converters \
kcachegrind \
lcov \
libbenchmark-dev \
libboost-dev \
libfmt-dev \
# libjsoncpp-dev \
# libopenblas-dev \
librange-v3-dev \
libspdlog-dev \
ninja-build \
# utilities (not ripgrep, gh) \
asciinema \
bat \
byobu \
curl \
elinks \
fd-find \
fish \
mdp \
ncdu \
neofetch \
patat \
pkg-config \
ranger \
w3m \
# just for fun (not cmatrix) \
cowsay \
figlet \
fortune \
toilet \
tty-clock
RUN mkdir -p /workspace/data \
&& chown -R gitpod:gitpod /workspace/data
RUN mkdir /home/gitpod/.conda
# Install conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
RUN /opt/conda/bin/conda config --set always_yes yes --set changeps1 no \
&& /opt/conda/bin/conda update -q conda \
&& /opt/conda/bin/conda info -a
RUN /opt/conda/bin/conda install -y -c conda-forge \
cmake-format \
pandoc-crossref \
pandoc
RUN pip install jinja2 Pygments
RUN chown -R gitpod:gitpod /opt/conda \
&& chmod -R 777 /opt/conda \
&& chown -R gitpod:gitpod /home/gitpod/.conda \
&& chmod -R 777 /home/gitpod/.conda
RUN apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*