forked from aerospike/aerospike-tools.docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (26 loc) · 1.04 KB
/
Dockerfile
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
#
# Aerospike Tools Dockerfile
#
# http://github.com/aerospike/aerospike-tools.docker
#
FROM debian:7
ENV AEROSPIKE_VERSION 3.6.1
ENV AEROSPIKE_SHA256 a2a249a9cc97da6135cf54205b8f2c367b457ba71e37af8ede91aeffd9e03f5b
# Work from /aerospike
WORKDIR /aerospike
ENV PATH /aerospike:$PATH
# Install Aerospike
RUN \
apt-get update -y \
&& apt-get install -y python wget logrotate ca-certificates \
&& wget "https://www.aerospike.com/artifacts/aerospike-tools/${AEROSPIKE_VERSION}/aerospike-tools-${AEROSPIKE_VERSION}-debian7.tgz" -O aerospike-tools.tgz \
&& echo "$AEROSPIKE_SHA256 *aerospike-tools.tgz" | sha256sum -c - \
&& mkdir aerospike \
&& tar xzf aerospike-tools.tgz --strip-components=1 -C aerospike \
&& apt-get purge -y --auto-remove wget ca-certificates
RUN ls /aerospike/aerospike && dpkg -i /aerospike/aerospike/aerospike-tools-*.debian7.x86_64.deb \
&& rm -rf aerospike-tools.tgz aerospike /var/lib/apt/lists/*
# Addition of wrapper script
ADD wrapper.sh /aerospike/wrapper
# Wrapper script entrypoint
ENTRYPOINT ["wrapper"]