Skip to content

Commit

Permalink
Merge branch 'ZOO-Project:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sdhoundiyal committed Mar 17, 2024
2 parents 94451ce + 0d8b68e commit acdbc87
Show file tree
Hide file tree
Showing 215 changed files with 18,036 additions and 3,110 deletions.
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Overview

# Related Issue / Discussion

# Additional Information

# Contributions and Licensing

(as per https://zoo-project.github.io/docs/contribute/howto.html#licensing)

- [ ] I'd like to contribute [feature X|bugfix Y|docs|something else] to ZOO-Project. I confirm that my contributions to ZOO-Project will be compatible with the ZOO-Project license guidelines at the time of contribution.
- [ ] I have already previously agreed to the ZOO-Project Contributions and Licensing Guidelines
70 changes: 70 additions & 0 deletions .github/workflows/docker-ciab-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Docker Image CI (DRU with OpenEO UDP support)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/ciab/Dockerfile
tags: ${{secrets.DOCKER_USER}}/zookernel:ciab-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push (official image)
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/ciab/Dockerfile
tags: zooproject/zoo-project:ciab-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Build and push latest
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/ciab/Dockerfile
tags: ${{secrets.DOCKER_USER}}/zookernel:ciab-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push latest
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/ciab/Dockerfile
tags: zooproject/zoo-project:ciab-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

85 changes: 85 additions & 0 deletions .github/workflows/docker-dru-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Docker Image CI (DRU support)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/dru/Dockerfile
tags: ${{secrets.DOCKER_USER}}/zookernel:dru-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push (official dru image)
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/dru/Dockerfile
tags: zooproject/zoo-project:dru-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push (official eoepca image)
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/dru/Dockerfile
build-args: |
CONDA_ENV_NAME=env_zoo_calrissian
PY_VER=3.10
CONDA_ENV_FILE=https://raw.githubusercontent.com/EOEPCA/eoepca-proc-service-template/master/.devcontainer/environment.yml
tags: zooproject/zoo-project:eoepca-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-eoepca-cache
cache-to: type=local,dest=/tmp/.buildx-eoepca-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
rm -rf /tmp/.buildx-eoepca-cache
mv /tmp/.buildx-eoepca-cache-new /tmp/.buildx-eoepca-cache
- name: Build and push latest
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/dru/Dockerfile
tags: ${{secrets.DOCKER_USER}}/zookernel:dru-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push latest
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/dru/Dockerfile
tags: zooproject/zoo-project:dru-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

70 changes: 70 additions & 0 deletions .github/workflows/docker-hpgc-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Docker Image CI (DRU with HPC and OGC Application Package support)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/hpgc/Dockerfile
tags: ${{secrets.DOCKER_USER}}/zookernel:hpgc-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push (official image)
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/hpgc/Dockerfile
tags: zooproject/zoo-project:hpgc-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Build and push latest
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/hpgc/Dockerfile
tags: ${{secrets.DOCKER_USER}}/zookernel:hpgc-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push latest
uses: docker/build-push-action@v4
with:
context: .
push: true
file: docker/hpgc/Dockerfile
tags: zooproject/zoo-project:hpgc-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

42 changes: 31 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -28,29 +28,49 @@ jobs:
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{secrets.DOCKER_USER}}/zookernel:${{ github.sha }}
tags: ${{secrets.DOCKER_USER}}/zookernel:node-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push Official image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: zooproject/zoo-project:node-${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Build and push latest
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{secrets.DOCKER_USER}}/zookernel:latest
tags: ${{secrets.DOCKER_USER}}/zookernel:node-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Build and push latest
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: zooproject/zoo-project:node-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Build TeamEngine and the ETS for OGC API - Processes and add it to the docker-compose
run: docker/ets-ogcapi-processes/build.sh && head -n $(expr $(grep "^networks:" -rn docker-compose.yml | cut -d':' -f1) - 1) docker-compose.yml > docker-compose1.yml && cat docker/ets-ogcapi-processes/docker-compose-ets-part.yml >> docker-compose1.yml && cat docker-compose.yml| grep "^networks" -A10 >> docker-compose1.yml && mv docker-compose1.yml docker-compose.yml
- name: Start the test env
run: mkdir docker/tmp; chmod 777 -R docker ; docker-compose up -d
- name: Install required package
run: docker exec zoo-project_zookernel_1 /bin/bash -c "apt-get update ; DEBIAN_FRONTEND=noninteractive apt-get -y install lynx;"
- name: Run the ETS for OGC API - Processes (see test-run-props.xml for settings)
run: docker-compose exec -T teamengine /root/test.sh
- name: Run GetCapabilities tests version 1.0.0
run: docker exec zoo-project_zookernel_1 /bin/bash -c "cd /var/www/html/cptesting/scripts/; mkdir ../tmp; ./run.sh http://localhost/cgi-bin/zoo_loader.cgi 1.0.0 Buffer \"GetCapabilities\" 0 0 > outputGC.html 2> log; lynx -dump outputGC.html"
- name: Run DescribeProcess tests version 1.0.0
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/docker-jammy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-osgeolive-cache
key: ${{ runner.os }}-buildx-osgeolive-${{ github.sha }}
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand All @@ -41,14 +41,23 @@ jobs:
rm -rf /tmp/.buildx-osgeolive-cache
mv /tmp/.buildx-osgeolive-cache-new /tmp/.buildx-osgeolive-cache
- name: Build and push osgeolive-latest
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
file: Dockerfile-OSGeoLive
tags: ${{secrets.DOCKER_USER}}/zookernel:osgeolive-latest
cache-from: type=local,src=/tmp/.buildx-osgeolive-cache
cache-to: type=local,dest=/tmp/.buildx-osgeolive-cache-new,mode=max
- name: Build and push osgeolive-latest
uses: docker/build-push-action@v4
with:
context: .
push: true
file: Dockerfile-OSGeoLive
tags: zooproject/zoo-project:osgeolive-latest
cache-from: type=local,src=/tmp/.buildx-osgeolive-cache
cache-to: type=local,dest=/tmp/.buildx-osgeolive-cache-new,mode=max
- name: Start the test env
run: mkdir docker/tmp; chmod 777 -R docker ; sed "s=djayzen/zookernel:latest=djayzen/zookernel:osgeolive-latest=g" -i docker-compose.yml ; docker-compose up -d
- name: Install required package
Expand Down
Loading

0 comments on commit acdbc87

Please sign in to comment.