This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to dockerfile for dev, framework handling of dev appliance
pytest_store handling of no SSH client address dockerignore for pytest_cache iputils and iproute in quickstart system packages SSHDummy property handling, explicitly None building cfme-tests docker on cfmeqe_sel_stable
- Loading branch information
Showing
11 changed files
with
64 additions
and
137 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 @@ | ||
.pytest_cache |
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
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
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
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 |
---|---|---|
@@ -1,100 +1,27 @@ | ||
FROM registry.fedoraproject.org/fedora:26 | ||
# Intended build context is integration_tests top level | ||
|
||
RUN echo "tsflags=nodocs" >> /etc/yum.conf | ||
FROM dima-sel-base:latest | ||
|
||
COPY ../docker-assets/google-chrome.repo /etc/yum.repos.d/ | ||
ENV PYCURL_SSL_LIBRARY=nss \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
VENV=/cfme_venv \ | ||
CFME_ENV=/integration_tests | ||
|
||
RUN dnf install -y http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm && \ | ||
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux && \ | ||
dnf install -y \ | ||
# Base packages | ||
bzip2 \ | ||
dejavu* \ | ||
findutils \ | ||
flash-plugin \ | ||
fluxbox \ | ||
freetype-devel \ | ||
gcc \ | ||
gcc-c++ \ | ||
git \ | ||
gtk2 \ | ||
java-1.8.0-openjdk.x86_64 \ | ||
libcurl-devel \ | ||
libffi-devel \ | ||
libpng-devel \ | ||
libxml2-devel \ | ||
libxslt-devel \ | ||
openssl-devel \ | ||
passwd \ | ||
postgresql-devel \ | ||
python-devel \ | ||
python-netaddr \ | ||
python-pip \ | ||
python-setuptools \ | ||
python2-virtualenv \ | ||
redhat-rpm-config \ | ||
sshpass \ | ||
sudo \ | ||
tigervnc-server \ | ||
unzip \ | ||
which \ | ||
xorg-x11-fonts-* \ | ||
xterm \ | ||
zeromq-devel && \ | ||
dnf install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm && \ | ||
dnf clean all | ||
COPY ./cfme/scripting $CFME_ENV/cfme/scripting/ | ||
COPY ./requirements.txt $CFME_ENV/ | ||
COPY requirements/ $CFME_ENV/ | ||
WORKDIR $CFME_ENV | ||
# for package installs through quickstart | ||
USER 0 | ||
RUN python2 -m cfme.scripting.quickstart --mk-virtualenv $VENV | ||
RUN source $VENV/bin/activate && pip freeze && pip install -e . | ||
|
||
ENV CHROME_PATH /opt/google/chrome | ||
ENV CHROMEDRIVER_VERSION 2.35 | ||
ENV CHROMEDRIVER_PATH /opt/chromedriver/ | ||
ENV SELENIUM_VERSION 2.53 | ||
ENV SELENIUM_PATH /opt/selenium | ||
ENV FIREFOX_VERSION 45.5.0esr | ||
ENV FIREFOX_PATH /opt/firefox | ||
# integration_tests volume mounted at run time to pickup real-time changes | ||
VOLUME $CFME_ENV | ||
WORKDIR $CFME_ENV | ||
|
||
# Chrome driver | ||
RUN mkdir -p ${CHROMEDRIVER_PATH} && \ | ||
cd ${CHROMEDRIVER_PATH} && \ | ||
curl -O http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip && \ | ||
unzip chromedriver_linux64.zip && \ | ||
chmod a+x chromedriver && \ | ||
rm -f chromedriver_linux64.zip | ||
COPY ./dockerfiles/cfme_tests_dev/docker-assets/entrypoint /entrypoint | ||
|
||
# Selenium | ||
RUN mkdir -p ${SELENIUM_PATH} && \ | ||
cd ${SELENIUM_PATH} && \ | ||
curl http://selenium-release.storage.googleapis.com/${SELENIUM_VERSION}/selenium-server-standalone-${SELENIUM_VERSION}.0.jar -o selenium_latest.jar && \ | ||
chmod ugo+r selenium_latest.jar | ||
EXPOSE 5999 | ||
|
||
# Firefox | ||
RUN mkdir -p ${FIREFOX_PATH} && \ | ||
cd ${FIREFOX_PATH} && \ | ||
curl https://download-installer.cdn.mozilla.net/pub/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2 -o firefox.tar.bz2 && \ | ||
tar -C . -xjvf firefox.tar.bz2 --strip-components 1 && \ | ||
rm -f firefox.tar.bz2 | ||
|
||
ENV PATH="${FIREFOX_PATH}:${CHROME_PATH}:${CHROMEDRIVER_PATH}:${SELENIUM_PATH}:${PATH}" | ||
|
||
ENV PYCURL_SSL_LIBRARY=nss | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
ENV CFME_ENV=/ | ||
|
||
RUN virtualenv /cfme_venv | ||
RUN echo "source /cfme_venv/bin/activate" >> /root/.bashrc | ||
|
||
# Preinstall any python dependencies to keep it in an early layer | ||
COPY ../requirements/frozen.py2.txt frozen.py2.txt | ||
RUN /cfme_venv/bin/pip install --no-cache-dir -U pip wheel setuptools_scm docutils && \ | ||
/cfme_venv/bin/pip install --no-cache-dir -r frozen.py2.txt --no-binary pycurl && \ | ||
rm -rf ~/.cache/pip && \ | ||
find . -name *.pyc -delete && \ | ||
find . -name __pycache__ -delete | ||
|
||
VOLUME /projects/cfme_env/cfme_vol | ||
WORKDIR /projects/cfme_env/cfme_vol | ||
|
||
COPY ../docker-assets/xstartup /xstartup | ||
COPY ../docker-assets/entrypoint /entrypoint | ||
|
||
ENTRYPOINT ["/entrypoint"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.