{"id":25649814,"url":"https://github.com/travelaudience/docker-cloudsql-goose","last_synced_at":"2026-05-12T12:39:03.152Z","repository":{"id":85537887,"uuid":"295979881","full_name":"travelaudience/docker-cloudsql-goose","owner":"travelaudience","description":"Docker image for running goose transactions on a cloudsql database","archived":false,"fork":false,"pushed_at":"2024-11-08T18:37:48.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-08T19:45:53.340Z","etag":null,"topics":["cloudsql","docker","goose","owner-det"],"latest_commit_sha":null,"homepage":"","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/travelaudience.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":"2020-09-16T09:02:44.000Z","updated_at":"2023-08-05T06:50:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2358432-b744-44a9-8ece-67364af4f645","html_url":"https://github.com/travelaudience/docker-cloudsql-goose","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelaudience%2Fdocker-cloudsql-goose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelaudience%2Fdocker-cloudsql-goose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelaudience%2Fdocker-cloudsql-goose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travelaudience%2Fdocker-cloudsql-goose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travelaudience","download_url":"https://codeload.github.com/travelaudience/docker-cloudsql-goose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240329895,"owners_count":19784536,"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":["cloudsql","docker","goose","owner-det"],"created_at":"2025-02-23T14:34:23.874Z","updated_at":"2026-05-12T12:39:03.096Z","avatar_url":"https://github.com/travelaudience.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-cloudsql-goose\nDocker image for running [goose ](https://github.com/pressly/goose) migrations on a cloudsql database\n\n# Usage\n\n## CircleCI\n\n## Configuration (Local)\n\nParameters are passed as environment variables, so the image can easily be used from CircleCI (See below). For local development it is recommended to set up a `.env.local` file with the following contents:\n\n```bash\n# Contents of the service account json file. (put everything on 1 line. dot env files don't support multiline variables)\n# https://cloud.google.com/iam/docs/creating-managing-service-account-keys\nCLOUDSQL_PROXY_SA=SERVICE_ACCOUNT_SECRET_JSON\n# The cloudsql instance you want to connect to\nGCLOUD_SQL_INSTANCE=project:region:cloudsql_instance=tcp:localhost:port\n\n# Goose \u0026 postgres connection configuration\nPOSTGRES_USER=postgres\nPOSTGRES_PASSWORD=XXXXXX\nPOSTGRES_PORT=5536\nPOSTGRES_DATABASE=goose_demo\nGOOSE_DRIVER=postgres\n```\n\n## Build \u0026 Run (local)\n```bash\n# Build the image\ndocker build -t travelaudience/cloudsql-goose . \n\n# For local executions we mount the goose migration folder\ndocker run --rm -it --name goose \\\n    --env-file .env.local \\\n    --mount type=bind,source=\"$(pwd)\"/db/migrations,target=/db/migrations \\\n    -u $(id -u ${USER}):$(id -g ${USER}) \\\n    cloudsql-goose\n\n# cd into the directory we mounted\ncd migrations/\n```\n\n### Create a new sql migration\n\nThis might create the file as root on your host system\n```bash\ngoose create sql\n```\n\n### Apply migrations\n\n```bash\ngoose up\n```\n\n### Remove everything\n\n```bash\ngoose reset\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravelaudience%2Fdocker-cloudsql-goose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravelaudience%2Fdocker-cloudsql-goose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravelaudience%2Fdocker-cloudsql-goose/lists"}