-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitpod.Dockerfile
47 lines (40 loc) · 1.28 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
# https://www.gitpod.io/docs/configure/workspaces/workspace-image#use-a-custom-dockerfile
# configured following some instructions from above address
FROM fedora:35
RUN dnf -y update \
&& dnf -y install \
gcc-fortran \
gcc-c++ \
gcc \
gdb \
git \
netcdf-fortran-devel \
cmake \
make \
lcov \
valgrind \
python3 \
python3-pip \
&& dnf clean all
# install json-fortran
RUN curl -LO https://github.com/jacobwilliams/json-fortran/archive/8.2.0.tar.gz \
&& tar -zxvf 8.2.0.tar.gz \
&& cd json-fortran-8.2.0 \
&& export FC=gfortran \
&& mkdir build \
&& cd build \
&& cmake -D SKIP_DOC_GEN:BOOL=TRUE .. \
&& sudo make install -j 4
ENV JSON_FORTRAN_HOME="/usr/local/jsonfortran-gnu-8.2.0"
ENV LD_LIBRARY_PATH=/usr/local/jsonfortran-gnu-8.2.0/lib/
RUN git clone https://github.com/NCAR/tuv-x \
&& cd tuv-x \
&& mkdir build \
&& cd build \
&& cmake -D CMAKE_BUILD_TYPE=release -D TUVX_ENABLE_MEMCHECK=OFF -D TUVX_ENABLE_TESTS=OFF .. \
&& make -j 4 \
&& sudo make install
# Create the gitpod user. UID must be 33333.
# https://github.com/gitpod-io/gitpod/issues/7071
RUN useradd -l -u 33333 -G wheel -md /home/gitpod -s /bin/bash -p gitpod gitpod
USER gitpod