forked from F5Networks/f5-common-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.python3
More file actions
35 lines (30 loc) · 1.05 KB
/
Copy pathDockerfile.python3
File metadata and controls
35 lines (30 loc) · 1.05 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
# Dockerfile to build python 3 environment
#
# This dockerfile can be used to build the same python2 environment that we
# use for testing and development. To build the docker container, run the
# following commands.
#
# cd devtools/dockerfiles
# docker build -f Dockerfile.python2 -t python3 .
#
# The docker container can then be used as any other docker containter would
# be used. Connecting to your BIG-IP inside of Vagrant may require that you
# add a forwarded host in Docker to the Vagrant machine itself.
#
# For example,
#
# docker run -it --add-host="localhost:192.168.1.1" \
# -v "${HOME}/src/trupp/f5-common-python:/artifacts" python2
#
# The 192.x address in this case is the IP address of vboxnet0 interfaces on
# your host machine (the one that runs docker and vagrant)
FROM python:3
MAINTAINER @f5networks
COPY . /tmp/src/
RUN mkdir -p /artifacts/coverage
RUN apt-get update && apt-get -y install apt-utils vim
WORKDIR /tmp/src
RUN pip install -r /tmp/src/requirements.test.txt
RUN rm -rf /tmp/src
WORKDIR /artifacts
CMD /bin/bash