Skip to content

Commit

Permalink
More testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Sep 12, 2016
1 parent 103551f commit 89df82f
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bin/compose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo "Composing"
docker-compose up -d
4 changes: 4 additions & 0 deletions bin/decompose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo "Decomposing"
docker-compose stop
7 changes: 7 additions & 0 deletions bin/prune.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

result=$(docker volume ls -qf dangling=true)

if [ ! -z "$result" ]; then
docker volume rm $result
fi
3 changes: 3 additions & 0 deletions bin/recompose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

source bin/decompose.sh && source bin/destroy.sh && source bin/prune.sh && source bin/build.sh && source bin/compose.sh
4 changes: 2 additions & 2 deletions common.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
maintainer="bigfleet"
imagename="shibboleth_idp_runtime"
maintainer="my"
imagename="shibboleth_idp"
version="3.2.1"
34 changes: 34 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: '2'

services:
shibboleth_idp_0:
image: my/shibboleth_idp
container_name: shibboleth_idp_0
hostname: shibboleth_idp_0
volumes:
- ./credentials:/tmp/credentials
- ./logs/tomcat:/usr/local/tomcat/logs:rw
- ./logs/shibboleth_idp:/opt/shibboleth/shibboleth-identity-provider-3.2.1/logs:rw
ports:
- "8080:8443"
shibboleth_idp_1:
image: my/shibboleth_idp
container_name: shibboleth_idp_1
hostname: shibboleth_idp_1
volumes:
- ./credentials:/tmp/credentials
- ./logs/tomcat:/usr/local/tomcat/logs:rw
- ./logs/shibboleth_idp:/opt/shibboleth/shibboleth-identity-provider-3.2.1/logs:rw
ports:
- "8081:8443"
haproxy:
image: my/haproxy
container_name: haproxy
hostname: haproxy
links:
- shibboleth_idp_1
- shibboleth_idp_0
ports:
- "80:80"
- "5533:5533"
- "443:443"

0 comments on commit 89df82f

Please sign in to comment.