GithubHelp home page GithubHelp logo

haru-study-init's Introduction

haru-study-init

초기 ubuntu EC2에서 haru study의 WAS, Promtail 컨테이너를 빠르게 설치하는 가이드 레포

1. 초기 설정 파일 다운로드

새 EC2 인스턴스에 도커 컨테이너를 띄우기 위한 init.sh, 환경 변수를 저장할 .env 파일을 내려받는다

wget https://raw.githubusercontent.com/jaehee329/haru-study-config/main/init.sh
wget https://raw.githubusercontent.com/jaehee329/haru-study-config/main/.env

2. 환경 변수 설정

.env 파일을 열어 서버에 맞는 환경 변수 정보로 수정한다
ex)

export LOKI_ADDRESS="http://123.456.789.000:3100"

LOKI 디렉토리 및 포트 번호, 사용할 스프링 profile의 이름 등을 지정한다

3. init.sh 실행

./init.sh

필요한 설치가 끝나고 docker container가 아래와 같이 두 개 뜨면 성공이다

sudo docker ps -a
image


이후 GitHub Action을 통해 브랜치를 지정하고 CD를 수행하면 정상적으로 애플리케이션이 올라간다.

haru-study-init's People

Contributors

jaehee329 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.