Giter Club home page Giter Club logo

infra-subway-deploy's Introduction

npm node Website GitHub


인프라공방 샘플 서비스 - 지하철 노선도


🚀 Getting Started

Install

npm 설치

cd frontend
npm install

frontend 디렉토리에서 수행해야 합니다.

Usage

webpack server 구동

npm run dev

application 구동

./gradlew clean build

미션

  • 미션 진행 후에 아래 질문의 답을 README.md 파일에 작성하여 PR을 보내주세요.

0단계 - pem 키 생성하기

  1. 서버에 접속을 위한 pem키를 구글드라이브에 업로드해주세요

  2. 업로드한 pem키는 무엇인가요.

  • soosue-key.pem

1단계 - 망 구성하기

  1. 구성한 망의 서브넷 대역을 알려주세요
  • 대역 :
    • soosue-public-a : 192.168.3.0/26
    • soosue-public-c : 192.168.3.64/26
    • soosue-internal-a : 192.168.3.128/27
    • soosue-management-c : 192.168.3.160/27
  1. 배포한 서비스의 공인 IP(혹은 URL)를 알려주세요

2단계 - 배포하기

  1. TLS가 적용된 URL을 알려주세요

3단계 - 배포 스크립트 작성하기

  1. 작성한 배포 스크립트를 공유해주세요.
  #!/bin/bash
  
  txtrst='\033[1;37m' # White
  txtred='\033[1;31m' # Red
  txtylw='\033[1;33m' # Yellow
  txtpur='\033[1;35m' # Purple
  txtgrn='\033[1;32m' # Green
  txtgra='\033[1;30m' # Gray
  
  echo -e "${txtylw}=======================================${txtrst}"
  echo -e "${txtgrn}  << 스크립트 🧐 >>${txtrst}"
  echo -e "${txtylw}=======================================${txtrst}"
  
  BRANCH=soosue
  
  function check_df() {
          git fetch
          local=$(git rev-parse $BRANCH)
          remote=$(git rev-parse origin/$BRANCH)
  
          if [[ $local == $remote ]]; then
                  echo -e "[$(date)] Nothing to do!!!"
                  read -p "continue? y/n > " input
                  if [[ $input == y ]]; then
                          echo -e ""
                  else
                          exit 1
                  fi
          fi
  }
  
  function pull() {
          echo -e ""
          echo -e ">> Pull from the remote "
          git pull origin $BRANCH
  }
  
  function build() {
          ./gradlew clean build
  }
  
  function kill_app() {
          pid=$(pgrep -f java)
          kill -9 $pid
  }
  
  function start_app() {
          nohup java -Djava.security.egd=file:/dev/./urandom -Dserver.port=8081 -Dspring.profiles.active=prod -jar ./build/libs/subway-0.0.1-SNAPSHOT.jar 1> ./log 2>&1 &
  }
  
  check_df;
  pull;
  build;
  kill_app;
  start_app;

infra-subway-deploy's People

Contributors

brainbackdoor avatar soosue 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.