Skip to content

Commit db74b1d

Browse files
committed
Cleanup
1 parent 836cfb7 commit db74b1d

File tree

5 files changed

+8
-39
lines changed

5 files changed

+8
-39
lines changed

Dockerfile.production

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
#
3030
#++++++++++++++++++++++++++++++++++++++
3131

32-
33-
34-
FROM webdevops/php-apache:ubuntu-14.04
35-
FROM webdevops/php-apache:ubuntu-14.04
36-
FROM webdevops/php-apache:ubuntu-14.04
3732
FROM webdevops/php-apache:ubuntu-14.04
3833

3934
ENV PROVISION_CONTEXT "production"

Makefile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,28 @@ rebuild:
3232
docker-compose rm --force main web
3333
docker-compose build --no-cache
3434

35-
#############################
36-
# Docker cloud
37-
#############################
38-
39-
cloud-build:
40-
docker-compose --file docker-compose-cloud.yml build
41-
docker-compose --file docker-compose-cloud.yml build --no-cache sourcecode
42-
docker-compose --file docker-compose-cloud.yml stop
43-
docker-compose --file docker-compose-cloud.yml rm --force sourcecode
44-
docker-compose --file docker-compose-cloud.yml up -d --force-recreate
45-
4635
#############################
4736
# MySQL
4837
#############################
4938

5039
mysql-backup:
51-
docker-compose run --rm --no-deps main root bash /docker/bin/backup.sh mysql
40+
docker-compose run --rm --no-deps main root bash /application/bin/backup.sh mysql
5241

5342
mysql-restore:
54-
docker-compose run --rm --no-deps main root bash /docker/bin/restore.sh mysql
43+
docker-compose run --rm --no-deps main root bash /application/bin/restore.sh mysql
5544

5645
#############################
5746
# Solr
5847
#############################
5948

6049
solr-backup:
6150
docker-compose stop solr
62-
docker-compose run --rm --no-deps main root bash /docker/bin/backup.sh solr
51+
docker-compose run --rm --no-deps main root bash /application/bin/backup.sh solr
6352
docker-compose start solr
6453

6554
solr-restore:
6655
docker-compose stop solr
67-
docker-compose run --rm --no-deps main root bash /docker/bin/restore.sh solr
56+
docker-compose run --rm --no-deps main root bash /application/bin/restore.sh solr
6857
docker-compose start solr
6958

7059
#############################

bin/backup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ case "$1" in
2626

2727
logMsg "Starting MySQL backup..."
2828
mysqldump --opt --single-transaction --events --all-databases --routines --comments | bzip2 > "${BACKUP_DIR}/${BACKUP_MYSQL_FILE}"
29+
logMsg "Finished"
2930
;;
3031

3132
###################################
@@ -39,5 +40,6 @@ case "$1" in
3940

4041
logMsg "Starting Solr backup..."
4142
tar jcPf "${BACKUP_DIR}/${BACKUP_SOLR_FILE}" /data/solr/
43+
logMsg "Finished"
4244
;;
4345
esac

bin/entrypoint.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

bin/restore.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ case "$1" in
2222
if [ -f "${BACKUP_DIR}/${BACKUP_MYSQL_FILE}" ]; then
2323
logMsg "Starting MySQL restore..."
2424
bzcat "${BACKUP_DIR}/${BACKUP_MYSQL_FILE}" | mysql
25+
logMsg "Finished"
2526
else
2627
errorMsg "MySQL backup file not found"
2728
exit 1
@@ -37,6 +38,7 @@ case "$1" in
3738
rm -rf /data/solr/* && mkdir -p /data/solr/
3839
chmod 777 /data/solr/
3940
tar jxPf "${BACKUP_DIR}/${BACKUP_SOLR_FILE}" -C /
41+
logMsg "Finished"
4042
else
4143
errorMsg "Solr backup file not found"
4244
exit 1

0 commit comments

Comments
 (0)