mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
adding high level overview diagram
This commit is contained in:
@@ -13,7 +13,7 @@ ifeq ($(dc-backup),)
|
|||||||
dc-backup:=$(dc) -f ../docker-compose.yml -f docker-compose.backup.yml
|
dc-backup:=$(dc) -f ../docker-compose.yml -f docker-compose.backup.yml
|
||||||
endif
|
endif
|
||||||
|
|
||||||
backup-prepare: ## 1 - prepare backup for testing
|
backup-prepare: clean ## 1 - prepare backup for testing
|
||||||
@echo "Starting Backup Prepare" && \
|
@echo "Starting Backup Prepare" && \
|
||||||
$(sudo) rm -rf $(HOST_BACKUP_LOCATION) && \
|
$(sudo) rm -rf $(HOST_BACKUP_LOCATION) && \
|
||||||
mkdir -p $(HOST_BACKUP_LOCATION)/alf_data && \
|
mkdir -p $(HOST_BACKUP_LOCATION)/alf_data && \
|
||||||
@@ -27,12 +27,12 @@ backup-perform: ## 2 - perform the backup of alf_data and db data
|
|||||||
@echo "Starting Backup Perform" && \
|
@echo "Starting Backup Perform" && \
|
||||||
$(sudo) rm -rf $(HOST_BACKUP_LOCATION)_$(SUFIX) && \
|
$(sudo) rm -rf $(HOST_BACKUP_LOCATION)_$(SUFIX) && \
|
||||||
$(sudo) chmod -R 777 $(HOST_BACKUP_LOCATION) && \
|
$(sudo) chmod -R 777 $(HOST_BACKUP_LOCATION) && \
|
||||||
docker-compose stop alfresco && \
|
$(dc-backup) stop alfresco && \
|
||||||
$(dc-backup) exec postgres bash -c 'pg_dump --dbname=postgresql://alfresco:alfresco@127.0.0.1:5432/alfresco' > $(HOST_BACKUP_LOCATION)/db/alfresco.pg && \
|
$(dc-backup) exec postgres bash -c 'pg_dump --dbname=postgresql://alfresco:alfresco@127.0.0.1:5432/alfresco' > $(HOST_BACKUP_LOCATION)/db/alfresco.pg && \
|
||||||
cp -R $(HOST_BACKUP_LOCATION) $(HOST_BACKUP_LOCATION)_$(SUFIX) && \
|
cp -R $(HOST_BACKUP_LOCATION) $(HOST_BACKUP_LOCATION)_$(SUFIX) && \
|
||||||
docker-compose start alfresco
|
$(dc-backup) start alfresco
|
||||||
|
|
||||||
backup-restore: ## 3 - start restoring from backup location
|
backup-restore: clean ## 3 - start restoring from backup location
|
||||||
@echo "Starting Backup Restore" && \
|
@echo "Starting Backup Restore" && \
|
||||||
$(sudo) rm -rf $(HOST_BACKUP_LOCATION) && \
|
$(sudo) rm -rf $(HOST_BACKUP_LOCATION) && \
|
||||||
mkdir -p $(HOST_BACKUP_LOCATION) && \
|
mkdir -p $(HOST_BACKUP_LOCATION) && \
|
||||||
@@ -40,6 +40,7 @@ backup-restore: ## 3 - start restoring from backup location
|
|||||||
cp -rf $(HOST_BACKUP_LOCATION)_$(SUFIX)/db/ $(HOST_BACKUP_LOCATION)/db/ && \
|
cp -rf $(HOST_BACKUP_LOCATION)_$(SUFIX)/db/ $(HOST_BACKUP_LOCATION)/db/ && \
|
||||||
cp -rf $(HOST_BACKUP_LOCATION)_$(SUFIX)/solr $(HOST_BACKUP_LOCATION)/solr && \
|
cp -rf $(HOST_BACKUP_LOCATION)_$(SUFIX)/solr $(HOST_BACKUP_LOCATION)/solr && \
|
||||||
$(sudo) chmod -R 777 $(HOST_BACKUP_LOCATION) && \
|
$(sudo) chmod -R 777 $(HOST_BACKUP_LOCATION) && \
|
||||||
|
$(dc-backup) up -d postgres && sleep 30 && \
|
||||||
$(dc-backup) exec postgres bash -c 'psql --dbname=postgresql://alfresco:alfresco@127.0.0.1:5432/alfresco < /backup/db/alfresco.pg' && \
|
$(dc-backup) exec postgres bash -c 'psql --dbname=postgresql://alfresco:alfresco@127.0.0.1:5432/alfresco < /backup/db/alfresco.pg' && \
|
||||||
$(dc-backup) up -d
|
$(dc-backup) up -d
|
||||||
|
|
||||||
@@ -47,13 +48,13 @@ all: show-config ## 0 - executes the entire backup process
|
|||||||
# perform the backup and waits until the server is starting
|
# perform the backup and waits until the server is starting
|
||||||
# do some change on backed up data
|
# do some change on backed up data
|
||||||
# then restore from backup and check the content is restored as expected
|
# then restore from backup and check the content is restored as expected
|
||||||
make clean backup-prepare wait && \
|
make backup-prepare wait && \
|
||||||
make run-mvn-tests suiteXmlFile=./src/test/resources/search-pre-backup-suite.xml
|
make run-mvn-tests suiteXmlFile=./src/test/resources/search-pre-backup-suite.xml
|
||||||
|
|
||||||
make backup-perform wait && \
|
make backup-perform wait && \
|
||||||
make run-mvn-tests suiteXmlFile=./src/test/resources/search-on-backup-suite.xml
|
make run-mvn-tests suiteXmlFile=./src/test/resources/search-on-backup-suite.xml
|
||||||
|
|
||||||
make clean backup-restore wait && \
|
make backup-restore wait && \
|
||||||
make run-mvn-tests suiteXmlFile=./src/test/resources/search-post-backup-suite.xml
|
make run-mvn-tests suiteXmlFile=./src/test/resources/search-post-backup-suite.xml
|
||||||
|
|
||||||
show-config: ## show compose configuration
|
show-config: ## show compose configuration
|
||||||
|
@@ -4,6 +4,8 @@ Testing the Backup of SearchService product
|
|||||||
|
|
||||||
**Build Plan:** https://bamboo.alfresco.com/bamboo/browse/SAD-QAB
|
**Build Plan:** https://bamboo.alfresco.com/bamboo/browse/SAD-QAB
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
# Steps
|
# Steps
|
||||||
|
|
||||||
* **a)** prepare the backup
|
* **a)** prepare the backup
|
||||||
|
BIN
e2e-test/qa/search/backup/docs/backup.png
Normal file
BIN
e2e-test/qa/search/backup/docs/backup.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 258 KiB |
@@ -4,6 +4,8 @@ Testing the Upgrade of SearchService product
|
|||||||
|
|
||||||
**Build Plan:** https://bamboo.alfresco.com/bamboo/browse/SAD-QAUP
|
**Build Plan:** https://bamboo.alfresco.com/bamboo/browse/SAD-QAUP
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
# Steps
|
# Steps
|
||||||
|
|
||||||
* **a)** start the initial version
|
* **a)** start the initial version
|
||||||
|
BIN
e2e-test/qa/search/upgrade/docs/upgrade.png
Normal file
BIN
e2e-test/qa/search/upgrade/docs/upgrade.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 216 KiB |
Reference in New Issue
Block a user