-
Notifications
You must be signed in to change notification settings - Fork 5
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
22 changed files
with
153 additions
and
83 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 |
---|---|---|
|
@@ -52,4 +52,4 @@ dependencies: | |
- pip: | ||
- git+https://github.com/opera-adt/[email protected] | ||
- rio-tiler==6.6.1 | ||
- git+https://github.com/MAAP-Project/maap-py.git@v4.0.0 | ||
- git+https://github.com/MAAP-Project/maap-py.git@v4.1.0 |
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
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
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
base_image_dir=$(dirname "$0") | ||
# Check if on a branch or in a detached HEAD state get commit sha | ||
BRANCH=$(basename "$(git symbolic-ref -q --short HEAD || git rev-parse --short HEAD)") | ||
if [ "$#" -eq 0 ]; then | ||
DIRS_LIST=( "maap_base" ) | ||
else | ||
DIRS_LIST=( "$@" ) | ||
fi | ||
for dir in "${DIRS_LIST[@]}"; do | ||
pushd "$base_image_dir"/"$dir" | ||
IMAGE_NAME=$(basename "$dir") | ||
IMAGE_PATH=$(basename "$base_image_dir") | ||
IMAGE_REF=${CI_REGISTRY_IMAGE}/${IMAGE_PATH}/${IMAGE_NAME}:${BRANCH} | ||
docker build -t "${IMAGE_REF}" --build-arg IMAGE_REF="${IMAGE_REF}" -f docker/Dockerfile . | ||
docker push "${IMAGE_REF}" | ||
popd | ||
echo "$IMAGE_REF" >> built_images.txt | ||
done | ||
|
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,20 @@ | ||
FROM ubuntu:24.10 | ||
|
||
ARG MINICONDA_INSTALLER="https://repo.anaconda.com/miniconda/Miniconda3-py311_24.7.1-0-Linux-x86_64.sh" | ||
ARG MINICONDA_INSTALLER_SHA256="a098a5b1581d8fd078c430b82e27106602223e335efef708a124e723814d120c" | ||
|
||
RUN apt-get update -y && apt-get install -y vim wget git && \ | ||
apt-get clean all | ||
|
||
RUN groupadd conda-users | ||
|
||
RUN wget -O Miniconda3-installer.sh ${MINICONDA_INSTALLER} && \ | ||
echo "${MINICONDA_INSTALLER_SHA256} Miniconda3-installer.sh" | sha256sum --check --status && \ | ||
bash Miniconda3-installer.sh -b -p /opt/conda && \ | ||
chgrp -R conda-users /opt/conda/ && chmod -R 775 /opt/conda/ && \ | ||
find /opt/conda/ -follow -type f -name '*.a' -delete && \ | ||
find /opt/conda/ -follow -type f -name '*.js.map' -delete && \ | ||
/opt/conda/bin/conda clean -afy && \ | ||
/opt/conda/bin/conda init --all --system | ||
|
||
ENV PATH /opt/conda/bin:$PATH |
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
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
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
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
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,8 @@ | ||
${BASE_IMAGE_TYPE}: | ||
script: | ||
- docker login -u "$CI_DEPLOY_USER" -p "$CI_DEPLOY_PASSWORD" "$CI_REGISTRY" | ||
- git clone https://github.com/MAAP-Project/maap-workspaces.git | ||
- pushd maap-workspaces | ||
- git checkout ${LATEST_COMMIT} | ||
- bash custom_images/build-image.sh ${BASE_IMAGE_TYPE} | ||
- cat built_images.txt |
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
${BASE_IMAGE_TYPE}: | ||
script: | ||
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY" | ||
- docker login -u "$CI_DEPLOY_USER" -p "$CI_DEPLOY_PASSWORD" "$CI_REGISTRY" | ||
- git clone https://github.com/MAAP-Project/maap-workspaces.git | ||
- pushd maap-workspaces | ||
- git checkout ${LATEST_COMMIT} | ||
- cp -r ../overlays/ ./ | ||
- bash base_images/build-image.sh ${BASE_IMAGE_TYPE} | ||
- cat built_images.txt | ||
- export BASE_IMAGE_NAME=$(tail -1 built_images.txt) | ||
- bash jupyterlab/build-image.sh | ||
- scp -vr devfiles/${BASE_IMAGE_TYPE}/devfile/ ${DIT_API_MACHINE}:/var/www/devfile-registry/devfiles/${BASE_IMAGE_TYPE}/ | ||
- scp -vr devfiles/devfile_compile.py ${DIT_API_MACHINE}:/var/www/devfile-registry/devfiles/devfile_compile.py | ||
- ssh ${DIT_API_MACHINE} python3 /var/www/devfile-registry/devfiles/devfile_compile.py |
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
Oops, something went wrong.