File tree 1 file changed +7
-15
lines changed
1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ RUN apt-get update \
11
11
software-properties-common ;\
12
12
rm -rf /var/lib/apt/lists/*
13
13
14
- # add enviromental variables
15
- ARG USER=ithacafv
16
- ARG of_var="source /usr/lib/openfoam/openfoam2106/etc/bashrc"
17
- ARG ithaca_var="source /usr/lib/ITHACA-FV/etc/bashrc"
18
-
19
14
# add and enable the default user
15
+ ARG USER=ithacafv
16
+ ARG of_var="source /opt/OpenFOAM-v2106/etc/bashrc"
17
+ ARG ithaca_var="source /opt/ITHACA-FV/etc/bashrc"
20
18
RUN adduser --disabled-password --gecos '' $USER
21
19
RUN adduser $USER sudo; echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
22
20
@@ -29,22 +27,16 @@ USER $USER
29
27
ENV HOME /home/$USER
30
28
ENV USER $USER
31
29
32
- RUN /bin/bash -c "source /usr/lib/openfoam/openfoam2106 /etc/bashrc && \
33
- cd ITHACA-FV && git submodule update --init && source / etc/bash. bashrc && \
34
- ./Allwmake -tau -j 4" ;
30
+ RUN /bin/bash -c "source OpenFOAM-v2106 /etc/bashrc && \
31
+ cd ITHACA-FV && git submodule update --init && source etc/bashrc && \
32
+ ./Allwmake -au -j 4" ;
35
33
36
- USER root
37
- RUN cp -r /home/ithacafv/OpenFOAM/ithacafv-v2106/platforms/linux64GccDPInt32Opt/bin/* /bin/
38
- RUN cp -r /home/ithacafv/OpenFOAM/ithacafv-v2106/platforms/linux64GccDPInt32Opt/lib/* /lib/
39
-
40
-
41
- # Update bashrc
34
+ # Update bashrc
42
35
RUN echo $of_var >> /etc/bash.bashrc
43
36
RUN echo $ithaca_var >> /etc/bash.bashrc
44
37
45
38
# Source bashrc
46
39
RUN /bin/bash -c "source /etc/bash.bashrc"
47
40
48
- USER $USER
49
41
WORKDIR $HOME
50
42
ENTRYPOINT ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments