1 FROM gliderlabs/alpine:3.6
8 RUN echo "Building Fenix container against OpenStack $OPENSTACK" && \
9 echo "Building Fenix with $BRANCH" && \
11 mkdir -p /var/tmp/fenix
12 WORKDIR /var/tmp/fenix
13 COPY fenix*.conf /etc/fenix/
15 RUN apk --no-cache add ca-certificates && \
16 apk --no-cache add --update python3 sshpass py-pip git curl && \
17 apk --no-cache add --virtual .build-deps --update \
18 python3-dev build-base linux-headers libffi-dev \
19 openssl-dev libjpeg-turbo-dev && \
20 curl https://opendev.org/openstack/requirements/raw/branch/$OPENSTACK/upper-constraints.txt > upper-constraints.txt && \
21 if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
22 if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
23 pip3 install --upgrade pip && \
24 pip3 install alembic aodhclient decorator flask Flask-RESTful eventlet jsonschema \
25 keystoneauth1 keystonemiddleware python-novaclient oslo.config pecan \
26 oslo.db oslo.log oslo.messaging oslo.serialization oslo.service oslo_policy \
27 oslotest oslo.utils pbr pymysql six sqlalchemy -cupper-constraints.txt && \
28 git clone https://opendev.org/x/fenix -b $BRANCH /fenix && \
31 COPY keystonercv3 /fenix
33 RUN python3 setup.py install