Add initial docsbuilding openshift objects
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
171b0e556f
commit
6a8e87119c
2 changed files with 45 additions and 0 deletions
26
playbooks/openshift-apps/docsbuilding.yml
Normal file
26
playbooks/openshift-apps/docsbuilding.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
- name: make the app be real
|
||||
hosts: os-masters-stg[0]
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- role: openshift/project
|
||||
app: docsbuilding
|
||||
description: Documentation building
|
||||
appowners:
|
||||
- asamalik
|
||||
- role: openshift/imagestream
|
||||
app: docsbuilding
|
||||
imagename: builder
|
||||
- role: openshift/object
|
||||
app: docsbuilding
|
||||
objectname: buildconfig.yml
|
||||
template: buildconfig.yml
|
||||
- role: openshift/start-build
|
||||
app: docsbuilding
|
||||
buildname: builder-build
|
19
roles/openshift-apps/docsbuilding/templates/buildconfig.yml
Normal file
19
roles/openshift-apps/docsbuilding/templates/buildconfig.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: v1
|
||||
kind: BuildConfig
|
||||
metadata:
|
||||
labels:
|
||||
build: builder-build
|
||||
name: builder-build
|
||||
spec:
|
||||
runPolicy: Serial
|
||||
strategy:
|
||||
type: Docker
|
||||
source:
|
||||
dockerfile: |-
|
||||
FROM fedora:latest
|
||||
RUN dnf -y module install nodejs:10 && dnf clean all
|
||||
RUN npm i -g @antora/cli@2.0 @antora/site-generator-default@2.0
|
||||
output:
|
||||
to:
|
||||
kind: ImageStreamTag
|
||||
name: builder:latest
|
Loading…
Add table
Add a link
Reference in a new issue