Skip to content

Dockerfile for installing Jenkins (Blueocean) to Heroku dyno using Docker container

Notifications You must be signed in to change notification settings

ziqul/jenkins-docker-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Jenkins Docker Heroku

Description

Dockerfile for installing Jenkins (Blueocean) to Heroku dyno using Docker container.

Prerequisites

  1. If you do not have Heroku account:
  2. Software requirements:

Usage

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.

  1. 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
  2. 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
  3. Build Docker image:
    docker build -t registry.heroku.com/salty-fortress-4191/web .
  4. Push Docker image to Heroku:
    docker push registry.heroku.com/salty-fortress-4191/web
  5. Release dyno in Heroku:
    heroku container:release web -a salty-fortress-4191
  6. Now you can access your app from your browser in Heroku dashboard (you can access log files from created instance there too).

About

Dockerfile for installing Jenkins (Blueocean) to Heroku dyno using Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published