Update Registry to unpack new repo

This commit is contained in:
Mike Reeves
2020-01-23 10:45:08 -05:00
parent 71edddd846
commit 2c619db6ad
3 changed files with 32 additions and 16 deletions

View File

@@ -7,7 +7,6 @@ TARBALL=/nsm/docker-registry/docker/so-dockers-$VERSION.tar
if [ -f "$TARBALL" ]; then
cd /nsm/docker-registry/docker
tar xvf so-dockers-$VERSION.tar
rm $TARBALL
else
exit
fi

View File

@@ -26,6 +26,16 @@ dockerregistryconf:
- name: /opt/so/conf/docker-registry/etc/config.yml
- source: salt://registry/etc/config.yml
# Copy the registry script
dockerregistrybuild:
file.managed:
- name: /opt/so/conf/docker-registry/so-buildregistry
- source: salt://registry/bin/so-buildregistry
dockerexpandregistry:
cmd.run:
- name: /opt/so/conf/docker-registry/so-buildregistry
# Install the registry container
so-dockerregistry:
docker_container.running: