Hardcoded the dockerfile in buildconfig in datagrepper POC deployment config.
This commit is contained in:
parent
c6492239b8
commit
f419a9525f
1 changed files with 15 additions and 1 deletions
|
@ -11,7 +11,21 @@ items:
|
||||||
runPolicy: Serial
|
runPolicy: Serial
|
||||||
source:
|
source:
|
||||||
dockerfile: |-
|
dockerfile: |-
|
||||||
{{ load_file('dockerfile-datagrepper') | indent(8) }}
|
FROM fedora:32
|
||||||
|
LABEL \
|
||||||
|
name="datagrepper" \
|
||||||
|
vendor="Fedora Infrastructure" \
|
||||||
|
license="MIT"
|
||||||
|
RUN dnf -y install fedora-messaging python3 python3-fedmsg python3-gunicorn python3-pip python3-psycopg2 git
|
||||||
|
RUN git clone https://github.com/fedora-infra/datagrepper.git /srv/datanommer && \
|
||||||
|
cd /srv/datanommer && \
|
||||||
|
python3 -m pip install -r requirements.txt && \
|
||||||
|
python3 -m pip install . --no-use-pep517 && \
|
||||||
|
mkdir -p /usr/share/datagrepper && \
|
||||||
|
cp /srv/datanommer/apache/datagrepper.wsgi /usr/share/datagrepper/datagrepper.wsgi && \
|
||||||
|
cp /srv/datanommer/fedmsg.d/example-datagrepper.py /etc/fedmsg.d/datagrepper.py
|
||||||
|
env DATAGREPPER_CONFIG=/srv/datanommer/apache/datagrepper.cfg
|
||||||
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-t", "180", "datagrepper.app:app"]
|
||||||
type: Dockerfile
|
type: Dockerfile
|
||||||
strategy:
|
strategy:
|
||||||
type: Docker
|
type: Docker
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue