Guest User

Untitled

a guest
Sep 18th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #!/bin/bash
  2. set -ex
  3. OPENSTACK_VERSION="stable/queens"
  4. IMAGE_TAG="${OPENSTACK_VERSION#*/}"
  5.  
  6. sudo docker run -d \
  7. --name docker-in-docker \
  8. --privileged=true \
  9. --net=host \
  10. -v /var/lib/docker \
  11. -v ${HOME}/.docker/config.json:/root/.docker/config.json:ro\
  12. docker.io/docker:17.07.0-dind \
  13. dockerd \
  14. --pidfile=/var/run/docker.pid \
  15. --host=unix:///var/run/docker.sock \
  16. --storage-driver=overlay2
  17. sudo docker exec docker-in-docker apk update
  18. sudo docker exec docker-in-docker apk add git
  19.  
  20. sudo docker exec docker-in-docker docker build --force-rm --pull --no-cache \
  21. https://git.openstack.org/openstack/loci.git \
  22. --build-arg PROJECT=keystone \
  23. --build-arg FROM=gcr.io/google_containers/ubuntu-slim:0.14 \
  24. --build-arg PROJECT_REF=${OPENSTACK_VERSION} \
  25. --build-arg PROFILES="fluent apache ldap" \
  26. --build-arg PIP_PACKAGES="pycrypto python-openstackclient" \
  27. --build-arg WHEELS=openstackhelm/requirements:${IMAGE_TAG} \
  28. --tag docker.io/openstackhelm/keystone:${IMAGE_TAG}
Advertisement
Add Comment
Please, Sign In to add comment