forked from jmcvea/docker-openstack-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 1.02 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
FROM python:3-alpine
# MAINTAINER Jim McVea <jmcvea@gmail.com>
LABEL maintainer="Per Bergland <per@refapp.se>"
LABEL Description="Provides openstack client tools" Version="0.1"
# Packages in addition to openstack core
ARG OPENSTACK_PACKAGES="python-barbicanclient python-octaviaclient"
RUN python -m ensurepip
RUN apk add --update \
age \
aws-cli \
bash \
ca-certificates \
jq \
openssl \
openssl-dev \
&& rm -rf /var/cache/apk/*
RUN apk add --update \
gcc \
musl-dev \
linux-headers \
libffi-dev \
&& pip install --upgrade --no-cache-dir pip setuptools python-openstackclient ${OPENSTACK_PACKAGES} \
&& apk del gcc musl-dev linux-headers libffi-dev \
&& rm -rf /var/cache/apk/*
# Add a volume so that a host filesystem can be mounted
# Ex. `docker run -v $PWD:/data jmcvea/openstack-client`
VOLUME ["/data"]
# Default is to start a shell. A more common behavior would be to override
# the command when starting.
# Ex. `docker run -ti jmcvea/openstack-client openstack server list`
CMD ["/bin/sh"]