A local testing stack using Gitea, MySQL and Renovate.
The docker-compose.yaml and the Makefile can be used to test versions of Renovate.
For this use-case, Platform One's Iron Bank Container Hardening Team wanted to test
upstream opensource renovate against Iron Bank's renovate image which contains an additional
module. You can mix and match as needed.
The renovate service in docker-compose.yaml isn't necessary, but we added it for learnings.
You could simply stand up gitea and mysql, then use make run to execute renovate.
- Config:
cp config.js.default config.js - Start:
make up - Go to Gitea at http://localhost:3000 (first registered user becomes the admin)
- Setup your user account and create a personal access token
- Change your username, email and the token in
config.js - Change RENOVATE_TOKEN and RENOVATE_GIT_AUTHOR in the
Makefile - Restart:
make restartto reload the config values - Create a repo and check in your code
- Run:
make runif you don't want to wait for renovate or want to use a different version
If you change the directory name after cloning, then you must also change the --network in the
Makefile's make run command to whatever docker-compose creates. You can list your available networks
using docker network ls. This connects your standalone container with the docker-compose created network so renovate can talk to gitea.
Also, registry1 requires authentication before you can pull images:
- Setup your account here: https://login.dso.mil
- Create your CLI secret in harbor: https://registry1.dso.mil/harbor
- Login:
docker login registry1.dso.miland provide your username and harbor cli secret