Skip to content

Instantly share code, notes, and snippets.

@ll911
Last active November 8, 2018 18:20
Show Gist options
  • Save ll911/7a9a2cc408b148ba49706b86238f0cd0 to your computer and use it in GitHub Desktop.
Save ll911/7a9a2cc408b148ba49706b86238f0cd0 to your computer and use it in GitHub Desktop.
datapusher-atomic-base.yaml
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: datapusher-atomic-base
spec:
lookupPolicy:
local: false
tags:
- annotations: null
from:
kind: DockerImage
name: docker-registry.default.svc:5000/dbc-bcdc-dev/datapusher-atomic-base
generation: null
importPolicy: {}
name: latest
referencePolicy:
type: ""
status:
dockerImageRepository: ""
---
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
app: datapusher-atomic-base
name: datapusher-atomic-base
spec:
failedBuildsHistoryLimit: 5
output:
to:
kind: ImageStreamTag
name: datapusher-atomic-base:latest
source:
dockerfile: |-
FROM docker-registry.default.svc:5000/dbc-bcdc-tools/atomic-python-core
ENV APP_DIR=/app \
SRC_DIR=/app/src \
CKAN_INI=${APP_DIR}/conf/production.ini \
PIP_SRC=${SRC_DIR} \
DP_GIT_URL='https://github.com/ckan/datapusher' \
DP_GIT_BRANCH='master' \
EXREA_PY_MODULE='gunicorn gevent'
WORKDIR ${APP_DIR}
RUN pip install -e git+${DP_GIT_URL}@${DP_GIT_BRANCH}#egg=datapusher && \
cd ${SRC_DIR}/datapusher && \
pip install --no-binary :all: -r requirements.txt && \
pip install --no-cache-dir ${EXREA_PY_MODULE}
type: Dockerfile
strategy:
dockerStrategy:
from:
kind: DockerImage
name: docker-registry.default.svc:5000/dbc-bcdc-tools/atomic-python-core
type: Docker
successfulBuildsHistoryLimit: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment