Skip to content

Build for ubuntu noble#181

Draft
mpenny-github wants to merge 14 commits into
masterfrom
mpenny_noble_build
Draft

Build for ubuntu noble#181
mpenny-github wants to merge 14 commits into
masterfrom
mpenny_noble_build

Conversation

@mpenny-github
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread script/cibuild-create-packages-noble Outdated

begin_fold "Preparing Docker build environment"
(
docker build -t glb-director-build-noble -f script/Dockerfile.noble script
Copy link
Copy Markdown
Contributor

@fjaeckel fjaeckel Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
docker build -t glb-director-build-noble -f script/Dockerfile.noble script
docker build -t glb-director-build -f script/Dockerfile.noble script

instead of copying the whole script, can we please move towards a parameterized version of it to pass the OS flavor as a argument and make this more dynamic?

Copy link
Copy Markdown
Contributor

@fjaeckel fjaeckel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move towards a parameterised version of cibuild for choosing the OS flavor

Comment thread .github/workflows/test.yml Fixed
Comment on lines +40 to +68
needs: build-images
runs-on: ubuntu-latest
strategy:
matrix:
test-suite: [director, director-xdp, healthcheck, redirect]
dockerfile: [dockerfile.noble, dockerfile.focal]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download image artifact
uses: actions/download-artifact@v3
with:
name: ${{ matrix.dockerfile }}

- name: Load Docker image
run: |
IMAGE_TAG=$(echo ${{ matrix.dockerfile }} | sed 's/dockerfile./glb-director-/')
docker load -i ${IMAGE_TAG}.tar

- name: Run test suite in container
run: |
IMAGE_TAG=$(echo ${{ matrix.dockerfile }} | sed 's/dockerfile./glb-director-/')
docker run --rm \
--privileged \
-v $(pwd):/workspace \
-w /workspace \
${IMAGE_TAG}:latest \
bash -c "script/test-glb-${{ matrix.test-suite }}" No newline at end of file
Comment thread .github/workflows/test.yml Fixed
Comment thread .github/workflows/test.yml Fixed
Comment on lines +15 to +39
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro: [noble, focal]
steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Build image
run: |
docker build -f script/Dockerfile.${{ matrix.distro }} -t glb-director-build-${{ matrix.distro }}:latest .
docker save glb-director-build-${{ matrix.distro }}:latest -o glb-director-build-${{ matrix.distro }}.tar

- name: Upload image artifact
uses: actions/upload-artifact@v3
with:
name: glb-director-build-${{ matrix.distro }}
path: glb-director-build-${{ matrix.distro }}.tar
retention-days: 1

test:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants