Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Docker image #56

Open
muhlemmer opened this issue May 21, 2022 · 4 comments
Open

Feature: Docker image #56

muhlemmer opened this issue May 21, 2022 · 4 comments

Comments

@muhlemmer
Copy link
Contributor

For my projects I'm usually building a Docker image with the migration scripts included. Now I'm building images from scratch in various projects, but in order to safe some CI minutes I'm looking to build a single "tern" base image for all of my projects.

If you are interested in a Docker image for this repository, I can commit a Dockerfile here and (help) setup a CI environment. This can be either Github actions, or directly building it on Docker hub.

@jackc
Copy link
Owner

jackc commented May 23, 2022

I can see how that could be useful. Unfortunately, I have only minimal experience with Docker and that was several years ago. I'm very reluctant to merge a feature that I am unable to easily understand and maintain.

This was referenced Oct 11, 2022
@elee1766
Copy link

elee1766 commented Jul 1, 2023

hi, we needed this since we want to use tern to apply migrations in our k8s init containers.

we did it here https://gitlab.com/gfx-devops/tern
you can pull it here registry.gitlab.com/gfx-devops/tern:v2.1.1

you can use it with docker run as well, ala docker run -v .:/root registry.gitlab.com/gfx-devops/tern:v2.1.1 print-connstring

it is a simple image that pulls the release from the github release.

i'll be manually creating new tags for now, probably will set up something automated in the future.

@muhlemmer let me know if you would like me to create base images on something that isn't x86 alpine (it is trival). otherwise you can just use the image as a layer and copy /usr/local/bin/tern

@robsonpeixoto
Copy link

@jackc, GoReleaser has Docker Images to build docker image. Do you accept PR?

@jackc
Copy link
Owner

jackc commented May 29, 2024

@robsonpeixoto I don't have anything against it. But as I mentioned above, I work with Docker very infrequently, so I couldn't really maintain it. But if it's just some GoReleaser config then sure.

@odyfey odyfey mentioned this issue Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants