Semaphore/deployment/docker
Denis Gukov 9e6439b20f
Some checks failed
Dev / build-local (push) Has been cancelled
Dev / migrate-boltdb (push) Has been cancelled
Dev / migrate-mysql (push) Has been cancelled
Dev / migrate-mariadb (push) Has been cancelled
Dev / migrate-postgres (push) Has been cancelled
Dev / integrate-boltdb (push) Has been cancelled
Dev / integrate-mysql (push) Has been cancelled
Dev / integrate-mariadb (push) Has been cancelled
Dev / integrate-postgres (push) Has been cancelled
Dev / deploy-server (push) Has been cancelled
Dev / deploy-runner (push) Has been cancelled
Merge pull request #2599 from lug-gh/terraform-1.10.0
upgrade to terraform 1.10.0
2024-11-28 20:47:31 +05:00
..
debug upgrade to ansible 11.0.0 2024-11-28 13:35:31 +01:00
dredd chore(deps): update apiaryio/dredd docker tag to v13.1.2 2024-10-21 08:42:12 +00:00
runner Merge pull request #2599 from lug-gh/terraform-1.10.0 2024-11-28 20:47:31 +05:00
server Merge pull request #2599 from lug-gh/terraform-1.10.0 2024-11-28 20:47:31 +05:00
README.md docs: change website domain 2024-06-21 20:17:48 +05:00

Docker

Generally we are building production-grade images for each tag, latest and even for the development branch which will be pushed to DockerHub. If you still need to build your own image you can easily do that, you just need install Docker and Task on your system.

If you just want to use our pre-built images please follow the instructions on our documentation.

If you want to use docker-compose to start Semaphore you could also read about it on our documentation or take a look at our collection of snippets within this repository.

Build

We have prepared multiple tasks to build an publish container images, including tasks to verify the image contains all required tools:

task docker:build
task docker:push

If you want to customize the image names or if you want to use Podman instead of Docker you are able to provide some set of environment variables to the Task command:

  • DOCKER_ORG: Define a custom organization for the image, defaults to semaphoreui
  • DOCKER_SERVER: Define a different name for the server image, defaults to semaphore
  • DOCKER_RUNNER: Define a different name for the runner image, defaults to runner
  • DOCKER_CMD: Use another command to build the image, defaults to docker

Test

We defined tasks to handle some linting and to verify the images contain the tools and binaries that are required to run Semaphore. Here we are using Hadolint to ensure we are mostly following best-practices and Goss which is using a configuration file to define the requirements.

To install the required tools you also need to install Golang on your system, the installation of Golang is not covered by us.

The installation of the dependencies can be customized by providing environment variables for INSTALL_PATH (/usr/local/bin) and REQUIRE_SUDO (true).

task docker:test