-
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.
Merge pull request #275 from qld-gov-au/QOL-9055-amazon-linux-2
QOL-9055 Prepare for Python 3 and Amazon Linux 2
- Loading branch information
Showing
33 changed files
with
202 additions
and
305 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
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 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.
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,42 @@ | ||
FROM openknowledge/ckan-dev:{CKAN_VERSION} | ||
|
||
ARG SITE_URL=http://ckan:5000/ | ||
ENV DEPLOY_ENV={DEPLOY_ENV} | ||
ENV VARS_TYPE={VARS_TYPE} | ||
ENV PYTHON_VERSION={PYTHON_VERSION} | ||
ENV CKAN_SITE_URL="${SITE_URL}" | ||
ENV PYTHON={PYTHON} | ||
|
||
WORKDIR "${APP_DIR}" | ||
|
||
ENV DOCKERIZE_VERSION v0.6.1 | ||
RUN apk add --no-cache build-base \ | ||
&& curl -sL https://github.com/jwilder/dockerize/releases/download/${DOCKERIZE_VERSION}/dockerize-alpine-linux-amd64-${DOCKERIZE_VERSION}.tar.gz \ | ||
| tar -C /usr/local/bin -xzvf - | ||
|
||
# Install CKAN. | ||
|
||
RUN cd $SRC_DIR/ckan \ | ||
&& git remote set-url origin 'https://github.com/qld-gov-au/ckan.git' \ | ||
&& git fetch --tags origin {QGOV_CKAN_VERSION}\ | ||
&& git reset --hard && git clean -f \ | ||
&& git checkout '{QGOV_CKAN_VERSION}' | ||
|
||
COPY .docker/test-$VARS_TYPE.ini $CKAN_INI | ||
|
||
RUN sed -i "s@SITE_URL@${CKAN_SITE_URL}@g" $CKAN_INI | ||
|
||
COPY . ${APP_DIR}/ | ||
|
||
COPY .docker/scripts ${APP_DIR}/scripts | ||
|
||
COPY .docker/scripts/ckan_cli /usr/bin/ | ||
|
||
COPY vars/shared-{VARS_TYPE}.var.yml $APP_DIR/scripts/extensions.yml | ||
|
||
RUN chmod +x ${APP_DIR}/scripts/*.sh /usr/bin/ckan_cli | ||
|
||
# Init current extension. | ||
RUN ${APP_DIR}/scripts/init-ext.sh | ||
|
||
CMD ["/srv/app/scripts/serve.sh"] |
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,3 @@ | ||
if [ "$VENV_DIR" != "" ]; then | ||
. ${VENV_DIR}/bin/activate | ||
fi |
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
Oops, something went wrong.