Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

produce kind root images #12

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/buildx.yaml
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ jobs:
file: dockerfiles/kernel-builder
tags: quay.io/lvh-images/kernel-builder:latest

kernel-image:
kernel-images:
needs: kernel-builder
strategy:
matrix:
@@ -55,7 +55,7 @@ jobs:
no-cache: true
build-args: |
"KERNEL_VER=${{ matrix.kernel }}"
file: dockerfiles/kernel-image
file: dockerfiles/kernel-images
tags: quay.io/lvh-images/kernel-images:${{ matrix.kernel }}

root-builder:
@@ -82,6 +82,7 @@ jobs:
tags: quay.io/lvh-images/root-builder:latest

root-images:
needs: root-builder
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
@@ -105,3 +106,34 @@ jobs:
security.insecure
file: dockerfiles/root-images
tags: quay.io/lvh-images/root-images:latest

kind-images:
needs: [ kernel-images, root-images ]
strategy:
matrix:
kernel: [ "4.19", "5.4", "5.10", "5.15", "bpf-next" ]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: checkout
uses: actions/checkout@v3
- name: buildx
uses: docker/setup-buildx-action@v2
- name: quay login
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
no-cache: true
allow: |
security.insecure
build-args: |
"KERNEL_VER=${{ matrix.kernel }}"
file: dockerfiles/kind-images
tags: quay.io/lvh-images/kind:${{ matrix.kernel }}
19 changes: 14 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@

OCIORG ?= quay.io/lvh-images
OCIORG ?= quay.io/lvh-images
LVH ?= $(OCIORG)/lvh
ROOT_BUILDER ?= $(OCIORG)/root-builder
ROOT_IMAGES ?= $(OCIORG)/root-images
KERNEL_BUILDER ?= $(OCIORG)/kernel-builder
KERNEL_IMAGES ?= $(OCIORG)/kernel-images
DOCKER ?= docker
KERNEL_IMAGES ?= $(OCIORG)/kernel-images
KIND_IMAGES ?= $(OCIORG)/kind

KERNEL_VERSIONS=4.19 5.4 5.10 5.15 bpf-next

DOCKER ?= docker
export DOCKER_BUILDKIT = 1

.PHONY: all
all:
@echo "Available targets:"
@echo " images_builder: build root fs builder images"
@echo " kernels_builder: build root kernel builder images"
@echo " images: build root fs images"
@echo " kernels: build root kernel images"
@echo " kind: build root kind images"

.PHONY: images_builder
images_builder:
@@ -32,5 +35,11 @@ kernels_builder:
.PHONY: kernels
kernels: kernels_builder
for v in $(KERNEL_VERSIONS) ; do \
$(DOCKER) build --build-arg KERNEL_VER=$$v -f dockerfiles/kernel-image -t $(KERNEL_IMAGES):$$v . ; \
$(DOCKER) build --no-cache --build-arg KERNEL_VER=$$v -f dockerfiles/kernel-images -t $(KERNEL_IMAGES):$$v . ; \
done

.PHONY: kind
kind: kernels images
for v in $(KERNEL_VERSIONS) ; do \
$(DOCKER) build --no-cache --build-arg KERNEL_VER=$$v -f dockerfiles/kind-images -t $(KIND_IMAGES):$$v . ; \
done
3 changes: 3 additions & 0 deletions _data/bootstrap/deb-docker.sh
Original file line number Diff line number Diff line change
@@ -14,3 +14,6 @@ EOF

apt-get update --quiet && apt-get install --quiet --yes --no-install-recommends \
docker-ce docker-ce-cli containerd.io

# for iptables 1.8.8
update-alternatives --set iptables /usr/sbin/iptables-legacy
Loading