Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agallardol/buildnetes
A docker image containing DinD, Docker-Compose, Kompose, Kubectl and the necessary dependencies for these tools. It can be used, for example, when running a Pipeline in Gitlab that needs to build the docker images and deploy them in kubernetes.
https://github.com/agallardol/buildnetes
build-automation build-tool docker docker-compose docker-image gitlab-ci kompose kubectl kubernetes pipeline
Last synced: 9 days ago
JSON representation
A docker image containing DinD, Docker-Compose, Kompose, Kubectl and the necessary dependencies for these tools. It can be used, for example, when running a Pipeline in Gitlab that needs to build the docker images and deploy them in kubernetes.
- Host: GitHub
- URL: https://github.com/agallardol/buildnetes
- Owner: agallardol
- Created: 2018-08-30T13:00:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-30T15:43:26.000Z (over 6 years ago)
- Last Synced: 2024-12-22T05:42:37.694Z (20 days ago)
- Topics: build-automation, build-tool, docker, docker-compose, docker-image, gitlab-ci, kompose, kubectl, kubernetes, pipeline
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Buildnetes
[![Docker Pulls](https://img.shields.io/docker/pulls/agallardol/buildnetes.svg)](https://hub.docker.com/r/agallardol/buildnetes) [![Docker Automated build](https://img.shields.io/docker/automated/agallardol/buildnetes.svg)](https://hub.docker.com/r/agallardol/buildnetes/) [![Docker Build Status](https://img.shields.io/docker/build/agallardol/buildnetes.svg)](https://hub.docker.com/r/agallardol/buildnetes/)
A docker image containing DinD, Docker-Compose, Kompose, Kubectl and the necessary dependencies for these tools.
## Why
It can be used, for example, when running a Pipeline in Gitlab that needs to build the docker images and deploy them in kubernetes.## Dependencies used
* pyp-pip
* pip (latest version using --upgrade pip)
* make
* ca-certificates
* openssl
* python
* curl
* git
* go
* musl-dev## Main tools
### [Docker in Docker](https://hub.docker.com/_/docker/)
> Although running Docker inside Docker is generally not recommended, there are some legitimate use cases, such as development of Docker itself. \
Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux, Mac OS and Windows.### [Kompose (Kubernetes + Compose)](https://github.com/kubernetes/kompose)
> kompose is a tool to help users who are familiar with docker-compose move to Kubernetes. kompose takes a Docker Compose file and translates it into Kubernetes resources. \
kompose is a convenience tool to go from local Docker development to managing your application with Kubernetes. Transformation of the Docker Compose format to Kubernetes resources manifest may not be exact, but it helps tremendously when first deploying an application on Kubernetes.### [Kubectl](https://kubernetes.io/docs/home/?path=users&persona=app-developer&level=foundational)
> kubectl is a command line interface for running commands against Kubernetes clusters.
## Example
With this image you can build and publish your docker images, for example, in a continuous integration pipeline, to later deploy them in containers in a Kubernetes cluster.
Surely you will use commands like these:
### Compose build and push
```
docker login...
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml push
```
### Kompose convert```
kompose convert -f docker-compose.yml -o kubernetes-deployment.yml
```### Kubernetes deploy
```
kubectl apply -f kubernetes-deployment.yml
```