-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changes for podman * updated readme and other files Signed-off-by: root <[email protected]> * updated makefile year Signed-off-by: root <[email protected]> * changed image to hardcode * updated actions.yaml * updated actions.yaml * updated actions.yaml * updated actions.yaml * updated actions.yaml * updated actions.yaml docker * updated actions.yaml local * updated actions.yaml image name * updated actions.yaml dnf install * updated actions.yaml yum * updated actions.yaml apt-update * updated actions.yaml podman build * updated actions.yaml podman socket * updated actions.yaml podman image load * updated actions.yaml yum * update to actions.yaml, checking os version * update to actions.yaml, removing flag * update to actions.yaml clean * updating github actions * adding back required build * updating make file and actions.yaml --------- Signed-off-by: root <[email protected]>
- Loading branch information
Showing
7 changed files
with
53 additions
and
23 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 |
---|---|---|
|
@@ -88,11 +88,18 @@ jobs: | |
- name: Install Mockgen | ||
run: go get github.com/golang/mock/[email protected] | ||
- name: Get dependencies | ||
run: go mod download | ||
run: go mod download ; sudo apt -y install dnf | ||
- name: Mod tidy | ||
run: go mod tidy | ||
- name: Build podmon Docker Image | ||
run: cd cmd/podmon ; make clean build; docker build -t podmon . | ||
run: | | ||
cd cmd/podmon | ||
chmod +x ../../scripts/buildubimicro.sh | ||
buildah unshare ../../scripts/buildubimicro.sh "registry.access.redhat.com/ubi9-micro:9.2-9" | ||
make clean build | ||
podman build -t docker.io/podmon . --build-arg BASEIMAGE="localhost/resiliency-ubimicro" | ||
podman save docker.io/library/podmon -o /tmp/podmon.tar | ||
docker load -i /tmp/podmon.tar | ||
- name: Image scanner | ||
uses: Azure/container-scan@v0 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
# Copyright (c) 2023 Dell Inc., or its subsidiaries. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
microcontainer=$(buildah from $1) | ||
micromount=$(buildah mount $microcontainer) | ||
dnf install --installroot $micromount --releasever=8 --nodocs --setopt install_weak_deps=false openssl nettle gnutls systemd -y | ||
dnf clean all --installroot $micromount | ||
buildah umount $microcontainer | ||
buildah commit $microcontainer resiliency-ubimicro |
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