-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to ContentBox 6 and use a single Dockerfile+matrix for builds
- Loading branch information
Showing
32 changed files
with
1,012 additions
and
661 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -14,21 +14,26 @@ jobs: | |
strategy: | ||
matrix: | ||
include: | ||
- BUILD_IMAGE_DOCKERFILE : Dockerfile | ||
- BASE_IMAGE: ortussolutions/commandbox | ||
BUILD_IMAGE_TAG: latest | ||
- BUILD_IMAGE_DOCKERFILE : variants/Lucee5.Dockerfile | ||
CFENGINE: [email protected]+38 | ||
- BASE_IMAGE: ortussolutions/commandbox | ||
BUILD_IMAGE_TAG: lucee5 | ||
- BUILD_IMAGE_DOCKERFILE : variants/Adobe2016.Dockerfile | ||
BUILD_IMAGE_TAG: adobe2016 | ||
- BUILD_IMAGE_DOCKERFILE : variants/Adobe2018.Dockerfile | ||
CFENGINE: [email protected]+38 | ||
- BASE_IMAGE: ortussolutions/commandbox:adobe2018 | ||
BUILD_IMAGE_TAG: adobe2018 | ||
- BUILD_IMAGE_DOCKERFILE : variants/Adobe2021.Dockerfile | ||
CFENGINE: adobe@2018 | ||
- BASE_IMAGE: ortussolutions/commandbox:adobe2021 | ||
BUILD_IMAGE_TAG: adobe2021 | ||
|
||
CFENGINE: adobe@2021 | ||
- BASE_IMAGE: ortussolutions/commandbox:adobe2023 | ||
BUILD_IMAGE_TAG: adobe2023 | ||
CFENGINE: adobe@2023 | ||
# Alpine builds | ||
# Note: No JDK builders currently support alpine with ARM | ||
- BUILD_IMAGE_DOCKERFILE : variants/Alpine.Dockerfile | ||
- BASE_IMAGE: ortussolutions/commandbox:alpine | ||
BUILD_IMAGE_TAG: alpine | ||
CFENGINE: [email protected]+38 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -47,7 +52,7 @@ jobs: | |
env: | ||
DOCKER_IMAGE : ortussolutions/contentbox | ||
BUILD_IMAGE_TAG: ${{ matrix.BUILD_IMAGE_TAG }} | ||
IMAGE_VERSION: 5.6.1 | ||
IMAGE_VERSION: 6.0.1 | ||
run: | | ||
# Tag Builds | ||
if [[ $GITHUB_REF == refs/tags/* ]]; then | ||
|
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,6 +1,7 @@ | ||
# Seed it on a specific CommandBox Image Version | ||
# https://hub.docker.com/r/ortussolutions/commandbox/tags | ||
FROM ortussolutions/commandbox | ||
ARG BASE_IMAGE=ortussolutions/commandbox | ||
FROM ${BASE_IMAGE} | ||
|
||
# Labels | ||
LABEL version="@version@" | ||
|
@@ -9,8 +10,9 @@ LABEL maintainer "Luis Majano <[email protected]>" | |
LABEL repository "https://github.com/Ortus-Solutions/docker-contentbox" | ||
|
||
# Incoming Secrets/Vars From Build Process | ||
ARG IMAGE_VERSION=5.6.0 | ||
ARG IMAGE_VERSION=6.0.1 | ||
ARG TAGS=ortussolutions/contentbox:test | ||
ARG [email protected]+38 | ||
|
||
# Copy over our app resources which brings lots of goodness like session distribution, | ||
# db env vars, caching, etc. | ||
|
@@ -28,8 +30,11 @@ RUN ${BUILD_DIR}/contentbox/contentbox-setup.sh | |
# ContentBox Run | ||
CMD ${BUILD_DIR}/contentbox/contentbox-run.sh | ||
|
||
# WARM UP THE SERVER | ||
RUN ${BUILD_DIR}/util/warmup-server.sh | ||
|
||
# Healthcheck environment variables | ||
ENV HEALTHCHECK_URI "http://127.0.0.1:${PORT}/index.cfm" | ||
|
||
# Our healthcheck interval doesn't allow dynamic intervals - Default is 20s intervals with 15 retries | ||
HEALTHCHECK --interval=30s --timeout=30s --retries=2 --start-period=60s CMD curl --fail ${HEALTHCHECK_URI} || exit 1 | ||
HEALTHCHECK --interval=30s --timeout=30s --retries=2 --start-period=60s CMD curl --fail ${HEALTHCHECK_URI} || exit 1 |
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 |
---|---|---|
|
@@ -30,7 +30,27 @@ rm -f ${APP_DIR}/server.json | |
|
||
# Copy over our resources | ||
echo ">INFO: Copying over ContentBox Container Overrides" | ||
cp -rvf ${BUILD_DIR}/contentbox-app/* ${APP_DIR} | ||
cp -rvf ${BUILD_DIR}/contentbox-app/config/* ${APP_DIR}/config/ | ||
cp -vf ${BUILD_DIR}/contentbox-app/Application.cfc ${APP_DIR}/Application.cfc | ||
|
||
SERVER_FILE=${BUILD_DIR}/contentbox-app/engines/[email protected] | ||
|
||
case $CFENGINE in | ||
|
||
adobe@2018) | ||
SERVER_FILE=${BUILD_DIR}/contentbox-app/engines/[email protected] | ||
;; | ||
|
||
adobe@2021) | ||
SERVER_FILE=${BUILD_DIR}/contentbox-app/engines/[email protected] | ||
;; | ||
|
||
adobe@2023) | ||
SERVER_FILE=${BUILD_DIR}/contentbox-app/engines/[email protected] | ||
;; | ||
esac | ||
|
||
cp -vf $SERVER_FILE ${APP_DIR}/server.json | ||
|
||
# Debug the App Dir | ||
#echo "Final App Dir" | ||
|
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!--- | ||
******************************************************************************** | ||
ContentBox - A Modular Content Platform | ||
Copyright 2012 by Luis Majano and Ortus Solutions, Corp | ||
www.ortussolutions.com | ||
******************************************************************************** | ||
Apache License, Version 2.0 | ||
Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
******************************************************************************** ---> | ||
<cfabort> |
Oops, something went wrong.