Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
meihuisu committed Jan 14, 2025
1 parent 1dfbd7f commit 7c51d9a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions ucvm_v25_2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86
/bin/bash anaconda.sh -b -p /usr/local/opt/conda && \
rm anaconda.sh && \
source /usr/local/opt/conda/bin/activate && \
conda init
/usr/local/opt/conda/bin/conda init

RUN conda config --add channels conda-forge && \
conda install scipy pip numpy matplotlib basemap basemap-data-hires && \
conda install conda-forge::gmt setuptools anaconda::pybind11 conda-forge::h5py
RUN /usr/local/opt/conda/bin/conda config --add channels conda-forge && \
/usr/local/opt/conda/bin/conda install scipy pip numpy matplotlib basemap basemap-data-hires && \
/usr/local/opt/conda/bin/conda install conda-forge::gmt setuptools anaconda::pybind11 conda-forge::h5py

# Setup Owners
# Documents say this groupadd is needed when you build on linux, but not on Mac
Expand All @@ -69,14 +69,14 @@ RUN CVM_LARGEDATA_DIR="/Users/mei/scec/CVM_DATASET_DIRECTORY" ./ucvm_setup.py -a

# Install plotting libraries
WORKDIR /app/ucvm
git clone https://github.com/SCECcode/ucvm_metadata_utilities metadata_utilities
cd metadata_utilities
source ./setup.sh
RUN git clone https://github.com/SCECcode/ucvm_metadata_utilities metadata_utilities && \
cd metadata_utilities && \
source ./setup.sh

WORKDIR /app/ucvm
RUN git clone https://github.com/SCECcode/ucvm_plotting.git -b withAnaconda3
cd /app/ucvm/ucvm_plotting
RUN ./unpack-dist
conda install dist/ucvm_plotting-0.0.6.tar.gz
RUN git clone https://github.com/SCECcode/ucvm_plotting.git -b withAnaconda3 && \
cd /app/ucvm/ucvm_plotting && \
conda install dist/ucvm_plotting-0.0.6.tar.gz


# Define file input/output mounted disk
Expand Down
10 changes: 5 additions & 5 deletions ucvm_v25_2/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
cmd = "docker tag ucvm_252_%s:%s sceccode/ucvm_252_%s:latest"%(m,mdate,m)
os.system(cmd)

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

0 comments on commit 7c51d9a

Please sign in to comment.