UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 46037e10 authored by joshwolf's avatar joshwolf
Browse files

Merge branch '244-include-registry-container-with-images-tar-gz' into 'master'

Resolve "Include registry container with images.tar.gz"

Adds a registry container to the synker file for better airgappiness. Check the issue.

Closes #244

See merge request platform-one/big-bang/bigbang!334
parents 174afdb7 0547ccbf
No related branches found
No related tags found
1 merge request!334Resolve "Include registry container with images.tar.gz"
Pipeline #198850 passed
......@@ -309,7 +309,7 @@ aws/rke2/cluster down:
package:
stage: package
image: registry.dso.mil/platform-one/big-bang/bigbang/synker:0.0.2
image: registry.dso.mil/platform-one/big-bang/bigbang/synker:0.0.3
extends:
- .bigbang-dogfood
rules:
......@@ -331,6 +331,9 @@ package:
- yq e '.source.images | .[] | ... comments=""' "./synker.yaml" > images.txt
# Tar up synker as well?
- cp /usr/local/bin/synker synker.yaml /var/lib/registry/
# Grab the registry image
- crane pull registry:2 registry.tar
- mv registry.tar /var/lib/registry/
- tar -C /var/lib/registry -czvf $IMAGE_PKG .
- tar -czvf $IMAGE_PKG /var/lib/registry
# Package dependent repos
......
......@@ -28,6 +28,13 @@ RUN curl -sL https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/aw
/tmp/aws/install && \
rm -rf /tmp/aws*
# Install crane
RUN curl -sL https://github.com/google/go-containerregistry/releases/download/v0.4.1/go-containerregistry_Linux_x86_64.tar.gz -o /tmp/crane.tar.gz && \
mkdir -p /tmp/crane && \
tar -zxf /tmp/crane.tar.gz -C /tmp/crane && \
mv /tmp/crane/crane /usr/local/bin/crane && \
chmod +x /usr/local/bin/crane && \
rm -rf /tmp/crane*
RUN yum clean all && \
rm -r /var/cache/dnf
......@@ -25,6 +25,9 @@ destination:
source:
authFile: /root/.docker/config.json
images:
# Include registry image
- registry:2
- registry1.dso.mil/ironbank/twistlock/defender/defender:20.12.531
- registry1.dso.mil/ironbank/anchore/enterprise/enterprise:3.0.1
- registry1.dso.mil/ironbank/anchore/enterpriseui/enterpriseui:3.0.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment