A collection of docker images used by Haidra-Org. Projects which rely on the images found in this repo for either production deployments or CI/CD:
To add additional Docker Bake definitions to this repository, follow these steps:
-
Copy Existing Definition
- Locate a
docker-bake.hclfile in the repository (such as found inai-horde/postgres/) - Make a copy of this file
- Locate a
-
Modify Variables
- Update the appropriate
variableblocks at the top of the file to reflect the new project or service. This includes:REPO_OWNER: The GitHub username or organization name owning the repository.INTENDED_PROJECT: The name of the project for which the Docker image is being built.- Important: This should be the same as the name of the second-level folder
- For example,
ai-hordefor AI-Horde related images
IMAGE_PURPOSE: A brief description of what the Docker image is intended for.- Important: This should be the same as the name of the third-level folder
- For example
postgres(as inai-horde/postgres/)
IMAGE_NAME: The name of the Docker image as published.
- Update the
targetto match theIMAGE_NAME - If you need to support multiple images, you should visit the official docker bake file reference..
- Update the appropriate
-
Adjust Labels
- Modify the
labelswithin thetargetblock to reflect the new image's metadata if needed. If you follow the guide above, this is optional.
- Modify the
-
Save and Test
- Save your changes to the
docker-bake.hclfile. - Test your new Docker Bake definition by running
docker buildx bake --file ./path/to/docker-bake.hcl - If all is well, open a pull request for the changes to be reviewed and accepted.
- Save your changes to the
Remember, each target block defines a buildable Docker image. You can have multiple target blocks in a single docker-bake.hcl file to manage multiple images within the same project if needed. This may be required for different supported versions of certain software (such as versions of python) or for multiple architectures.