docker-blue-green-runner

(★ 157)

By simply configuring the .env file, a safe isomorphic Blue-Green Deployment is instantly set up.

  • .env.example
  • .env.example.java
  • .env.example.java.commercial.ssl.sample
  • .env.example.node
  • .env.example.php
  • .env.example.php.production.build
  • .env.example.php.production.remote
  • .gitignore
  • apply-security.sh
  • check-current-states.sh
  • check-remote-current-states.sh
  • check-source-integrity.sh
  • docker-compose-app-original.yml
  • docker-orchestration-app-nginx-original.yml
  • docker-stack-app-original-blue.yml
  • docker-stack-app-original-green.yml
  • emergency-all-down-and-up.sh
  • emergency-nginx-down-and-up.sh
  • emergency-nginx-restart.sh
  • nginx-blue-green-activate.sh
  • nginx-blue-green-reset.sh
  • prevent-crlf.sh
  • push-to-git.sh
  • README.md
  • remove-all-images.sh
  • rollback.sh
  • run.sh
  • stop-all-containers.sh
  • use-app.sh
  • use-common.sh
  • use-nginx.sh
  • use-remote-deployment.sh
  • use-states.sh
  • validator.sh
  • wait-for-it.sh

# 설치 가이드

1. 코드 내려받기
git clone https://github.com/patternhelloworld/docker-blue-green-runner

깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.

cd docker-blue-green-runner

방금 내려받은 프로젝트 폴더 안으로 이동합니다.

2. Docker

쉬움 추천
사전 준비물
  • Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
  • Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
- [Check Source Integrity of 'Docker-Blue-Green-Runner'](#check-source-integrity-of-docker-blue-green-runner)

이 명령어를 터미널에 그대로 입력해 실행하세요.

- [Docker Swarm](#docker-swarm)

이 명령어를 터미널에 그대로 입력해 실행하세요.

- Docker-Blue-Green-Runner's `run.sh` script is designed to simplify deployment: "With your `.env`, project, and a single Dockerfile, simply run 'bash run.sh'." If you prefer not to use `sudo`, see [WITH_SUDO](#with_sudo), set it in your `.env`, and run `apply-security.sh` first. This script covers the entire process from Dockerfile build to server deployment from scratch.

이 명령어를 터미널에 그대로 입력해 실행하세요.

- In contrast, Traefik requires the creation and gradual adjustment of various configuration files, which requires your App's docker binary running.

이 명령어를 터미널에 그대로 입력해 실행하세요.

- Remote servers receive the image binary and execute the same pipeline with `GIT_IMAGE_LOAD_FROM=file` (see [Production > GIT_IMAGE_LOAD_FROM=file](#1-git_image_load_fromfile-strategy-without-docker-registry)).

이 명령어를 터미널에 그대로 입력해 실행하세요.

터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.

이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.

// repository documentation