Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
meihuisu committed Jan 18, 2025
1 parent 0b67e76 commit 0c7ff37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions ucvm_v22_7_quakeworx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create UCVM model Docker Image based on rockylinux which is similar to Centos-8 used at USC CARC

FROM rockylinux:8.5
FROM rockylinux:8.9
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8

# Define Build and runtime arguments
Expand Down Expand Up @@ -74,7 +74,7 @@ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -

RUN echo "source /usr/local/opt/conda/etc/profile.d/conda.sh" >> /home/$APP_UNAME/.bashrc && \
bash /home/$APP_UNAME/.bashrc && \
/usr/local/opt/conda/bin/conda install -y pip
/usr/local/opt/conda/bin/conda install -y pip bzip2

#RUN /usr/local/opt/conda/bin/conda create -n Python2 -y python=2.7.15 scipy numpy matplotlib basemap basemap-data-hires
RUN /usr/local/opt/conda/bin/conda create -n plotPython -y numpy matplotlib basemap basemap-data-hires
Expand Down Expand Up @@ -134,11 +134,11 @@ WORKDIR /home/$APP_UNAME
EXPOSE 8888

# Define file input/output mounted disk
VOLUME /home/$APP_UNAME/app/target
#VOLUME /home/$APP_UNAME/app/target

SHELL ["/bin/bash", "--login", "-c"]

ENTRYPOINT ["/bin/bash"]
#ENTRYPOINT ["/bin/bash"]
# Define the command to run JupyterLab
#ENTRYPOINT ["/usr/local/opt/conda/bin/jupyter", "lab", "--ip=0.0.0.0", "--no-browser", "--allow-root"]
ENTRYPOINT ["/usr/local/opt/conda/bin/jupyter", "lab", "--ip=0.0.0.0", "--no-browser", "--allow-root"]

6 changes: 3 additions & 3 deletions ucvm_v22_7_quakeworx/build_one_quakeworx.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"--build-arg APP_UID=1000 --build-arg APP_GID=1000 --build-arg MODELID=%s --build-arg BDATE=%s"%(m,mdate,m,mdate)
os.system(cmd)

cmd = "docker tag ucvm_227_%s:%s sceccode/ucvm_227_%s:%s"%(m,mdate,m,mdate)
cmd = "docker tag ucvm_227_%s_quakeworx:%s sceccode/ucvm_227_%s_quakeworx:%s"%(m,mdate,m,mdate)
print(cmd)
# os.system(cmd)
os.system(cmd)

print("pushing models: " + m + " with sceccode/ucvm_227_%s_quakeworx:%s" % (m,mdate))
cmd = "docker push sceccode/ucvm_227_%s_quakeworx:%s" % (m,mdate)
print(cmd)
# os.system(cmd)
os.system(cmd)

0 comments on commit 0c7ff37

Please sign in to comment.