Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -ex
- OPENSTACK_VERSION="stable/queens"
- IMAGE_TAG="${OPENSTACK_VERSION#*/}"
- sudo docker run -d \
- --name docker-in-docker \
- --privileged=true \
- --net=host \
- -v /var/lib/docker \
- -v ${HOME}/.docker/config.json:/root/.docker/config.json:ro\
- docker.io/docker:17.07.0-dind \
- dockerd \
- --pidfile=/var/run/docker.pid \
- --host=unix:///var/run/docker.sock \
- --storage-driver=overlay2
- sudo docker exec docker-in-docker apk update
- sudo docker exec docker-in-docker apk add git
- sudo docker exec docker-in-docker docker build --force-rm --pull --no-cache \
- https://git.openstack.org/openstack/loci.git \
- --build-arg PROJECT=keystone \
- --build-arg FROM=gcr.io/google_containers/ubuntu-slim:0.14 \
- --build-arg PROJECT_REF=${OPENSTACK_VERSION} \
- --build-arg PROFILES="fluent apache ldap" \
- --build-arg PIP_PACKAGES="pycrypto python-openstackclient" \
- --build-arg WHEELS=openstackhelm/requirements:${IMAGE_TAG} \
- --tag docker.io/openstackhelm/keystone:${IMAGE_TAG}
Advertisement
Add Comment
Please, Sign In to add comment