Skip to content

Commit

Permalink
Fix multistage build
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Sep 9, 2024
1 parent d7c5538 commit 7577c6c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 140 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Build test bench container
uses: docker/bake-action@v5
with:
load: true
load: true
files: tests/integration/dockerfiles/docker-bake.hcl
set: |
*.cache-to=type=gha,scope=global,mode=max
Expand All @@ -59,6 +59,7 @@ jobs:
ports:
- 27017:27017

needs: [build-test-bench]
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -74,6 +75,17 @@ jobs:
cache: pip
cache-dependency-path: pyproject.toml

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Load test bench containers
uses: docker/bake-action@v5
with:
load: true
files: tests/integration/dockerfiles/docker-bake.hcl
set: |
*.cache-from=type=gha,scope=global
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ RUN mkdir jfr
USER root
RUN chmod +x /etc/startup.sh && dos2unix /etc/startup.sh
USER ${USERNAME}
CMD "sudo /etc/startup.sh ; /bin/bash -l"
CMD sudo /etc/startup.sh ; /bin/bash -l
75 changes: 0 additions & 75 deletions tests/integration/dockerfiles/Dockerfile.sge

This file was deleted.

61 changes: 0 additions & 61 deletions tests/integration/dockerfiles/Dockerfile.slurm

This file was deleted.

4 changes: 2 additions & 2 deletions tests/integration/dockerfiles/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ group "default" {
}

target "slurm" {
dockerfile = "./tests/integration/dockerfiles/Dockerfile.slurm"
dockerfile = "./tests/integration/dockerfiles/Dockerfile"
args = {
QUEUE_SYSTEM = "slurm"
}
Expand All @@ -16,7 +16,7 @@ target "slurm" {
}

target "sge" {
dockerfile = "./tests/integration/dockerfiles/Dockerfile.sge"
dockerfile = "./tests/integration/dockerfiles/Dockerfile"
args = {
QUEUE_SYSTEM = "sge"
}
Expand Down

0 comments on commit 7577c6c

Please sign in to comment.