-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: podman as a supported container engine (#809)
* feat: podman as a supported container engine in konvoy image builder (#789) * feat: podman as a supported container engine in konvoy image builder * ci: run gcp e2e tests using podman * fix linting error * revert back github action job * ci: run gcp e2e tests using podman * removeme: test github actions flow * build using goreleaser build command * test podman * ci: run sample GHA aws e2e job using podman * run podman as root user * Faiq/kib podman (#801) * fix: move dir to /opt * fix: only mount /etc/grp and /etc/usr * fix: set user and group only in docker * fix: adds nolint * add security opt only for podman engine * ci: run podman kib e2e tests in github actions --------- Co-authored-by: shalin patel <[email protected]> * remove setting container engine using env variable * add user id mapping only for docker runner * allow users to specify container engine * inline export KIB_CONTAINER_ENGINE Co-authored-by: Faiq <[email protected]> --------- Co-authored-by: Faiq <[email protected]> * chore: fix embedded image's tag --------- Co-authored-by: Faiq <[email protected]>
- Loading branch information
Showing
8 changed files
with
160 additions
and
107 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Runs Azure tests when pull request opened, repopened or synchronized | ||
name: Podman E2E Tests - Build AWS AMI | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [labeled, synchronize] | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
rune2e: | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
if: | | ||
github.event_name == 'pull_request' && | ||
( | ||
(github.event.action == 'labeled' && (github.event.label.name == 'runs-e2e-tests' || github.event.label.name == 'runs-aws-tests')) || | ||
(github.event.action == 'synchronize' && (contains(github.event.pull_request.labels.*.name, 'runs-e2e-tests') || contains(github.event.pull_request.labels.*.name, 'runs-aws-tests'))) | ||
) | ||
steps: | ||
- name: Checkout konvoy-image-builder repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.ref }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
|
||
- name: Login to dockerhub Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.NEXUS_USERNAME }} | ||
password: ${{ secrets.NEXUS_PASSWORD }} | ||
|
||
- name: Login to D2iQ's Mirror Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ secrets.D2IQ_DOCKER_MIRROR_REGISTRY}} | ||
username: ${{ secrets.NEXUS_USERNAME }} | ||
password: ${{ secrets.NEXUS_PASSWORD }} | ||
|
||
- name: Setup buildkit | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/konvoy-image-builder | ||
aws-region: us-west-2 | ||
|
||
- name: Download GoReleaser | ||
run: go install github.com/goreleaser/[email protected] | ||
|
||
- name: Build snapshot | ||
run: make build.snapshot | ||
|
||
- name: Run E2E test for AWS centos 7.9 using podman | ||
run: |- | ||
KIB_CONTAINER_ENGINE=podman dist/konvoy-image-wrapper_linux_amd64_v1/konvoy-image build aws images/ami/centos-79.yaml --dry-run | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }} | ||
KIB_CONTAINER_ENGINE: podman |
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
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
Oops, something went wrong.