File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ RUN apt-get update \
13
13
14
14
# add and enable the default user
15
15
ARG USER=ithacafv
16
- ARG of_var="source /opt/OpenFOAM-v2106/etc/bashrc"
17
- ARG ithaca_var="source /opt/ITHACA-FV/etc/bashrc"
18
16
RUN adduser --disabled-password --gecos '' $USER
19
17
RUN adduser $USER sudo; echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
20
18
@@ -23,6 +21,11 @@ WORKDIR /opt/
23
21
RUN git clone https://github.com/mathLab/ITHACA-FV.git
24
22
RUN chown -R $USER:$USER OpenFOAM-v2106 OpenFOAM-v2106 ITHACA-FV
25
23
RUN chown -R $USER:$USER /home/$USER
24
+ ARG of_var="source /opt/OpenFOAM-v2106/etc/bashrc"
25
+ ARG ithaca_var="source /opt/ITHACA-FV/etc/bashrc"
26
+ # Update bashrc
27
+ RUN echo $of_var >> /etc/bash.bashrc
28
+ RUN echo $ithaca_var >> /etc/bash.bashrc
26
29
USER $USER
27
30
ENV HOME /home/$USER
28
31
ENV USER $USER
@@ -31,9 +34,6 @@ RUN /bin/bash -c "source OpenFOAM-v2106/etc/bashrc && \
31
34
cd ITHACA-FV && git submodule update --init && source etc/bashrc && \
32
35
./Allwmake -au -j 4" ;
33
36
34
- # Update bashrc
35
- RUN echo $of_var >> /etc/bash.bashrc
36
- RUN echo $ithaca_var >> /etc/bash.bashrc
37
37
38
38
# Source bashrc
39
39
RUN /bin/bash -c "source /etc/bash.bashrc"
You can’t perform that action at this time.
0 commit comments