-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from RedHatQE/cloudwash_container
The Dockerfile and buildConfig of cloudwash for OCP
- Loading branch information
Showing
4 changed files
with
162 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM registry.access.redhat.com/ubi8/python-38:latest | ||
MAINTAINER "https://github.com/RedHatQE" | ||
|
||
ENV VIRTUAL_ENV="/opt/app-root" \ | ||
CLOUDWASH_DIR="/opt/app-root/src/cloudwash" \ | ||
PYCURL_SSL_LIBRARY=openssl | ||
|
||
USER 0 | ||
RUN yum -y clean all | ||
|
||
# Installing cloudwash | ||
USER 1001 | ||
RUN pip install --upgrade pip | ||
RUN pip install cloudwash | ||
# 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 mkdir -p ${CLOUDWASH_DIR} | ||
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
apiVersion: v1 | ||
kind: List | ||
items: | ||
- kind: ImageStream | ||
apiVersion: image.openshift.io/v1 | ||
metadata: | ||
labels: | ||
name: cloudwash | ||
name: cloudwash | ||
spec: | ||
lookupPolicy: | ||
local: true | ||
|
||
- kind: BuildConfig | ||
apiVersion: build.openshift.io/v1 | ||
metadata: | ||
creationTimestamp: | ||
labels: | ||
name: cloudwash-stable | ||
name: cloudwash-stable | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: cloudwash:stable | ||
resources: {} | ||
runPolicy: Serial | ||
source: | ||
git: | ||
uri: https://github.com/RedHatQE/cloudwash.git | ||
ref: master | ||
type: Git | ||
strategy: | ||
dockerStrategy: | ||
dockerfilePath: Dockerfile.stable | ||
type: Docker | ||
|
||
- kind: BuildConfig | ||
apiVersion: build.openshift.io/v1 | ||
metadata: | ||
creationTimestamp: | ||
labels: | ||
name: cloudwash-dev | ||
name: cloudwash-dev | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: cloudwash:dev | ||
resources: {} | ||
runPolicy: Serial | ||
source: | ||
git: | ||
uri: https://github.com/RedHatQE/cloudwash.git | ||
ref: master | ||
type: Git | ||
strategy: | ||
dockerStrategy: | ||
dockerfilePath: Dockerfile.dev | ||
type: Docker |