Add a fedmsg consumer for release-monitoring.org

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
Jeremy Cline 2018-01-18 12:49:48 -05:00
parent 3a78f3deeb
commit 12a1603323
3 changed files with 104 additions and 0 deletions

View file

@ -49,5 +49,50 @@ items:
to:
kind: ImageStreamTag
name: release-monitoring-web:latest
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
build: fedmsg-hub-build
name: fedmsg-hub-build
spec:
runPolicy: Serial
source:
dockerfile: |-
FROM fedora:27
LABEL \
name="fedmsg-hub" \
vendor="Fedora Infrastructure" \
license="MIT"
RUN dnf install -y \
git \
python3-blinker \
python3-dateutil \
python3-fedmsg \
python3-flask \
python3-flask-wtf \
python3-flask-login \
python3-flask-restful \
python3-flask-openid \
python3-gunicorn \
python3-openid \
python3-pip \
python3-psycopg2 \
python3-setuptools \
python3-straight-plugin \
python3-sqlalchemy \
python3-wtforms && \
dnf autoremove -y && \
dnf clean all -y
RUN pip-3 install git+https://github.com/release-monitoring/anitya.git@master
ENV USER=fedmsg
ENTRYPOINT fedmsg-hub
type: Dockerfile
strategy:
type: Docker
output:
to:
kind: ImageStreamTag
name: fedmsg-hub:latest
kind: List
metadata: {}

View file

@ -67,5 +67,58 @@ items:
namespace: release-monitoring
type: ImageChange
- type: ConfigChange
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: fedmsg-hub
service: fedmsg
name: fedmsg-hub
spec:
replicas: 1
selector:
deploymentconfig: fedmsg-hub
strategy:
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
creationTimestamp: null
labels:
app: fedmsg-hub
deploymentconfig: fedmsg-hub
spec:
containers:
- name: fedmsg-hub
image: release-monitoring/fedmsg-hub:latest
resources: {}
volumeMounts:
- name: config-volume
mountPath: /etc/anitya
readOnly: true
volumes:
- name: config-volume
configMap:
name: release-monitoring-configmap
triggers:
- imageChangeParams:
automatic: true
containerNames:
- fedmsg-hub
from:
kind: ImageStreamTag
name: fedmsg-hub:latest
namespace: release-monitoring
type: ImageChange
- type: ConfigChange
kind: List
metadata: {}

View file

@ -6,5 +6,11 @@ items:
name: release-monitoring-web
labels:
build: release-monitoring-web
- apiVersion: v1
kind: ImageStream
metadata:
name: fedmsg-hub
labels:
build: fedmsg-hub
kind: List
metadata: {}