Last active
August 29, 2015 14:06
-
-
Save aweiteka/debe7bd7c9eb3f4a9bcb to your computer and use it in GitHub Desktop.
Running Crane as a docker container on Pulp server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Runs crane container on pulp server | |
# Container runs on port 5000 since port 80 is used by pulp host apache | |
# serves docker content on port 80 so docker client doesn't choke on unsigned ssl cert | |
# Unsigned cert error: x509: certificate signed by unknown authority | |
# Note: pulp_docker default redirect-url is https://<hostname>/pulp/docker/<image> | |
# This assumes http://<hostname>/pulp/docker/<image> | |
cat >/etc/pulp/vhosts80/docker.conf <<EOF | |
Alias /pulp/docker /var/www/pub/docker/web80 | |
<Directory /var/www/pub/docker/web80> | |
Options FollowSymLinks Indexes | |
Require all granted | |
</Directory> | |
EOF | |
ln -s /var/www/pub/docker/web /var/www/pub/docker/web80 | |
systemctl restart httpd | |
docker run -d -p 5000:80 -v /var/lib/pulp/published/docker:/var/lib/pulp/published/docker -v /var/www/pub/docker/app:/var/lib/crane/metadata pulp/crane |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment