-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
56 lines (46 loc) · 3.31 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#v1
FROM amd64/alpine:latest
ENV AKAMAI_CLI_HOME=/cli
RUN apk add --no-cache --update openssl \
ca-certificates \
libc6-compat \
libstdc++ \
wget \
jq \
bash && \
rm -rf /var/cache/apk/* && \
wget --quiet -O /usr/local/bin/akamai https://github.com/akamai/cli/releases/download/1.1.3/akamai-1.1.3-linuxamd64 && \
chmod +x /usr/local/bin/akamai && \
echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' >> /root/.bashrc
RUN mkdir -p /cli/.akamai-cli && \
echo "[cli]" > /cli/.akamai-cli/config && \
echo "cache-path = /cli/.akamai-cli/cache" >> /cli/.akamai-cli/config && \
echo "config-version = 1" >> /cli/.akamai-cli/config && \
echo "enable-cli-statistics = false" >> /cli/.akamai-cli/config && \
echo "last-ping = 2018-04-27T18:16:12Z" >> /cli/.akamai-cli/config && \
echo "client-id =" >> /cli/.akamai-cli/config && \
echo "install-in-path =" >> /cli/.akamai-cli/config && \
echo "last-upgrade-check = ignore" >> /cli/.akamai-cli/config
RUN akamai install https://github.com/apiheat/akamai-cli-netlist --force && \
rm -rf /cli/.akamai-cli/src/akamai-cli-netlist/.git
RUN echo ' ' > /etc/motd && \
echo ' ███╗ ██╗███████╗████████╗██╗ ██╗███████╗████████╗ ' >> /etc/motd && \
echo ' ████╗ ██║██╔════╝╚══██╔══╝██║ ██║██╔════╝╚══██╔══╝ ' >> /etc/motd && \
echo ' ██╔██╗ ██║█████╗ ██║ ██║ ██║███████╗ ██║ ' >> /etc/motd && \
echo ' ██║╚██╗██║██╔══╝ ██║ ██║ ██║╚════██║ ██║ ' >> /etc/motd && \
echo ' ██║ ╚████║███████╗ ██║ ███████╗██║███████║ ██║ ' >> /etc/motd && \
echo ' ╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚══════╝╚═╝╚══════╝ ╚═╝ ' >> /etc/motd && \
echo '===============================================================' >> /etc/motd && \
echo '= Welcome to the netlist cli for Akamai =' >> /etc/motd && \
echo '===============================================================' >> /etc/motd && \
echo '= Project page: =' >> /etc/motd && \
echo '= https://github.com/apiheat/akamai-cli-netlist =' >> /etc/motd && \
echo '===============================================================' >> /etc/motd && \
echo '= Project version: =' >> /etc/motd && \
echo " * $(akamai netlist --version)" >> /etc/motd && \
echo " * $(akamai --version)" >> /etc/motd && \
echo '===============================================================' >> /etc/motd
ENV AKAMAI_CLI_HOME=/cli
VOLUME /cli
VOLUME /root/.edgerc
CMD ["/bin/bash"]