Skip to content

Commit

Permalink
Add DCH to OVA (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtchin authored Aug 31, 2017
1 parent 9437902 commit 43c30f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions installer/packer/scripts/provision_harbor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ harbor_containers_bundle=$(find /var/tmp -size +20M -type f -regextype sed -rege
docker load -i "$harbor_containers_bundle"
docker images

# Load DCH into Harbor
dch_image="vmware/dch-photon:1.13"
docker pull $dch_image
docker run -d --name dch-push -v /data/harbor/registry:/var/lib/registry -p 5000:5000 vmware/registry:2.6.2-photon
docker tag $dch_image 127.0.0.1:5000/default-project/$dch_image
sleep 3
docker push 127.0.0.1:5000/default-project/$dch_image
docker rm -f dch-push

# Copy configuration data from tarball
mkdir /etc/vmware/harbor
cp -p /var/tmp/harbor/harbor.cfg /data/harbor
Expand Down
2 changes: 1 addition & 1 deletion installer/packer/scripts/system_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ systemctl enable fileserver_startup.service fileserver.service
systemctl enable engine_installer_startup.service engine_installer.service

# Clean up temporary directories
rm -rf /var/tmp/harbor
rm -rf /tmp/* /var/tmp/*
tdnf clean all

# seal the template
Expand Down

0 comments on commit 43c30f9

Please sign in to comment.