Run docker registry in gate
Part of plan to have registry-like behavior in deploy gates. First part is to run docker registry locally. Next one will be pushing built images to it, tar.gz whole registry (separate per distro and type) and use publisher jobs to upload whole registry to tarballs.o.o Change-Id: I81f154fe6ef58ef93815f42496aef382d32f6774
This commit is contained in:
parent
e74f947ff7
commit
069d1a2bfb
@ -70,7 +70,7 @@ else
|
||||
sudo tee /etc/systemd/system/docker.service.d/kolla.conf << EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/dockerd --storage-driver btrfs
|
||||
ExecStart=/usr/bin/dockerd --storage-driver btrfs --insecure-registry=127.0.0.1:4000
|
||||
MountFlags=shared
|
||||
EOF
|
||||
sudo systemctl daemon-reload
|
||||
|
@ -53,7 +53,7 @@ sudo mkdir /etc/systemd/system/docker.service.d
|
||||
sudo tee /etc/systemd/system/docker.service.d/kolla.conf << EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/dockerd --storage-driver btrfs
|
||||
ExecStart=/usr/bin/dockerd --storage-driver btrfs --insecure-registry=127.0.0.1:4000
|
||||
MountFlags=shared
|
||||
EOF
|
||||
|
||||
|
@ -145,10 +145,17 @@ function setup_logging {
|
||||
mkdir -p /tmp/logs/{ansible,build,kolla,kolla_configs,system_logs}
|
||||
}
|
||||
|
||||
function setup_registry {
|
||||
sudo mkdir /tmp/kolla_registry
|
||||
sudo chmod -R 644 /tmp/kolla_registry
|
||||
docker run -d -p 4000:5000 --restart=always -v /tmp/kolla_registry/:/var/lib/registry --name registry registry:2
|
||||
}
|
||||
|
||||
setup_logging
|
||||
tools/dump_info.sh
|
||||
setup_workaround_broken_nodepool
|
||||
setup_ssh
|
||||
setup_ansible
|
||||
setup_node
|
||||
setup_registry
|
||||
setup_config
|
||||
|
Loading…
Reference in New Issue
Block a user