mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
d17c7e7fc0
This PR achieves the following goals: * Utilise upstream version of kind instead of a patched version which allows binding to networks other than the default "kind" * Utilises the registry cache which is setup one level above the kind cluster The former point was required to successfully run our integration tests in a Kubernetes environment, however this is now possible without running a patched version of kind. The second point is because DockerHub has introduced rate limiting for container downloads. If there are a large number of CI jobs nodes may occasionally be rejected due to the Kubernetes suite not pulling down from the registry cache.
17 lines
537 B
Docker
17 lines
537 B
Docker
FROM alpine:3.13.1
|
|
|
|
WORKDIR /kind
|
|
|
|
RUN apk add --no-cache bash curl docker && \
|
|
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.10.0/kind-linux-amd64 && chmod +x kind && \
|
|
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.20.2/bin/linux/amd64/kubectl && chmod +x kubectl
|
|
|
|
ADD entrypoint.sh entrypoint.sh
|
|
ADD patch-kubeconfig.sh patch-kubeconfig.sh
|
|
|
|
ENV HOME=/kind/config
|
|
ENV KUBECONFIG=/kind/config/.kube/kind-config-kind
|
|
|
|
VOLUME /kind/config
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"] |