| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| # |
| # |
| # build for cloudstack_home_dir not this folder |
| FROM python:2 |
| |
| MAINTAINER "Apache CloudStack" <dev@cloudstack.apache.org> |
| LABEL Vendor="Apache.org" License="ApacheV2" Version="4.12.0.0" |
| |
| ENV WORK_DIR=/marvin |
| |
| ENV PKG_URL=https://builds.cloudstack.org/job/build-master-marvin/lastSuccessfulBuild/artifact/tools/marvin/dist/Marvin-4.12.0.0.tar.gz |
| |
| RUN apt-get update && apt-get install -y vim |
| RUN pip install --upgrade paramiko nose requests |
| #RUN pip install --allow-external mysql-connector-python mysql-connector-python |
| RUN pip install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip#md5=3df394d89300db95163f17c843ef49df |
| RUN pip install ${PKG_URL} |
| |
| RUN mkdir -p ${WORK_DIR} |
| COPY setup/dev ${WORK_DIR}/dev |
| COPY tools/marvin/marvin ${WORK_DIR}/marvin |
| COPY test/integration ${WORK_DIR}/integration |
| |
| WORKDIR ${WORK_DIR} |
| |
| CMD /bin/bash |