-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (40 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
52 lines (40 loc) · 1.11 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# build the cm-docker with
# start docker
# eval "$(docker-machine env default)"
#
# docker build -t cm-docker .
#
# docker run -ti cm-docker bash
# docker run -ti -v ~/.ssh:/root/.ssh -v ~/.cloudmesh:/root/.cloudmesh cm-docker bash
# docker cp ~/.ssh <DOCKERID>:/root/.ssh
FROM ubuntu:16.04
MAINTAINER laszewski@gmail.com
### update system
RUN apt-get update
### prepare system
RUN apt-get install libpng-dev -y
RUN apt-get install zlib1g-dev -y
### install python
RUN apt-get install -y \
git python python-pip python-dev \
libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev \
python-distribute
RUN pip install -U pip
RUN apt-get remove python-six -y
### setup ssh
RUN mkdir -p /root/.ssh
### prepare cloudmesh directories
RUN mkdir -p .cloudmesh
ADD . cloudmesh_client
WORKDIR cloudmesh_client
### install requirements
RUN pip install -r requirements.txt
RUN pip install -r requirements-doc.txt
RUN pip install -r requirements-test.txt
### install cloudmesh
RUN python setup.py install
### run tests
RUN cm help
RUN nosetests -v --nocapture tests/cm_basic
### run cloudmesh
RUN cm