Docker + docker-compose + kubectl to build and deploy projects on Kubernetes.
10K+
Dockerfile linkslatest latest stable release1, 1.8, 1.8.0 (or similar) are like latest but for a specific version of Kubernetes (kubectl).Bundle with almost minimal set of utilities to build Docker images and deploy them on Kubernetes:
dockerdocker-composekubectlenvsubstAlso automatically creates a kubectl context using the service account
if it detects there is one.
You should provide a Docker daemon either:
docker host pointing to docker:dind, or/var/run/docker.sock, orDOCKER_HOST to where this container can reach a Docker daemon.For example you can run GitLab CI with a .gitlab-ci.yml like:
build:
stage: build
image: wernight/beroux-builder
services:
- docker:dind
before_script:
- docker info
- docker-compose version
- docker login -u _json_key -p "$DOCKER_REGISTRY_TOKEN" https://eu.gcr.io
- kubectl cluster-info
script:
- docker-compose build --pull
- docker push my-repo/my-image
- cat kubernetes.yml | envsubst | kubectl apply -f -
For this to work, you need:
gitlab-ci-multi-runner set up in Docker mode with:
DOCKER_REGISTRY_TOKEN set to access your Docker Registry (if private)./var/run/secrets/kubernetes.io/serviceaccount/).Content type
Image
Digest
sha256:7cd7860cb…
Size
177.7 MB
Last updated
2 months ago
docker pull wernight/beroux-builder