mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-19 15:33:06 +01:00
Install Script - Docker Registry inital commits
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user