bgp / stayrtr

RPKI-To-Router server implementation in Go
BSD 3-Clause "New" or "Revised" License
91 stars 13 forks source link

Reduce number of docker files #25

Closed job closed 2 years ago

job commented 2 years ago

Attempt to reduce clutter!

job commented 2 years ago

I deleted the debug docker recipes and moved the .prod files into their place

lspgn commented 2 years ago

go get is being deprecated https://golang.org/doc/go-get-install-deprecation

Can use go install instead (but not great when working on a local directory that is not upstream).

My suggestion: it should be possible to have one multi staged Dockerfile: first stage builds all the binaries and each stage COPY the each binary in their own container. To build the wanted container: docker build --target rtrmon

job commented 2 years ago

@lspgn you wanna take a stab at a multistaged docker file? :)

lspgn commented 2 years ago

Can do over the weekend ;-)