Install Script - Docker Registry inital commits

This commit is contained in:
Mike Reeves
2018-05-31 09:39:08 -04:00
parent 49ead2ee03
commit c4aee71240
2 changed files with 24 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ aptcacherlogdir:
- user: 939 - user: 939
- group: 939 - group: 939
- makedirs: true - makedirs: true
# Copy the config # Copy the config
# Install the apt-cacher-ng container - TODO Create a so-docker for it # Install the apt-cacher-ng container - TODO Create a so-docker for it
so-aptcacherng: so-aptcacherng:
@@ -44,6 +45,20 @@ so-aptcacherng:
# Create the config directory for the docker registry # Create the config directory for the docker registry
dockerregistryconfdir:
file.directory:
- name: /opt/so/conf/docker-registry
- user: 939
- group: 939
- makedirs: True
dockerregistrylogdir:
file.directory:
- name: /opt/so/log/docker-registry
- user: 939
- group: 939
- makedirs: true
# Copy the config # Copy the config
# Install the registry container # Install the registry container

View File

@@ -207,6 +207,15 @@ detect_os() {
} }
docker_registry() {
# Make the host use the master docker registry
echo "{" > /etc/docker/daemon.json
echo " \"registry-mirrors\": [\"https://$MSRV\"]" >> /etc/docker/daemon.json
echo "}" >> /etc/docker/daemon.json
}
es_heapsize() { es_heapsize() {
# Determine ES Heap Size # Determine ES Heap Size