What are the steps to build a new docker container? #491
-
Hi All, I'm just trying to bake my own docker image locally of the ui and server together (binary). Unable to do so and tried multiple different ways. Do you have some steps? How would your CICD process build the docker image E2E from a cold start. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jamesnos I just made some changes to how Flipt is built/bootstrapped, but to answer your question you should be able to build your own image two different ways. Build an image as close to the official Flipt image as possiblemac os/homebrew required This is how I build and release the Flipt docker image, using a combo of musl-cross and goreleaser Basically the process is:
To do this you'll need (assuming you are on a mac): Once those are installed, you should just need to run This should output the name of the snapshot image at the end, then you can just run it just like the docs say but with your image name instead. Build an image based on the dev Docker fileThis way will not give you the exact same result as the step above (ie it will be a larger image than the release version), but will work if you just want to explore/run Flipt but want to build and run it within Docker.
I hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @jamesnos
I just made some changes to how Flipt is built/bootstrapped, but to answer your question you should be able to build your own image two different ways.
Build an image as close to the official Flipt image as possible
mac os/homebrew required
This is how I build and release the Flipt docker image, using a combo of musl-cross and goreleaser
Basically the process is: