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

Change base image to ubi-minimal #29

Merged
merged 5 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM registry.hub.docker.com/library/alpine:3.19.1@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
FROM registry.access.redhat.com/ubi9/ubi-minimal

LABEL org.opencontainers.image.authors="Adrian Riobo <ariobolo@redhat.com>"

RUN apk --no-cache add openssh-client sshpass zip bash curl
RUN microdnf install -y openssh-clients sshpass zip jq

COPY lib/* entrypoint.sh /usr/local/bin/

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION ?= 0.0.3
VERSION ?= 0.0.4
CONTAINER_MANAGER ?= podman
IMG ?= quay.io/rhqp/deliverest:v${VERSION}

Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# deliverest

Base container to acting as a delivery container for multi arch and multi platform

This container implements a base pattern where it handles the execution of a binary on a target host.

Deliverest typically is a place holder for an assets (binary, script...) created for certain OS and ARCH. deliverest then will connect
within a target host (through ssh) and copy the asset to the target host. Then it will execute a command on the target
host for running the delivered asset and pick the results (if any). Finally it will cleanup everything on the target host.
Base container to run remotely a workload at get back the outcome from it; it uses different ENVs to control the remote execution. The workload executed remotely would be define by the command on the image inheriting from deliverest.

Following diagram describes a basic usage of deliverest:

Expand Down
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Import libs
source remote.sh

# Default values
TARGET_CLEANUP="${TARGET_CLEANUP:-"true"}"

# Debug
if [ "${DEBUG:-}" = "true" ]; then
set -xuo
Expand Down Expand Up @@ -42,5 +45,5 @@ if [[ ! -z "${TARGET_RESULTS+x}" ]]; then
fi

if [ "${TARGET_CLEANUP:-}" = "true" ]; then
$(ssh_cmd "rm -fr ${TARGET_FOLDER}")
$(ssh_cmd "rm -r ${TARGET_FOLDER}")
fi
Loading