So I got asked about this topic after my DevConf 2016 talk: there is a solution available on internets which describes how one can use two dockerfiles to build an image. Whole article can be found here.
What I didn’t like about the solution …
After my yesterday talk at DevConf 2016 I got asked about some tips and tricks how to write Dockerfiles. I know we have plenty of resources for that in Red Hat, Fedora and Project Atomic. So, here we go!
It’s really simple to copy your private GPG keys to another machine of yours.
Let’s do public key first:
$ gpg --export --armor KEY | ssh me@my-other-machine 'gpg --import' gpg: keyring `/home/me/.gnupg/secring.gpg' created gpg: keyring …
It’s not that hard, here are a couple pain points:
make sure that GOPATH is right — you want to compile against your checked out docker, not master docker
Update (October 13th): The encoding mismatch is made on purpose as described in this issue. The current work is present in this repo.
So I needed to get a digest of a manifest. Manifest is a text file in JSON format which contains metadata …