mirror of
https://github.com/kerberos-io/deployment.git
synced 2026-08-23 15:18:32 +00:00
Enhance deployment workflows and Dockerfile
- Add Docker feature for running Docker outside of Docker in devcontainer.json - Update pod status checks in k3d, kind, and microk8s workflows to target 'hub-frontend' instead of 'kerberos-hub' - Improve Dockerfile to install 'kind' based on architecture
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,8 +1,19 @@
|
||||
FROM ubuntu:latest
|
||||
LABEL maintainer="Cedric Verstraeten"
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install snapd snap-confine -y
|
||||
# Install curl
|
||||
RUN apt-get update && apt-get install -y curl
|
||||
|
||||
# Install microk8s
|
||||
RUN snap install microk8s --classic --channel=1.32/stable
|
||||
# Install kind (detect architecture)
|
||||
RUN ARCH=$(uname -m) && \
|
||||
if [ "$ARCH" = "x86_64" ]; then \
|
||||
curl -Lo /usr/local/bin/kind https://kind.sigs.k8s.io/dl/v0.28.0/kind-linux-amd64; \
|
||||
elif [ "$ARCH" = "aarch64" ]; then \
|
||||
curl -Lo /usr/local/bin/kind https://kind.sigs.k8s.io/dl/v0.28.0/kind-linux-arm64; \
|
||||
else \
|
||||
echo "Unsupported architecture: $ARCH" && exit 1; \
|
||||
fi && \
|
||||
chmod +x /usr/local/bin/kind
|
||||
|
||||
# Create a cluster using kind
|
||||
RUN kind create cluster
|
||||
Reference in New Issue
Block a user