forked from RedHatQE/cloudwash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
32 lines (26 loc) · 1.03 KB
/
Dockerfile.dev
File metadata and controls
32 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM registry.access.redhat.com/ubi8/python-38:latest
MAINTAINER "https://github.com/RedHatQE"
ENV VIRTUAL_ENV="/opt/app-root" \
HOME="/opt/app-root/src" \
CLOUDWASH_DIR="/opt/app-root/src/cloudwash" \
PYCURL_SSL_LIBRARY=openssl
USER 0
RUN yum -y clean all
# Installing cloudwash
USER 1001
WORKDIR "${HOME}"
RUN git clone https://github.com/RedHatQE/cloudwash.git && \
cd ${CLOUDWASH_DIR} && \
pip install --upgrade pip && \
pip install -r requirements.txt
# Workaround for the issue DistributionNotFound: The 'azure-mgmt-media~=1.0.0rc2' distribution was not found and is required by azure-mgmt
# RUN pip install azure-mgmt-media==1.0.0rc2
# Download conf file
RUN curl -o ${CLOUDWASH_DIR}/settings.yaml https://raw.githubusercontent.com/RedHatQE/cloudwash/master/settings.yaml.template
# arbitrary UID handling starting from virtualenv directory for pip permissions
USER 0
RUN chgrp -R 0 ${VIRTUAL_ENV} && \
chmod -R g+rwX ${VIRTUAL_ENV} && \
fix-permissions ${VIRTUAL_ENV} -P
USER 1001
WORKDIR "${CLOUDWASH_DIR}"