-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into automate-build-push
- Loading branch information
Showing
23 changed files
with
45 additions
and
170 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ckan/ckan-base:2.10.4 | ||
FROM ckan/ckan-base:2.10.5 | ||
|
||
|
||
ENV APP_DIR=/srv/app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
.PHONY: all help build build-all push | ||
SHELL := /bin/bash | ||
# TODO: switch to tag upon release | ||
CKAN_VERSION=dev-v2.11 | ||
CKAN_VERSION=2.11.0 | ||
PYTHON_VERSION=3.10 | ||
# TODO: major minor version | ||
TAG_NAME="ckan/ckan-base:2.11" | ||
PYTHON_TAG_NAME="ckan/ckan-base:2.11-py$(PYTHON_VERSION)" | ||
CKAN_VERSION_MAJOR=$(shell echo $(CKAN_VERSION) | cut -d'.' -f1) | ||
CKAN_VERSION_MINOR=$(shell echo $(CKAN_VERSION) | cut -d'.' -f2) | ||
TAG_NAME="ckan/ckan-base:$(CKAN_VERSION)" | ||
ALT_TAG_NAME="ckan/ckan-base:$(CKAN_VERSION_MAJOR).$(CKAN_VERSION_MINOR)" | ||
PYTHON_TAG_NAME="ckan/ckan-base:$(CKAN_VERSION)-py$(PYTHON_VERSION)" | ||
PYTHON_ALT_TAG_NAME="ckan/ckan-base:$(CKAN_VERSION_MAJOR).$(CKAN_VERSION_MINOR)-py$(PYTHON_VERSION)" | ||
|
||
all: help | ||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
build: ## Build a CKAN 2.11 image , `make build` | ||
echo "Building $(TAG_NAME) images" | ||
docker build --build-arg="CKAN_VERSION=$(CKAN_VERSION)" -t $(TAG_NAME) -t $(PYTHON_TAG_NAME) . | ||
echo "Building $(TAG_NAME) and $(ALT_TAG_NAME) and $(PYTHON_TAG_NAME) images" | ||
docker build --build-arg="CKAN_VERSION=ckan-$(CKAN_VERSION)" -t $(TAG_NAME) -t $(ALT_TAG_NAME) -t $(PYTHON_TAG_NAME) -t $(PYTHON_ALT_TAG_NAME) . | ||
|
||
push: ## Push a CKAN 2.11 image to the DockerHub registry, `make push` | ||
echo "Pushing $(TAG_NAME) image" | ||
docker push $(TAG_NAME) | ||
echo "Pushing $(ALT_TAG_NAME) image" | ||
docker push $(ALT_TAG_NAME) | ||
echo "Pushing $(PYTHON_TAG_NAME) image" | ||
docker push $(PYTHON_TAG_NAME) | ||
echo "Pushing $(PYTHON_ALT_TAG_NAME) image" | ||
docker push $(PYTHON_ALT_TAG_NAME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
.PHONY: all help build build-all push | ||
SHELL := /bin/bash | ||
# TODO: switch to tag upon release | ||
CKAN_VERSION=dev-v2.11 | ||
CKAN_VERSION=2.11.0 | ||
PYTHON_VERSION=3.10 | ||
# TODO: major minor version | ||
TAG_NAME="ckan/ckan-dev:2.11" | ||
PYTHON_TAG_NAME="ckan/ckan-dev:2.11-py$(PYTHON_VERSION)" | ||
CKAN_VERSION_MAJOR=$(shell echo $(CKAN_VERSION) | cut -d'.' -f1) | ||
CKAN_VERSION_MINOR=$(shell echo $(CKAN_VERSION) | cut -d'.' -f2) | ||
TAG_NAME="ckan/ckan-dev:$(CKAN_VERSION)" | ||
ALT_TAG_NAME="ckan/ckan-dev:$(CKAN_VERSION_MAJOR).$(CKAN_VERSION_MINOR)" | ||
PYTHON_TAG_NAME="ckan/ckan-dev:$(CKAN_VERSION)-py$(PYTHON_VERSION)" | ||
PYTHON_ALT_TAG_NAME="ckan/ckan-dev:$(CKAN_VERSION_MAJOR).$(CKAN_VERSION_MINOR)-py$(PYTHON_VERSION)" | ||
|
||
all: help | ||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
build: ## Build a CKAN 2.11 dev image , `make build` | ||
echo "Building $(TAG_NAME) images" | ||
docker build --build-arg="CKAN_VERSION=$(CKAN_VERSION)" -t $(TAG_NAME) -t $(PYTHON_TAG_NAME) . | ||
docker build --build-arg="CKAN_VERSION=ckan-$(CKAN_VERSION)" -t $(TAG_NAME) -t $(ALT_TAG_NAME) -t $(PYTHON_TAG_NAME) -t $(PYTHON_ALT_TAG_NAME) . | ||
|
||
push: ## Push a CKAN 2.11 dev image to the DockerHub registry, `make push` | ||
echo "Pushing $(TAG_NAME) image" | ||
docker push $(TAG_NAME) | ||
echo "Pushing $(ALT_TAG_NAME) image" | ||
docker push $(ALT_TAG_NAME) | ||
echo "Pushing $(PYTHON_TAG_NAME) image" | ||
docker push $(PYTHON_TAG_NAME) | ||
echo "Pushing $(PYTHON_ALT_TAG_NAME) image" | ||
docker push $(PYTHON_ALT_TAG_NAME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.