Skip to content

Commit

Permalink
Do not removed sanitizing container automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
jifeon committed Mar 13, 2020
1 parent a9b07c8 commit 54fb1eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion publisher/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ EORESTORE

# we need to sanitize sensitive data first
log "Running another postgres docker image for sanitizer"
docker run --name sanitizing_db_container -d --rm \
docker run --name sanitizing_db_container -d \
-v ${DUMPS_DIR}:/files \
-w /docker-entrypoint-initdb.d \
-e DB_NAME=${DB_NAME} \
Expand Down Expand Up @@ -103,8 +103,11 @@ EORESTORE
else
log "File ${backup_file} is not found, stopping publishing container"
docker stop publishing_db_container
docker stop sanitizing_db_container
fi

log "Trying to kill publisher in case it was not stopped"
docker kill publishing_db_container
docker rm publishing_db_container
docker kill sanitizing_db_container
docker rm sanitizing_db_container

0 comments on commit 54fb1eb

Please sign in to comment.