Add registry-watcher image and separate docker-compose services
Creates a separate image for the registry-watcher, setup to run the correct command. Reconfigures the docker-compose setup to use the web-server image and this new registry-watcher image as intended to be used in the new production infrastructure, along with a new build-server image that is close to what will be used in the new production infrastructure, replicated twice.
Probably needs some infra input on the deploy changes (what exactly the tags they use will be). Also I want to investigate the crates.io-index initialization a little more and make sure that's working (and probably have it be local to each container instead of shared as it is now).
Thank you for working on this @Nemo157 !
Sorry for already adding a review in the draft-stage, but I thought some feedback would already help :)
I have removed the CI changes pushing the new image to production, since that will require some input from infra and can be done later.
short test result:
- trying to run the registry watcher gives me
/usr/bin/tini: invalid option -- '-'
Fixed that, I was normalizing the COMMANDs and thought that the -- wasn't actually needed with tini. I've normalized them the other way and split the ENTRYPOINT and COMMAND so that it's possible to run other cratesfyi commands under any image.
Fixed that, I was normalizing the
COMMANDs and thought that the--wasn't actually needed withtini. I've normalized them the other way and split theENTRYPOINTandCOMMANDso that it's possible to run othercratesfyicommands under any image.
I'm still seeing the same error when trying to run the registry watcher container?
I'm still seeing the same error when trying to run the registry watcher container?
Coming back to this finally, are you using --build with the docker compose up call? It doesn't have any kind of change detection and requires you to tell it to rebuild. I've added that to the comment about how to run it.