{"id":20911095,"url":"https://github.com/lren-chuv/docker-alembic","last_synced_at":"2025-05-13T07:32:00.983Z","repository":{"id":144914253,"uuid":"91359722","full_name":"LREN-CHUV/docker-alembic","owner":"LREN-CHUV","description":"Docker image for Alembic database migrations","archived":false,"fork":false,"pushed_at":"2019-05-20T14:29:57.000Z","size":32,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T19:59:37.264Z","etag":null,"topics":["database-migrations","docker-image","infrastructure"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LREN-CHUV.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-15T16:25:05.000Z","updated_at":"2024-11-12T10:04:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b144ada5-f2c2-4b98-ae6e-4a797152feee","html_url":"https://github.com/LREN-CHUV/docker-alembic","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-alembic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-alembic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-alembic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LREN-CHUV%2Fdocker-alembic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LREN-CHUV","download_url":"https://codeload.github.com/LREN-CHUV/docker-alembic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253894860,"owners_count":21980414,"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":["database-migrations","docker-image","infrastructure"],"created_at":"2024-11-18T14:19:13.972Z","updated_at":"2025-05-13T07:32:00.964Z","avatar_url":"https://github.com/LREN-CHUV.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CHUV](https://img.shields.io/badge/CHUV-LREN-AF4C64.svg)](https://www.unil.ch/lren/en/home.html) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/LREN-CHUV/docker-alembic/blob/master/LICENSE) [![DockerHub](https://img.shields.io/badge/docker-hbpmip%2Falembic-008bb8.svg)](https://hub.docker.com/r/hbpmip/alembic/) [![ImageVersion](https://images.microbadger.com/badges/version/hbpmip/alembic.svg)](https://hub.docker.com/r/hbpmip/alembic/tags \"hbpmip/alembic image tags\") [![ImageLayers](https://images.microbadger.com/badges/image/hbpmip/alembic.svg)](https://microbadger.com/#/images/hbpmip/alembic \"hbpmip/alembic on microbadger\") [![Codacy Badge](https://api.codacy.com/project/badge/Grade/bc651b5107f3413594cf788333cbb415)](https://www.codacy.com/app/hbp-mip/docker-alembic?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=LREN-CHUV/docker-alembic\u0026amp;utm_campaign=Badge_Grade) [![CircleCI](https://circleci.com/gh/LREN-CHUV/docker-alembic.svg?style=svg)](https://circleci.com/gh/LREN-CHUV/docker-alembic)\n\n# Docker image for Alembic database migrations\n\nBase image to create SQL migrations using [Alembic](http://alembic.zzzcomputing.com/en/latest/).\n\n## Introduction\n\nThe goal of this project is to provide a Docker container including Alembic.\n\nTo use migrations with Alembic, you need either to mount a folder /db_migrations containing the migrations or create a child image including the migrations in its /db_migrations folder.\n\n## Usage\n\nExample:\n\n`docker run --rm -e \"DB_URL=postgresql://postgres:postgres@localhost:5432/postgres\" hbpmip/alembic:0.9.1-0 upgrade head`\n\n## Build\n\nRun: `./build.sh`\n\n## Test\n\nRun: `./tests/test.sh`\n\n## Publish on Docker Hub\n\nRun: `./publish.sh`\n\n## License\n\n### docker-alembic\n\n(This project)\n\nCopyright (C) 2017 [LREN CHUV](https://www.unil.ch/lren/en/home.html)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n### Alembic\n\nThis is the MIT license: http://www.opensource.org/licenses/mit-license.php\n\nCopyright (C) 2009-2017 by Michael Bayer.\nAlembic is a trademark of Michael Bayer.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this\nsoftware and associated documentation files (the \"Software\"), to deal in the Software\nwithout restriction, including without limitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of the Software, and to permit persons\nto whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or\nsubstantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR\nPURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE\nFOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n# Acknowledgements\n\nThis work has been funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP)\n\nThis work is part of SP8 of the Human Brain Project (SGA1).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flren-chuv%2Fdocker-alembic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flren-chuv%2Fdocker-alembic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flren-chuv%2Fdocker-alembic/lists"}