1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

prune images

This commit is contained in:
Kyle Spearrin 2017-08-21 12:08:31 -04:00
parent 712e3f3477
commit 7524054c12
2 changed files with 6 additions and 2 deletions

View File

@ -11,11 +11,13 @@ if($dockerDir -eq "") {
docker --version
docker-compose --version
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down
$letsEncryptPath = "${outputDir}/letsencrypt"
if(Test-Path -Path $letsEncryptPath) {
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
renew --logs-dir /etc/letsencrypt/logs
}
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml up -d
docker image prune -f

View File

@ -24,6 +24,8 @@ fi
docker --version
docker-compose --version
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down
LETS_ENCRYPT_PATH = "${outputDir}/letsencrypt"
if [ -d "LETS_ENCRYPT_PATH" ]
then
@ -31,5 +33,5 @@ then
renew --logs-dir /etc/letsencrypt/logs
fi
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml up -d
docker image prune -f