-
Notifications
You must be signed in to change notification settings - Fork 8
Test metadata by generating DB images
Maksym Zaporozhets edited this page Jun 14, 2023
·
2 revisions
Test docker:mysql:generate-metadata and docker:mysql:reconstruct-db.
Test the script that generates DB metadata files by running various containers, generating metadata and reconstructing those DBs. This command will test everything locally without interacting with AWS S3 or pushing image to a registry.
Command log file: var/log/docker_mysql_test_metadata.log
Example usage:
php bin/dockerizer docker:mysql:test-metadata
Place test database dump here: ./var/tmp/database.sql.gz
- Call composition:build-from-template to generate composition based on the
generic_php_apache_app.yaml
template. - Run this composition.
- Call docker:mysql:generate-metadata to generate metadata file.
- Shut down and remove composition.
- Mock environment: set
DOCKERIZER_AWS_S3_REGION=example-region
,DOCKERIZER_AWS_S3_BUCKET=example-bucket
,DOCKERIZER_AWS_S3_OBJECT_KEY=metadata.json
. - Call docker:mysql:reconstruct-db in the test mode.
-
DOCKERIZER_SSL_CERTIFICATES_DIR
in thedocker-compose.yaml
- the directory where SSL certificates are stored.
- docker:mysql:connect
- docker:mysql:export-db
- docker:mysql:import-db
- docker:mysql:upload-to-aws
- docker:mysql:generate-metadata
- docker:mysql:reconstruct-db
- docker:mysql:test-metadata
- magento:setup
- magento:reinstall
- magento:test-module-install
- magento:test-templates
- magento:test-dockerfiles
- MacOS and Docker Desktop support
- Bash aliases
- Install Symfony with Dockerizer
- Running-apps-with-existing-Docker-compositions
- Limitations
- Building MySQL images with DB: how it works
- Configure AWS Lambda
- Gitlab pipeline to build images
- Managing AWS S3 access
- Using AWS credentials with Dockerizer
- Access management cheat-sheet
- FAQ