Supposedly add all build config parts
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
4040efd455
commit
d1cf752d7e
3 changed files with 36 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
- /srv/web/infra/ansible/roles/openshift-apps/ipsilon/vars/build.yml
|
||||
|
||||
pre_tasks:
|
||||
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
|
||||
|
|
|
@ -8,19 +8,39 @@ spec:
|
|||
runPolicy: Serial
|
||||
source:
|
||||
dockerfile: |-
|
||||
FROM fedora:29
|
||||
FROM fedora:latest
|
||||
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/files/common/fedora-infra-tags.repo
|
||||
{% if env == "staging" %}
|
||||
RUN curl -o /etc/yum.repos.d/infra-tags-stg.repo https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/files/common/fedora-infra-tags-stg.repo
|
||||
{% endif %}
|
||||
RUN dnf install -y ipsilon ipsilon-authfas ipsilon-openid ipsilon-saml2 ipsilon-persona ipsilon-infofas ipsilon-authgssapi ipsilon-openidc mod_auth_openidc python-psycopg2 httpd mod_wsgi
|
||||
RUN dnf install -y \
|
||||
ipsilon \
|
||||
ipsilon-authfas \
|
||||
ipsilon-openid \
|
||||
ipsilon-saml2 \
|
||||
ipsilon-persona \
|
||||
ipsilon-infofas \
|
||||
ipsilon-authgssapi \
|
||||
ipsilon-openidc \
|
||||
fedora-ipsilontheme \
|
||||
mod_auth_openidc \
|
||||
python-psycopg2 \
|
||||
httpd \
|
||||
mod_wsgi
|
||||
|
||||
# Fedora specific stuff - Terrible hacky way to install, but works for testing purposes
|
||||
curl https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/roles/ipsilon/files/api.py -o /usr/lib/python2.7/site-packages/ipsilon/providers/openid/extensions/api.py
|
||||
curl https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/roles/ipsilon/files/infofas.py -o /usr/lib/python2.7/site-packages/ipsilon/info/infofas.py
|
||||
|
||||
{% for scope_file in oidc_scope_filenames %}
|
||||
curl https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/roles/ipsilon/files/oidc_scopes/{{ scope_file }}.py -o /usr/lib/python2.7/site-packages/ipsilon/providers/openidc/plugins/{{scope_file}}.py
|
||||
{% endif %}
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT bash /etc/ipsilon/start.sh
|
||||
type: Dockerfile
|
||||
strategy:
|
||||
type: Docker
|
||||
dockerStrategy:
|
||||
noCache: false
|
||||
output:
|
||||
to:
|
||||
kind: ImageStreamTag
|
||||
|
|
11
roles/openshift-apps/ipsilon/vars/build.yml
Normal file
11
roles/openshift-apps/ipsilon/vars/build.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
oidc_scope_filenames:
|
||||
- account-scopes
|
||||
- mbs
|
||||
- beaker
|
||||
- waiverdb
|
||||
- odcs
|
||||
- wiki
|
||||
- freshmaker
|
||||
- src
|
||||
- fpdc
|
Loading…
Add table
Add a link
Reference in a new issue