Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marjo-luc committed Oct 22, 2024
1 parent e047c5f commit 5fe9cd7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/build-ogc-app-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# Steps:
#
# 1. Parse the input algorithm config to retrieve the build parameters.
# 2. Build OGC application package executable (docker image).
# 2. Build the algorithm executable (docker image).
# 3. Generate the application package process cwl.
# 4. Build the OGC application package executable.
# 4. Push the OGC application package executable to the image registry.
on:
push:
Expand Down Expand Up @@ -41,18 +42,25 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build OGC application package executable
- name: Build algorithm docker image
run: |
docker build -t ${{ env.REPO_NAME }}:${{ env.BRANCH }} \
--build-arg BASE_IMAGE_NAME=ghcr.io/maap-project/maap_base:main \
--build-arg BASE_IMAGE_NAME=${{ env.BASE_IMAGE_NAME }} \
--build-arg REPO_NAME=${{ env.REPO_NAME }} \
--build-arg BRANCH=${{ env.BRANCH }} \
--build-arg REPO_URL_WITH_TOKEN=${{ env.REPO_URL_WITH_TOKEN }} \
--build-arg BUILD_CMD=${{ env.BUILD_CMD }} \
-f docker/Dockerfile .
- name: Build OGC application package process cwl
run: python3 generate_app_pack.py algorithm_configs/algorithm_config.yaml $(basename ${ogc_container_url})
- name: Push OGC application package executable to image registry
-f docker/Dockerfile.algorithm .
- name: Generate OGC application package process cwl
run: python3 generate_app_pack.py algorithm_configs/algorithm_config.yaml ${{ env.REPO_NAME }}:${{ env.BRANCH }}
- name: Build OGC application package docker image
run: |
docker build -t OGC_${{ env.REPO_NAME }}:${{ env.BRANCH }} \
--build-arg PROCESS_CWL=process.cwl \
-f docker/Dockerfile.ogc .
- name: Push algorithm docker image to GitLab
run: echo Push to image registry not yet implemented.
- name: Push OGC application package to GitLab
run: echo Push to image registry not yet implemented.


File renamed without changes.
13 changes: 13 additions & 0 deletions docker/Dockerfile.ogc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

FROM continuumio/miniconda3:23.10.0-1

USER root
WORKDIR /app

ARG PROCESS_CWL

RUN pip install pyyaml cwltool

COPY --chown=ops process_cwl/${PROCESS_CWL} /app/${PROCESS_CWL}

CMD ["/bin/bash"]

0 comments on commit 5fe9cd7

Please sign in to comment.