Container-orchestration sets for automating deployment, scaling and management of containerized clusters
- Docker
- Minikube (if run Kubrnetes)
Python
docker run -v "$PWD":/usr/src/app -it --entrypoint /bin/bash \
gpupo/container-orchestration:python-dev
PHP
docker run -v "$PWD":/var/www/app -it --entrypoint /bin/bash \
gpupo/container-orchestration:php-dev
Node
docker run -v "$PWD":/var/www/app -it --entrypoint /bin/bash \
gpupo/container-orchestration:nodejs-dev
To run Symfony 4
, create th docker-compose.yaml
file with content:
version: '2'
services:
php:
container_name: php
image: gpupo/container-orchestration:php-fpm
volumes:
- ./:/var/www/app
networks:
- backend
nginx-upstream:
container_name: nginx-upstream
image: gpupo/container-orchestration:nginx-upstream
ports:
- "80:80"
links:
- php
volumes:
- ./:/var/www/app
networks:
- frontend
- backend
networks:
frontend:
backend:
and run
docker-compose up -d
or simple run:
docker run -d gpupo/container-orchestration:php-dev
git clone https://github.com/gpupo/container-orchestration.git;
cd container-orchestration;
./bin/start
Put your code on ./var/app/public
minikube start
kubectl create -f src/kubernetes/simple/nginx.yaml
minikube service nginx-service --url
minikube start
minikube addons enable ingress
eval $(minikube docker-env)
printf "# add to /etc/hosts:\n$(minikube ip) ingress.localhost\n"
kubectl create -f src/kubernetes/ingress/simple-app.yaml
curl http://ingress.localhost
minikube start --mount-string="./var:/tmp/shared";
kubectl create -f build/nginx-php.yaml
curl http://ingress.localhost
kubectl create secret tls tls-certificate --key ssl/server.key --cert ssl/server.crt
kubectl create secret generic tls-dhparam --from-file=ssl/dhparam.pem
kubectl create -f src/kubernetes/experimental/nginx-controller.yaml
- Clone this project;
- Fork https://github.com/gpupo/container-orchestration;
- Add your fork url as Remote in your local repository;
- Create a fetature branch
- Edit and build images;
- Push new codes into your remote branch;
- Create a Pull Request
docker-compose build
docker push gpupo/container-orchestration