Skip to content

Quickstart of a Continuous Delivery service (Drone CI) with Gitea and Traefik(v2. *), using Docker Compose and Swarm.

License

Notifications You must be signed in to change notification settings

awojtczyk/quickstart-drone-ci

 
 

Repository files navigation

Translation for: English.

Quickstart Drone CI.

Quickstart of a Continuous Delivery service (Drone CI) with Gitea and Traefik(v2. *), using Docker Compose and Swarm.

Status do Projeto: (Desenvolvimento).

Exibir informações gerais do ambiente Docker.

docker image ls && docker network ls && docker volume ls && docker container ls;

Valide e visualize o arquivo de composição.

docker-compose --file ./docker-compose.yml config;

Criar ou reconstruir serviços e construa imagens em paralelo.

docker-compose --file ./docker-compose.yml build --parallel;

Criar ou reconstruir serviços no modo desanexado.

docker-compose --file ./docker-compose.yml up --detach;

Lista todos os containers do Compose.

docker-compose --file ./docker-compose.yml ps;

Imprimir a versão do Traefik em atividade.

docker exec <"OBTENHA O ID DO COMANDO ANTERIOR"> traefik version;

Imprimir o log do Traefik em atividade.

docker exec <"ID DE UM DETERMINADO CONTÊINER"> cat /var/log/traefik/traefik.log;

docker exec <"ID DE UM DETERMINADO CONTÊINER"> ls /var/log/postgresql

docker exec 823 ls /var/log/postgresql

docker exec gitea_server gitea version docker exec gitea_server gitea --version

docker exec gitea_server gitea admin auth list

docker exec gitea_server gitea doctor

docker exec <"ID DE UM DETERMINADO CONTÊINER"> /var/lib/gitea admin auth list

docker exec 5e gitea auth list

docker exec -it 5e "bash"

Testar se a aplicação está funcionando.

curl -H Host:whoami.docker.localhost https://127.0.0.1 --insecure;

Parar e remover contêineres, redes, imagens e volumes.

docker-compose --file ./docker-compose.yml down; docker-compose --file ./docker-compose.yml rm -f;

DANDO UMA LIMPADA NO AMBIENTE:

Esse comando remove todos os contêineres parados, redes não utilizadas, imagens pendentes e caches de compilação...

É o satanais!!!

docker system prune -a;

OU...

docker stop $(docker ps -a -q) &amp;&amp; docker rm $(docker ps -a -q) && docker rmi $(docker images -q);

docker container stop docker container prune docker volume prune docker image prune docker network prune

e8dff3df-218c-40a2-9022-a1ba67ab3269

https://gitea.docker.localhost/login/oauth/authorize?client_id=e8dff3df-218c-40a2-9022-a1ba67ab3269&redirect_uri=https%3A%2F%2Fdroneserver.docker.localhost%2Flogin&response_type=code&state=4d65822107fcfd52

https://community.containo.us/t/routing-ssh-traffic-with-traefik-v2/717/12

https://developer.okta.com/blog/2017/10/11/developers-guide-to-docker-part-3

https://blog.anoff.io/2019-03-24-self-hosted-gitea-drone/

https://github.com/hamdouni/gitea-drone/blob/master/docker-compose.yml https://www.reddit.com/r/docker/comments/cv689q/connection_refused_when_cloning_from_gitea_in_the/

https://blog.anoff.io/2019-03-24-self-hosted-gitea-drone/

https://www.optimadata.nl/blogs/3/nlm8ci-how-to-run-postgres-on-docker-part-3

https://www.depesz.com/2011/05/06/understanding-postgresql-conf-log/

https://www.reddit.com/r/Traefik/comments/dk1rsj/trying_to_configure_traefic_as_proxy_to_gitea_but/

https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html#traefik

Referências:

Licença

About

Quickstart of a Continuous Delivery service (Drone CI) with Gitea and Traefik(v2. *), using Docker Compose and Swarm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 97.8%
  • Python 2.2%