Skip to content

Commit

Permalink
Merge pull request #1315 from t-woerner/container_copy_fetch
Browse files Browse the repository at this point in the history
infra/image/shcontainer: New container_copy and container_fetch
  • Loading branch information
rjeffman authored Nov 28, 2024
2 parents 6513375 + 82a53b9 commit 29fc03c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions infra/image/shcontainer
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,23 @@ container_image_list() {
container_check() {
[ -n "$(command -v "podman")" ] || die "podman is required."
}

container_copy() {
local name="${1}"
local source="${2}"
local destination="${3}"

log info "= Copying ${source} to ${name}:${destination} ="
podman cp "${source}" "${name}:${destination}"
echo
}

container_fetch() {
local name="${1}"
local source="${2}"
local destination="${3}"

log info "= Copying ${name}:${source} to ${destination} ="
podman cp "${name}:${source}" "${destination}"
echo
}

0 comments on commit 29fc03c

Please sign in to comment.