Skip to content

Commit

Permalink
feat: update the Dockerfile with emulator dependencies
Browse files Browse the repository at this point in the history
- Adds linux.bin and rootfs.ext2 download to the emulator stage.
- Adds a emulator-devel stage that install libcmt and xgenext2fs.
- Configures the CI image to use CGO.
- Refactors the Dockerfile to improve readability.
  • Loading branch information
renan061 committed Jun 13, 2024
1 parent f7cfa36 commit 12f069d
Show file tree
Hide file tree
Showing 5 changed files with 301 additions and 164 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
name=ghcr.io/cartesi/rollups-node-ci-base
name=ghcr.io/cartesi/rollups-node-ci
tags: |
type=semver,pattern={{version}}
type=ref,event=branch
Expand All @@ -162,7 +162,7 @@ jobs:
./docker-bake.hcl
${{ steps.docker_meta.outputs.bake-file }}
./docker-bake.platforms.hcl
targets: rollups-node-ci-base
targets: rollups-node-ci
push: true
project: ${{ vars.DEPOT_PROJECT }}
workdir: build
Expand All @@ -174,7 +174,7 @@ jobs:
test-go:
runs-on: ubuntu-22.04
container:
image: ghcr.io/cartesi/rollups-node-ci-base:${{needs.build-ci-base.outputs.output}}
image: ghcr.io/cartesi/rollups-node-ci:${{needs.build-ci-base.outputs.output}}
needs:
- build-ci-base
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean-up-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
image:
- rollups-node
- rollups-node-ci-base
- rollups-node-ci
steps:
- uses: vlaurin/[email protected]
with:
Expand Down
Loading

0 comments on commit 12f069d

Please sign in to comment.