-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.alpine
45 lines (39 loc) · 1.78 KB
/
Dockerfile.alpine
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 docker.io/alpine:latest
# This Dockerfile is intended for testing and development of panubo-functions.sh and is not for distribution of panubo-functions.sh
RUN set -x \
&& apk add --no-cache curl ca-certificates git wget bash xz coreutils make tzdata vim \
;
ENV PS1 '\u@\h:\w\$ '
CMD ["/bin/bash"]
# Install ShellCheck
RUN set -x \
&& SHELLCHECK_VERSION=0.9.0 \
&& SHELLCHECK_CHECKSUM=700324c6dd0ebea0117591c6cc9d7350d9c7c5c287acbad7630fa17b1d4d9e2f \
&& cd /tmp \
&& wget -nv https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz \
&& echo "${SHELLCHECK_CHECKSUM} shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" > /tmp/SHA256SUM \
&& ( cd /tmp; sha256sum -c SHA256SUM || ( echo "Expected $(sha256sum shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz)"; exit 1; )) \
&& tar -Jxf shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz \
&& mv shellcheck-v${SHELLCHECK_VERSION}/shellcheck /usr/local/bin/shellcheck \
&& rm -rf /tmp/* \
;
# Install gomplate
RUN set -x \
&& GOMPLATE_VERSION=3.8.0 \
&& GOMPLATE_SHA256=13b39916b11638b65f954fab10815e146bad3a615f14ba2025a375faf0d1107e \
&& cd /tmp \
&& wget -nv https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-amd64 \
&& echo "${GOMPLATE_SHA256} gomplate_linux-amd64" > /tmp/SHA256SUM \
&& ( cd /tmp; sha256sum -c SHA256SUM || ( echo "Expected $(sha256sum gomplate_linux-amd64)"; exit 1; )) \
&& chmod +x gomplate_linux-amd64 \
&& mv gomplate_linux-amd64 /usr/local/bin/gomplate \
&& rm -rf /tmp/* \
;
# Install Bats
RUN set -x \
&& cd ~ \
&& git clone https://github.com/bats-core/bats-core.git \
&& cd bats-core \
&& git checkout v1.10.0 \
&& ./install.sh /usr/local \
;