-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (26 loc) · 907 Bytes
/
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
FROM ubuntu:14.04
MAINTAINER Nathan Osman <nathan@quickmediasolutions.com>
# Add the compressed tarball from the GitHub release page
ADD https://github.com/hectane/hectane/releases/download/v0.3.1/hectane-v0.3.1-linux-amd64.tar.gz /root/
# Extract the archive
RUN \
cd /root && \
tar xf hectane-v0.3.1-linux-amd64.tar.gz && \
rm hectane-v0.3.1-linux-amd64.tar.gz
# Set a few configuration defaults
ENV DIRECTORY=/data \
DISABLE_SSL_VERIFICATION=0 \
LOGFILE=/var/log/hectane.log \
DEBUG=0
# Specify the executable to run
CMD /root/hectane \
-tls-cert="$TLS_CERT" \
-tls-key="$TLS_KEY" \
-username="$USERNAME" \
-password="$PASSWORD" \
-directory="$DIRECTORY" \
-disable-ssl-verification="$DISABLE_SSL_VERIFICATION" \
-logfile="$LOGFILE" \
-debug="$DEBUG"
# Expose the port with the HTTP API
EXPOSE 8025