Merge pull request #9 from cloudedge/dockerfile
Dockerfile from @d_qoi working to build container
This commit is contained in:
commit
c49cb82bef
68
t-container/Dockerfile
Normal file
68
t-container/Dockerfile
Normal file
@ -0,0 +1,68 @@
|
||||
# Docker Tempest in a Container (TCUP)
|
||||
#
|
||||
# Copyright (c) 2014 Alex Hirschfeld (d-qoi), no corporate affiliation
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed 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.
|
||||
|
||||
FROM ubuntu
|
||||
RUN apt-get update
|
||||
|
||||
# Downloading tools
|
||||
RUN apt-get install -y git python-pip wget unzip
|
||||
|
||||
#Downloading dependencies
|
||||
RUN apt-get install -y libxml2-dev libxslt-dev lib32z1-dev python2.7-dev libssl-dev
|
||||
|
||||
#other dependencies
|
||||
RUN apt-get install -y python-dev libxslt1-dev libsasl2-dev libsqlite3-dev libldap2-dev libffi-dev
|
||||
RUN pip install ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.9.tar.gz
|
||||
|
||||
# Cloning tempest
|
||||
#RUN git clone https://github.com/openstack/tempest
|
||||
|
||||
# Get tempest code
|
||||
RUN wget https://github.com/openstack/tempest/archive/stable/havana.zip
|
||||
RUN unzip havana.zip
|
||||
RUN mv /tempest-stable-havana /tempest
|
||||
|
||||
#running setup
|
||||
#RUN python /tempest/setup.py install
|
||||
|
||||
#making file to add exterior files
|
||||
#RUN mkdir temp
|
||||
|
||||
#Tempest config creator
|
||||
#ADD https://github.com/dlenwell/refstack/blob/master/refstack/common/tempest_config.py /temp/
|
||||
#ADD http://9.30.139.135/openstack/tempest.conf /tempest/
|
||||
|
||||
#MORE DEPENDENCIES (for tempest config builder)
|
||||
#ADD https://github.com/openstack/keystone/blob/master/requirements.txt /temp/
|
||||
#ADD https://github.com/openstack/keystone/blob/master/test-requirements.txt /temp/
|
||||
|
||||
#using dependencies
|
||||
RUN pip install -r /tempest/requirements.txt
|
||||
RUN pip install -r /tempest/test-requirements.txt
|
||||
|
||||
#Running tempest config creator
|
||||
#CMD 'cd /tempest && git checkout stable/havana && /tempest/run_tests.sh -C /tempest/tempest.conf -N -- tempest'
|
||||
#CMD 'cd /tempest && /tempest/run_tests.sh -C /tempest/tempest.conf -N -- tempest'
|
||||
|
||||
#Publishing to refstack
|
||||
#ADD <url> /temp/
|
||||
|
||||
#rest of file
|
||||
|
||||
#eof
|
||||
|
||||
# To start the image, docker run -i -t [image id] /bin/bash
|
Loading…
Reference in New Issue
Block a user