Initial release-monitoring openshift app
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
parent
d6ab106d41
commit
57e0ec0918
4 changed files with 120 additions and 0 deletions
|
@ -14,3 +14,8 @@
|
|||
description: release-monitoring
|
||||
appowners:
|
||||
- jcline
|
||||
- { role: openshift/object, app: release-monitoring, file: imagestream.yml }
|
||||
- { role: openshift/object, app: release-monitoring, file: buildconfig.yml }
|
||||
- { role: openshift/start-build, app: release-monitoring, name: release-monitoring-web-build }
|
||||
- { role: openshift/object, app: release-monitoring, file: deploymentconfig.yml }
|
||||
- { role: openshift/rollout, app:, name: release-monitoring }
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
apiVersion: v1
|
||||
items:
|
||||
- apiVersion: v1
|
||||
kind: BuildConfig
|
||||
metadata:
|
||||
labels:
|
||||
build: release-monitoring-web-build
|
||||
name: release-monitoring-web-build
|
||||
spec:
|
||||
runPolicy: Serial
|
||||
source:
|
||||
dockerfile: |-
|
||||
FROM fedora:27
|
||||
LABEL \
|
||||
name="release-monitoring-web" \
|
||||
vendor="Fedora Infrastructure" \
|
||||
license="MIT"
|
||||
RUN dnf update -y && \
|
||||
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 social-auth-app-flask social-auth-app-flask-sqlalchemy
|
||||
RUN pip-3 install git+https://github.com/release-monitoring/anitya.git
|
||||
ENV USER=anitya
|
||||
EXPOSE 8080
|
||||
EXPOSE 9940
|
||||
ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- anitya.wsgi:application
|
||||
type: Dockerfile
|
||||
strategy:
|
||||
type: Docker
|
||||
output:
|
||||
to:
|
||||
kind: ImageStreamTag
|
||||
name: release-monitoring-web:latest
|
||||
kind: List
|
||||
metadata: {}
|
|
@ -0,0 +1,52 @@
|
|||
apiVersion: v1
|
||||
items:
|
||||
- apiVersion: v1
|
||||
kind: DeploymentConfig
|
||||
metadata:
|
||||
labels:
|
||||
app: release-monitoring
|
||||
service: web
|
||||
name: release-monitoring-web
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
deploymentconfig: release-monitoring-web
|
||||
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: anitya
|
||||
deploymentconfig: anitya
|
||||
spec:
|
||||
containers:
|
||||
- name: anitya
|
||||
image: release-monitoring/release-monitoring-web:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
triggers:
|
||||
- imageChangeParams:
|
||||
automatic: true
|
||||
containerNames:
|
||||
- release-monitoring-web
|
||||
from:
|
||||
kind: ImageStreamTag
|
||||
name: release-monitoring-web:latest
|
||||
namespace: release-monitoring
|
||||
type: ImageChange
|
||||
- type: ConfigChange
|
||||
kind: List
|
||||
metadata: {}
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: v1
|
||||
items:
|
||||
- apiVersion: v1
|
||||
kind: ImageStream
|
||||
metadata:
|
||||
name: release-monitoring-web
|
||||
labels:
|
||||
build: release-monitoring-web
|
||||
kind: List
|
||||
metadata: {}
|
Loading…
Add table
Add a link
Reference in a new issue