Gladys developer: How to build a test Docker image?

Hi everyone :slight_smile:

A short tutorial for Gladys developers explaining how to build a test Docker image.

Prerequisites:

Have a Docker Hub account

Step 1: Create these environment variables in GitHub Actions

Go to your Gladys fork, in the « Settings » of your repo:

Create these secrets:

DOCKERHUB_PASSWORD (Peut-être un mot de passe clé d'API)
DOCKERHUB_REPO (L'image Docker a pousser, exemple: `pierregilles/gladys-test` )
DOCKERHUB_USER (ton nom d'utilisateur sur DockerHub)

Step 2: Go to the « Actions » tab => « Build Gladys dev images »

Step 3: Start a build

Click « Run Workflow » and select the branch to build, the architecture to build, and the Docker tag that will be used!

The build takes about 4 hours if you select all platforms; if you want to save time, you can remove arm/v7 which is quite slow :slight_smile:

Step 4 : :partying_face:

That’s it, you can share the built Docker image which is available on the Docker image:

your_username/gladys:your_tag
7 Likes