-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from simonsobs/onlybase
Fix several small issues and add dockerfile example.
- Loading branch information
Showing
6 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM quay.io/jupyter/minimal-notebook:latest as builder | ||
|
||
MAINTAINER Theodore Kisner <[email protected]> | ||
|
||
# Use bash | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Copy files into container | ||
|
||
COPY soconda.sh ./soconda.sh | ||
|
||
RUN mkdir -p config | ||
COPY config ./config/ | ||
|
||
RUN mkdir -p deploy | ||
COPY deploy ./deploy/ | ||
|
||
RUN mkdir -p pkgs | ||
COPY pkgs ./pkgs/ | ||
|
||
RUN mkdir -p templates | ||
COPY templates ./templates/ | ||
|
||
RUN mkdir -p tools | ||
COPY tools ./tools/ | ||
|
||
# Install packages to the base environment | ||
|
||
RUN ./deploy/install_docker_jupyter.sh | ||
|
||
# ====================================== | ||
|
||
FROM quay.io/jupyter/minimal-notebook:latest | ||
|
||
# Copy our installed software binaries and libraries | ||
|
||
COPY --from=builder /opt/conda /opt/conda/ | ||
|
||
# Imports to create config files | ||
|
||
RUN python3 -c "import astropy" | ||
RUN python3 -c "import matplotlib.font_manager as fm; f = fm.FontManager" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# This assumes that a conda base environment already exists | ||
# in /opt/conda, and that we want to install soconda directly | ||
# to the base environment. | ||
|
||
# Location for conda base | ||
base_dir=/opt/conda | ||
|
||
# Location of soconda tree. This is assumed to be already | ||
# checked out to the desired branch / tag. This is useful for | ||
# testing if the source tree is bind-mounted somewhere else. | ||
git_dir="." | ||
|
||
# Temp package dir | ||
pkg_temp=${HOME}/temp_pkgs | ||
mkdir -p ${pkg_temp} | ||
export CONDA_PKGS_DIRS=${pkg_temp} | ||
|
||
#=========================================== | ||
|
||
# Base environment is already activated | ||
conda update -n base --yes --all conda | ||
conda install -n base --yes --all conda-build conda-verify | ||
|
||
# Build things from the default home directory | ||
|
||
eval "${git_dir}/soconda.sh" \ | ||
-v "$(date +%Y%m%d)" \ | ||
-c "site" \ | ||
-b "/opt/conda" \ | ||
-e "base" | ||
|
||
# Remove pkg cache | ||
rm -rf ${pkg_temp} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -urN libactpol_deps_orig/sofa_20180130/Makefile libactpol_deps_new/sofa_20180130/Makefile | ||
--- libactpol_deps_orig/sofa_20180130/Makefile 2020-06-22 15:49:10.000000000 -0700 | ||
+++ libactpol_deps_new/sofa_20180130/Makefile 2024-04-26 16:56:59.751864213 -0700 | ||
@@ -23,7 +23,7 @@ | ||
default: $(LIBNAME) | ||
|
||
$(LIBNAME): $(OBJECTS) | ||
- gcc -shared -Wl,-soname,[email protected] \ | ||
+ $(CC) -shared -Wl,-soname,[email protected] \ | ||
-o $@ $(OBJECTS) | ||
|
||
clean: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters