Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
samourai-dojo
samourai-dojo
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Dojo
  • samourai-dojosamourai-dojo
  • Merge Requests
  • !122

Open
Opened Mar 02, 2020 by kenshin-samourai@kenshin-samouraiMaintainer
  • Report abuse
Report abuse

Add CircleCI Automated Docker image builds

  • Overview 0
  • Commits 1
  • Changes 3

Created by: Kukks

This PR adds CircleCI integration so that you auto build and publish all your docker containers to Docker Hub. To get set up you need to:

  • Create account with Docker hub
  • Create account with Circle CI
  • Enable project in CircleCI
  • Configure project in Circle CI with the following environment variables:
    • DOCKERHUB_REPO - the docker hub repo, usually your username (e.g kukks/btcpayserver)
    • DOCKERHUB_USER - the user to login with
    • DOCKERHUB_PASS - password to login with

When will this build?

  • On new commits to develop, images are built with a -dev suffix
  • On new commits to master, images are built with a -latest suffix
  • On new tags with the format vx.x..n, images are built with a -x.x..n suffix (e.g v0.0.1.1.1 = 0.0.1.1.1, v0.0.1.1-rc1 = 0.0.1.1-rc1)

What images are built? AMD64, ARM32 and ARM64 images, for nodejs, db, nginx and tor. I had to modify the nginx dockerfile so that the dojo conf files would be optional at build time (I recommend you switch to volume mapping the file in place to not require to build the image each time the config changes anyway). The foo file is only there to trigger optional copying of the conf if they are found (based on this) and is removed immediately after.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: dojo/samourai-dojo!122
Source branch: github/fork/Kukks/dojo-circleci