-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
179 changed files
with
4,186 additions
and
2,277 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,63 @@ | ||
FROM circleci/openjdk:8-jdk | ||
|
||
ENV MINICONDA_VERSION=4.8.2 \ | ||
MINICONDA_MD5=87e77f097f6ebb5127c77662dfc3165e \ | ||
CONDA_VERSION=4.8.2 \ | ||
CONDA_DIR=/opt/conda \ | ||
PYTHON_VERSION=3.7.7 | ||
|
||
USER root | ||
|
||
ENV PATH=$CONDA_DIR/bin:$PATH | ||
|
||
# circleci is 3434 | ||
COPY --chown=3434:3434 fix-permissions /tmp | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get install -yq --no-install-recommends \ | ||
sudo \ | ||
wget \ | ||
bzip2 \ | ||
file \ | ||
libtinfo5 \ | ||
ca-certificates \ | ||
gettext-base \ | ||
locales && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN \ | ||
cd /tmp && \ | ||
mkdir -p $CONDA_DIR && \ | ||
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-py37_${MINICONDA_VERSION}-Linux-x86_64.sh && \ | ||
echo "${MINICONDA_MD5} *Miniconda3-py37_${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - && \ | ||
/bin/bash Miniconda3-py37_${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \ | ||
rm Miniconda3-py37_${MINICONDA_VERSION}-Linux-x86_64.sh && \ | ||
conda config --system --set auto_update_conda false && \ | ||
conda config --system --set show_channel_urls true && \ | ||
conda config --system --set channel_priority strict && \ | ||
if [ ! $PYTHON_VERSION = 'default' ]; then conda install --yes python=$PYTHON_VERSION; fi && \ | ||
conda list python | grep '^python ' | tr -s ' ' | cut -d '.' -f 1,2 | sed 's/$/.*/' >> $CONDA_DIR/conda-meta/pinned && \ | ||
conda install --quiet --yes conda && \ | ||
conda install --quiet --yes pip && \ | ||
pip config set global.progress_bar off && \ | ||
echo "$CONDA_DIR/lib" > /etc/ld.so.conf.d/conda.conf && \ | ||
conda clean --all --force-pkgs-dirs --yes --quiet && \ | ||
sh /tmp/fix-permissions $CONDA_DIR 2> /dev/null | ||
|
||
COPY requirements-conda.txt /tmp/ | ||
|
||
RUN \ | ||
conda install --channel conda-forge --no-channel-priority --freeze-installed \ | ||
--file /tmp/requirements-conda.txt && \ | ||
conda clean --all --force-pkgs-dirs --yes --quiet && \ | ||
sh /tmp/fix-permissions $CONDA_DIR 2> /dev/null && \ | ||
ldconfig 2> /dev/null | ||
|
||
# Work-around for pyproj issue https://github.com/pyproj4/pyproj/issues/415 | ||
ENV PROJ_LIB=/opt/conda/share/proj | ||
|
||
USER 3434 | ||
|
||
WORKDIR /home/circleci |
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,19 @@ | ||
IMAGE_NAME=miniconda-gdal | ||
VERSION=latest | ||
HOST=docker.pkg.github.com | ||
REPO=${HOST}/locationtech/rasterframes | ||
FULL_NAME=${REPO}/${IMAGE_NAME}:${VERSION} | ||
|
||
all: build login push | ||
|
||
build: | ||
docker build . -t ${FULL_NAME} | ||
|
||
login: | ||
docker login ${HOST} | ||
|
||
push: | ||
docker push ${FULL_NAME} | ||
|
||
shell: build | ||
docker run --rm -it ${FULL_NAME} bash |
File renamed without changes.
Oops, something went wrong.