forked from goss-org/goss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smaller improvements to dcgoss (goss-org#478)
* Debugging improvements: add option to enable debug output of dcgoss * do not delete tmp dir when running in debug Runtime improvements: raise default timeout also stop container started with docker-compose run move goss sleep to the beginning of the test run do not delete container after run, rather stop it print logs on error print total runtime of test at the end implement goss_file option from goss-org#454 always copy goss.yaml as well only copy goss_file when it exists do not run edit mode, when goss_file is set better handling for goss_file delete testing object after run use install instead of cp * this allows to specify permissions of the resulting file. otherwise it may not be writeable in the target Improve documentation: * document debug option * add example compose file * consistently use the db container as the example * add example for goss files path * fix readme clean todos Signed-off-by: Felix Bartels <[email protected]>
- Loading branch information
1 parent
a5df5c5
commit 6cda956
Showing
3 changed files
with
74 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: '3.3' | ||
|
||
services: | ||
db: | ||
image: mysql:5.7 | ||
volumes: | ||
- db_data:/var/lib/mysql | ||
restart: always | ||
environment: | ||
MYSQL_ROOT_PASSWORD: somewordpress | ||
MYSQL_DATABASE: wordpress | ||
MYSQL_USER: wordpress | ||
MYSQL_PASSWORD: wordpress | ||
|
||
wordpress: | ||
depends_on: | ||
- db | ||
image: wordpress:latest | ||
ports: | ||
- "8000:80" | ||
restart: always | ||
environment: | ||
WORDPRESS_DB_HOST: db:3306 | ||
WORDPRESS_DB_USER: wordpress | ||
WORDPRESS_DB_PASSWORD: wordpress | ||
WORDPRESS_DB_NAME: wordpress | ||
volumes: | ||
db_data: {} |