{"id":20085500,"url":"https://github.com/smarthome-go/server-integration-docker","last_synced_at":"2025-03-02T14:23:38.832Z","repository":{"id":54134982,"uuid":"522056841","full_name":"smarthome-go/server-integration-docker","owner":"smarthome-go","description":"A docker image for running the server's integration tests in a reproducible manner","archived":false,"fork":false,"pushed_at":"2022-08-07T09:19:01.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-13T02:17:19.679Z","etag":null,"topics":["ci-cd","concourse-ci","docker","docker-container","integration-testing","reproducible-workflows"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/repository/docker/mikmuellerdev/smarthome-integration-test","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smarthome-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-06T21:24:30.000Z","updated_at":"2022-08-10T17:09:28.000Z","dependencies_parsed_at":"2022-08-13T07:20:10.417Z","dependency_job_id":null,"html_url":"https://github.com/smarthome-go/server-integration-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarthome-go%2Fserver-integration-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarthome-go%2Fserver-integration-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarthome-go%2Fserver-integration-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarthome-go%2Fserver-integration-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smarthome-go","download_url":"https://codeload.github.com/smarthome-go/server-integration-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241518115,"owners_count":19975384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci-cd","concourse-ci","docker","docker-container","integration-testing","reproducible-workflows"],"created_at":"2024-11-13T15:56:15.671Z","updated_at":"2025-03-02T14:23:38.804Z","avatar_url":"https://github.com/smarthome-go.png","language":"Shell","readme":"# server-integration-docker\nA docker image for running the server's integration tests in a reproducible manner\n\n## Building the Image\n```bash\nmake docker\n```\n\n## Running locally\n*Note*: The image acts like a runner and must therefore be provided with a Smarthome-server working directory as a volume.\n\n```bash\n# Navigate into the `smarthome-go/smarthome` repository\n# cd smarthome\n\n# Run following command AFTER the image has been built\n# This will start the integration tests using a local version of the code\ndocker run -it \\\n  --rm \\\n  --name smarthome-server-integration-tests \\\n  -e 'SMARTHOME_INTEGRATION_SETUP_ONLY'=0 \\\n  -v $(pwd):/opt/smarthome/tests \\\n  mikmuellerdev/smarthome-integration-test\n```\n\n### Setup Only\nSometimes it is desired to only setup MariaDB and check the current directory for validity, in those cases the\n`SMARTHOME_INTEGRATION_SETUP_ONLY1` environment variable can be set to `1`.\n\nThose cases include using the image to perform other tests on the server repository, for example running the actual server.\n\n#### Valid Values\n| Value | Result                                |\n|-------|---------------------------------------|\n| `0`   | Continuation of the integration tests |\n| `1`   | Abortion using exit-code `0`          |\n| empty | Continuation of the integration tests |\n| any   | Error using exit-code `1`             |\n\n```bash\n# Navigate into the `smarthome-go/smarthome` repository\n# cd smarthome\n\n# Run following command AFTER the image has been built\n# This will abort the integration tests\n# due to the `xxx_SETUP_ONLY` environment variable bein set to `1`\ndocker run -it \\\n  --rm \\\n  --name smarthome-server-integration-tests \\\n  -e 'SMARTHOME_INTEGRATION_SETUP_ONLY'=1 \\\n  -v $(pwd):/opt/smarthome/tests \\\n  mikmuellerdev/smarthome-integration-test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarthome-go%2Fserver-integration-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmarthome-go%2Fserver-integration-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarthome-go%2Fserver-integration-docker/lists"}