Last active
November 16, 2018 01:47
-
-
Save ll911/4b8033f51703e9b50deca0d9fcdbeaea to your computer and use it in GitHub Desktop.
bcdc-atomic-base.yaml
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
apiVersion: image.openshift.io/v1 | |
kind: ImageStream | |
metadata: | |
name: bcdc-atomic-base | |
spec: | |
lookupPolicy: | |
local: false | |
tags: | |
- annotations: null | |
from: | |
kind: DockerImage | |
name: docker-registry.default.svc:5000/dbc-bcdc-tools/bcdc-atomic-base | |
generation: null | |
importPolicy: {} | |
name: latest | |
referencePolicy: | |
type: "" | |
status: | |
dockerImageRepository: "" | |
--- | |
apiVersion: build.openshift.io/v1 | |
kind: BuildConfig | |
metadata: | |
labels: | |
app: bcdc-atomic-base | |
name: bcdc-atomic-base | |
spec: | |
failedBuildsHistoryLimit: 5 | |
output: | |
to: | |
kind: ImageStreamTag | |
name: bcdc-atomic-base:latest | |
source: | |
dockerfile: |- | |
FROM docker-registry.default.svc:5000/dbc-bcdc-tools/ckan-atomic-base | |
ENV APP_DIR=/app \ | |
SRC_DIR=/app/src \ | |
PIP_SRC=${SRC_DIR} \ | |
BCDC_hierarchy_GIT_URL='https://github.com/bcgov/ckanext-hierarchy.git' \ | |
BCDC_hierarchy_BRANCH=master \ | |
BCDC_OASV_GIT_URL='https://github.com/bcgov/ckanext-openapiviewer.git' \ | |
BCDC_OASV_BRANCH=master \ | |
BCDC_GAS_GIT_URL='https://github.com/bcgov/ckanext-googleanalytics.git' \ | |
BCDC_GAS_BRANCH=master \ | |
BCDC_GAR_GIT_URL='https://github.com/bcgov/ckanext-ga-report.git' \ | |
BCDC_GAR_BRANCH=master \ | |
CKAN_APIH_GIT_URL='https://github.com/ckan/ckanext-apihelper.git' \ | |
CKAN_APIH_BRANCH=master \ | |
EXREA_PY_MODULE='genshi beakeredis gevent uwsgi' | |
WORKDIR ${APP_DIR} | |
RUN pip install --no-cache-dir -e git+${BCDCGIT_URL}@${BCDCGIT_BRANCH}#egg=ckanext-bcgov && \ | |
pip install --no-cache-dir -e git+${BCDC_hierarchy_GIT_URL}@${BCDC_hierarchy_GIT_BRANCH}#egg=ckanext-hierarchy && \ | |
pip install --no-cache-dir -e git+${BCDC_OASV_GIT_URL}@${BCDC_OASV_GIT_BRANCH}#egg=ckanext-openapiviewer && \ | |
pip install --no-cache-dir -e git+${BCDC_GAS_GIT_URL}@${BCDC_GAS_BRANCH}#egg=ckanext-googleanalytics && \ | |
pip install --no-cache-dir -e git+${BCDC_GAR_GIT_URL}@${BCDC_GAR_GIT_BRANCH}#egg=ckanext-ga-report && \ | |
pip install --no-cache-dir -e git+${CKAN_APIH_GIT_URL}@${CKAN_APIH_BRANCH}#egg=ckanext-apihelper && \ | |
pip install --no-cache-dir -e git+https://${gToken}@gogs.data.gov.bc.ca/bcdc/ckanext-edc-idir@master#egg=ckanext-edc-idir && \ | |
pip install --no-cache-dir -e git+https://${gToken}@gogs.data.gov.bc.ca/bcdc/ckanext-edc-rss@master#egg=ckanext-edc-rss && \ | |
pip install --no-cache-dir ${EXTRA_CKAN_EXT} && \ | |
pip install --no-cache-dir ${EXREA_PY_MODULE} && \ | |
chmod -R 777 ${SRC_DIR}/cka* | |
type: Dockerfile | |
strategy: | |
dockerStrategy: | |
env: | |
- name: BCDCGIT_URL | |
value: 'https://github.com/bcgov/ckanext-bcgov.git' | |
- name: BCDCGIT_BRANCH | |
value: dev | |
- name: gToken | |
valueFrom: | |
secretKeyRef: | |
key: g.token | |
name: gogs-token | |
- name: CKAN_STORAGE_PATH | |
value: /var/lib/ckan | |
- name: CKAN_SITE_URL | |
value: 'https://cadi.data.gov.bc.ca' | |
- name: EXTRA_CKAN_EXT | |
value: ckanext-pdfview ckanext-geoview | |
- name: CKAN_INI | |
value: /conf/ckan.ini | |
from: | |
kind: DockerImage | |
name: docker-registry.default.svc:5000/dbc-bcdc-tools/ckan-atomic-base | |
type: Docker | |
successfulBuildsHistoryLimit: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment