A place to store base ckan docker images for Lagoon projects
Store docker images in Github Container Registry https://github.com/orgs/salsadigitalauorg/packages?repo_name=ckan-lagoon-docker
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic
export CR_PAT=YOUR_TOKEN
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
> Login Succeeded
# CKAN Tags: https://github.com/ckan/ckan/tags
CKAN_2_10_VERSION="2.10.4"
CKAN_2_9_VERSION="2.9.11"
# Lagoon Image Tags: https://github.com/uselagoon/lagoon-images/tags
LAGOON_VERSION="24.2.0"
source .env.bake && docker build --pull --rm -f "Images/CKAN/2.10/Dockerfile.ckan" -t ghcr.io/salsadigitalauorg/ckan-2.10:$CKAN_2_10_VERSION "Images/CKAN/2.10" --build-arg CKAN_VERSION="$CKAN_2_10_VERSION" --build-arg LAGOON_VERSION="$LAGOON_VERSION"
docker buildx create --name ckan-2.10 --platform linux/amd64,linux/arm64 (Just the first time to create builder)
docker buildx bake -f ckan-2.10-bake.hcl -f .env.bake --builder ckan-2.10 --push
source .env.bake && docker build --pull --rm -f "Images/CKAN/2.9/Dockerfile.ckan" -t ghcr.io/salsadigitalauorg/ckan-2.9:$CKAN_2_9_VERSION "Images/CKAN/2.9" --build-arg CKAN_VERSION="$CKAN_2_9_VERSION" --build-arg LAGOON_VERSION="$LAGOON_VERSION"
docker buildx create --name ckan-2.9 --platform linux/amd64,linux/arm64 (Just the first time to create builder)
docker buildx bake -f ckan-2.9-bake.hcl -f .env.bake --builder ckan-2.9 --push
docker buildx create --name ckan-2.8 --platform linux/amd64,linux/arm64 (Just the first time to create builder)
docker buildx bake -f ckan-2.8-bake.hcl --builder ckan-2.8 --push
source .env.bake && docker build --pull --rm -f "Images/Solr/8/Dockerfile.solr.ckan-2.9" -t "ghcr.io/salsadigitalauorg/ckan-solr-8:$CKAN_2_9_VERSION" "Images/Solr" --build-arg CKAN_VERSION="$CKAN_2_9_VERSION" --build-arg LAGOON_VERSION="$LAGOON_VERSION"
source .env.bake && docker build --pull --rm -f "Images/Solr/8/Dockerfile.solr.ckan-2.10" -t "ghcr.io/salsadigitalauorg/ckan-solr-8:$CKAN_2_10_VERSION" "Images/Solr" --build-arg CKAN_VERSION="$CKAN_2_10_VERSION" --build-arg LAGOON_VERSION="$LAGOON_VERSION"
docker buildx create --name solr-8 --platform linux/amd64,linux/arm64 (Just the first time to create builder)
docker buildx bake -f solr-8-bake.hcl -f .env.bake --builder solr-8 --push
docker buildx create --name solr-2.8 --platform linux/amd64,linux/arm64 (Just the first time to create builder)
docker buildx bake -f solr-6-bake.hcl --builder solr-2.8 --push
docker buildx create --name postgis --platform linux/amd64,linux/arm64 (Just the first time to create builder)
docker buildx bake -f postgis-bake.hcl --builder postgis --push