Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smarthome-go/server-integration-docker
A docker image for running the server's integration tests in a reproducible manner
https://github.com/smarthome-go/server-integration-docker
ci-cd concourse-ci docker docker-container integration-testing reproducible-workflows
Last synced: 9 days ago
JSON representation
A docker image for running the server's integration tests in a reproducible manner
- Host: GitHub
- URL: https://github.com/smarthome-go/server-integration-docker
- Owner: smarthome-go
- License: gpl-2.0
- Created: 2022-08-06T21:24:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-07T09:19:01.000Z (over 2 years ago)
- Last Synced: 2024-11-13T15:57:49.335Z (2 months ago)
- Topics: ci-cd, concourse-ci, docker, docker-container, integration-testing, reproducible-workflows
- Language: Shell
- Homepage: https://hub.docker.com/repository/docker/mikmuellerdev/smarthome-integration-test
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# server-integration-docker
A docker image for running the server's integration tests in a reproducible manner## Building the Image
```bash
make docker
```## Running locally
*Note*: The image acts like a runner and must therefore be provided with a Smarthome-server working directory as a volume.```bash
# Navigate into the `smarthome-go/smarthome` repository
# cd smarthome# Run following command AFTER the image has been built
# This will start the integration tests using a local version of the code
docker run -it \
--rm \
--name smarthome-server-integration-tests \
-e 'SMARTHOME_INTEGRATION_SETUP_ONLY'=0 \
-v $(pwd):/opt/smarthome/tests \
mikmuellerdev/smarthome-integration-test
```### Setup Only
Sometimes it is desired to only setup MariaDB and check the current directory for validity, in those cases the
`SMARTHOME_INTEGRATION_SETUP_ONLY1` environment variable can be set to `1`.Those cases include using the image to perform other tests on the server repository, for example running the actual server.
#### Valid Values
| Value | Result |
|-------|---------------------------------------|
| `0` | Continuation of the integration tests |
| `1` | Abortion using exit-code `0` |
| empty | Continuation of the integration tests |
| any | Error using exit-code `1` |```bash
# Navigate into the `smarthome-go/smarthome` repository
# cd smarthome# Run following command AFTER the image has been built
# This will abort the integration tests
# due to the `xxx_SETUP_ONLY` environment variable bein set to `1`
docker run -it \
--rm \
--name smarthome-server-integration-tests \
-e 'SMARTHOME_INTEGRATION_SETUP_ONLY'=1 \
-v $(pwd):/opt/smarthome/tests \
mikmuellerdev/smarthome-integration-test
```