This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
48 lines (43 loc) · 1.46 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
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG BASE_IMAGE
ARG KIND_ON_C_VERSION
SHELL [ "bash", "-e", "-u", "-o", "pipefail", "-c" ]
# Should be the binary from https://github.com/Blacksmoke16/oq/releases
COPY external/oq/oq-v*-linux-x86_64 /usr/local/bin/oq
RUN chmod 0750 /usr/local/bin/oq \
&& ls -lh /usr/local/bin/oq
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update \
&& apt-get -y install -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 \
apt-transport-https \
bash \
ca-certificates \
curl \
git \
gnupg-agent \
iproute2 \
iptables \
jq \
make \
rsync \
software-properties-common \
tar \
tzdata \
util-linux \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
| apt-key --keyring /etc/apt/trusted.gpg.d/docker.gpg add - \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
&& apt-get -y update \
&& apt-get -y install -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 \
containerd.io \
docker-ce \
docker-ce-cli \
&& apt-get -y purge python\* \
&& apt-get -y autopurge \
&& rm -rf /var/lib/apt/lists/*
LABEL org.opencontainers.image.title "kind-on-c"
LABEL org.opencontainers.image.x.base-image "${BASE_IMAGE}"
LABEL org.opencontainers.image.x.kind-on-c "${KIND_ON_C_VERSION}"
LABEL org.opencontainers.image.description "Run kind deployed kubernetes clusters in your concourse task"