-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (38 loc) · 1.77 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
FROM amd64/alpine:latest
ENV AKAMAI_CLI_HOME=/cli
RUN apk add --no-cache --update openssl \
ca-certificates \
libc6-compat \
libstdc++ \
bind-tools \
wget \
curl \
jq \
bash \
nodejs \
npm && \
rm -r -f /var/cache/apk/* && \
wget --quiet -O /usr/local/bin/akamai https://github.com/akamai/cli/releases/download/1.1.4/akamai-1.1.4-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 property --force && \
rm -rf /cli/.akamai-cli/src/akamai-cli-netlist/.git
RUN akamai install https://github.com/apiheat/akamai-cli-overview --force && \
rm -rf /cli/.akamai-cli/src/akamai-cli-overview/.git
RUN akamai install https://github.com/apiheat/akamai-cli-diagnostic-tools --force && \
rm -rf /cli/.akamai-cli/src/akamai-cli-diagnostic-tools/.git
RUN wget --quiet -O /usr/local/bin/realcoverage https://github.com/apiheat/realcoverage/releases/download/v0.0.4/realcoverage_linux_amd64 && \
chmod +x /usr/local/bin/realcoverage
ENV AKAMAI_CLI_HOME=/cli
VOLUME /cli
VOLUME /root/.edgerc
CMD ["/bin/bash"]