Commit ca169a4d authored by Christian Kuhn's avatar Christian Kuhn
Browse files
parent 1bae717b
......@@ -109,6 +109,16 @@ write_files:
- owner: 'root:root'
path: /root/
content: |
# This hack prevents a race condition: When gitlab runner creates multiple machines at a time
# in the first cycle, certificates are broken. We now force certificate generation ONCE for a
# single machine before starting gitlab.
docker-machine create --driver none --url localhost dummy-machine
sleep 10
docker-machine rm -y dummy-machine
sleep 10
source ~/.profile
sed -i "s/my-registry-mirror/$MY_IP/" /root/docker-machine-cloud-init.yml
MACHINE_CLOUD_INIT_USER_DATA=`cat /root/docker-machine-cloud-init.yml`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment