Skip to content

Commit

Permalink
Merge pull request kubev2v#176 from tupyy/disconnected-env
Browse files Browse the repository at this point in the history
ignition: Copy embeded images from archive to container storage
  • Loading branch information
tupyy authored Mar 3, 2025
2 parents 0f67279 + adfe816 commit 09c9d4c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions data/ignition.template
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,24 @@ storage:
contents:
inline: |
PasswordAuthentication yes
- path: /etc/systemd/user-generators/100-skopeo.sh
mode: 0775
contents:
inline: |
#!/usr/bin/bash
IMAGE_STORAGE=/usr/share/assisted-migrations/images
if ! command -v skopeo 2>&1 >/dev/null
then
echo "skopeo could not be found"
exit 0
fi

if [ -f $IMAGE_STORAGE/migration-planner-agent ]; then
skopeo copy oci-archive:$IMAGE_STORAGE/migration-planner-agent containers-storage:quay.io/kubev2v/migration-planner-agent:latest
fi
if [ -f $IMAGE_STORAGE/forklift-validation ]; then
skopeo copy oci-archive:$IMAGE_STORAGE/forklift-validation containers-storage:quay.io/kubev2v/forklift-validation:release-v2.6.4
fi
- path: /home/core/.migration-planner/config/config.yaml
contents:
inline: |
Expand Down

0 comments on commit 09c9d4c

Please sign in to comment.