-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from SamYuan1990/containerTest
add container level test and refine document
- Loading branch information
Showing
6 changed files
with
114 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,33 @@ jobs: | |
run: | | ||
export CLUSTER_PROVIDER=${{matrix.cluster_provider}} | ||
./verify.sh | ||
containertestubuntu: | ||
needs: | ||
- shellcheck | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- OS: ubuntu | ||
- OS: ubi | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
image: tonistiigi/binfmt:qemu-v8.1.5 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: test image with container | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./test/${{matrix.OS}}.Dockerfile | ||
platforms: linux/amd64 | ||
#,linux/arm64,linux/s390x later | ||
push: false | ||
tags: testcontainer:latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
From registry.access.redhat.com/ubi9 | ||
|
||
USER 0 | ||
|
||
WORKDIR /workspace | ||
|
||
COPY . . | ||
RUN yum update -y && yum install -y git sudo | ||
#RUN yum install -y yum-utils | ||
#RUN yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | ||
#RUN yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y | ||
RUN sudo ./main.sh containerruntime | ||
RUN sudo ./verify.sh containerruntime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
From ubuntu | ||
|
||
WORKDIR /workspace | ||
|
||
COPY . . | ||
RUN apt-get update -y && apt-get install -y git sudo | ||
RUN ./main.sh containerruntime | ||
RUN ./verify.sh containerruntime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters