Dockerfile for installing Jenkins (Blueocean) to Heroku dyno using Docker container.
- If you do not have Heroku account:
- Sign up to Heroku
- Software requirements:
This guide is written in assumption that you do not have Heroku application set up yet. You need to meet prerequisites before starting this section. It is recomended to read Installing Jenkins and Container Registry & Runtime (Docker Deploys) guides before starting this section.
- Create a Heroku app
- Open console in your app's directory
- Create a Heroku app.
salty-fortress-4191
is name of application in this example (you will have different one):> heroku create Creating salty-fortress-4191... done, stack is cedar-14 https://salty-fortress-4191.herokuapp.com/ | https://git.heroku.com/salty-fortress-4191.git
- Log into Container Registry
- Log into Heroku Container Registry:
heroku container:login
- Generate Heroku Auth Token.
9b4519c4-0f1b-4def-8a34-6e7287a6d04d
is auth tocken in this example (you will have different one):> heroku auth:token 9b4519c4-0f1b-4def-8a34-6e7287a6d04d
- Log into Heroku Container Registry using Docker:
docker login --username=_ --password=9b4519c4-0f1b-4def-8a34-6e7287a6d04d registry.heroku.com
- Log into Heroku Container Registry:
- Build Docker image:
docker build -t registry.heroku.com/salty-fortress-4191/web .
- Push Docker image to Heroku:
docker push registry.heroku.com/salty-fortress-4191/web
- Release dyno in Heroku:
heroku container:release web -a salty-fortress-4191
- Now you can access your app from your browser in Heroku dashboard (you can access log files from created instance there too).