{"id":16055514,"url":"https://github.com/uglow/backstopjs","last_synced_at":"2025-04-05T08:13:50.267Z","repository":{"id":70058058,"uuid":"92820850","full_name":"uglow/backstopjs","owner":"uglow","description":"BackstopJS Docker image","archived":false,"fork":false,"pushed_at":"2017-06-05T03:33:56.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T15:50:36.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uglow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-30T10:16:08.000Z","updated_at":"2020-01-31T21:18:27.000Z","dependencies_parsed_at":"2023-06-05T07:30:30.023Z","dependency_job_id":null,"html_url":"https://github.com/uglow/backstopjs","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"05703c719187f3da9cfae19386657a50c81ad57b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fbackstopjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fbackstopjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fbackstopjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fbackstopjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uglow","download_url":"https://codeload.github.com/uglow/backstopjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305946,"owners_count":20917208,"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":[],"created_at":"2024-10-09T02:09:15.094Z","updated_at":"2025-04-05T08:13:50.240Z","avatar_url":"https://github.com/uglow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker for Visual Regression Testing (VRT)\n\nWe are using a Docker image to perform visual regression testing, so that we get consistent results regardless of \nthe host-OS that is running the test. \n\n## Installing Docker for Mac\n\nFollow the [instructions](https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac) to install Docker for Mac\n\n## Install the VRT image\n\n```\ndocker pull uglow/backstopjs\n```\n\n**Make sure you allocate *enough memory* (more than 2GB) to Docker.** You can change this in your Docker Preferences (in OSX).\n\n\n## Using the image\n\nSee [CONTRIBUTING.md](../../CONTRIBUTING.md).\n\n\nThe base commands in `package.json` are listed below:\n\n```\n# On OSX:\ndocker run --rm -v $PWD:/src/ -it --add-host dockerhost:`ipconfig getifaddr en0` uglow/backstopjs test --config=config/testVisualRegression/backstop.ci.config.js\n\n# ON Linux:\ndocker run --rm -v $PWD:/src/ -it --add-host dockerhost:`/sbin/ip route|awk '/default/ { print  $3}'` uglow/backstopjs test --config=config/testVisualRegression/backstop.ci.config.js\n```\n\nThe reason for two different commands is that there are OS-specific ways to get the HOST IP address and\npass it to the container.\n\n\n## Debugging the image\n\n```\ndocker run --rm -v $PWD:/src/ -it --entrypoint=/bin/bash uglow/backstopjs\n```\n\n## Rebuilding the image\n\nYou would only ever need to rebuild the image if you are changing it. Once you change it you also need to publish it.\n\n### Changing the image\n\n1. Open a terminal and navigate into the `config/docker` directory\n2. Edit `Dockerfile` as required\n3. Run `docker build`\n\n### Publishing the image\n\nHopefully one day there will be a local AusPost repo. Until then, you will need your own Docker account to publish to\nthe global registry.\n\n1. Create a Docker account on [https://hub.docker.com/](https://hub.docker.com/) \n2. Run `docker login` locally, and enter your Docker credentials\n3. Run `docker image push \u003cimage\u003e:latest`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuglow%2Fbackstopjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuglow%2Fbackstopjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuglow%2Fbackstopjs/lists"}