brew install gh
brew install gpg
brew install --cask keybase
keybase pgp gen --multi
from dataclasses import dataclass | |
from typing import List | |
import yaml | |
import os | |
IMPORT_TEMP_FILE="__import_temp.tf" | |
IMPORT_CONFIG_FILE="import_config.yaml" | |
### Keybase proof | |
I hereby claim: | |
* I am bogyie on github. | |
* I am bogyie (https://keybase.io/bogyie) on keybase. | |
* I have a public key ASDOkEwZg5f_1-HaVswLW0zNdNPVmj9-KkIKCKSddO1iIgo | |
To claim this, I am signing this object: |
import os | |
import os.path as path | |
import gzip | |
import tarfile | |
import time | |
from functools import partial | |
from typing import Generator, List, Callable, Tuple | |
import logging | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install startship | |
brew install awscli | |
brew install bat | |
brew install asdf | |
brew install terraform | |
brew install ansible | |
brew install sops | |
brew install gh |
[Unit] | |
Description=Spring Boot Application | |
After=syslog.target | |
[Service] | |
User=ubuntu | |
ExecStart=/usr/bin/java -jar /home/ubuntu/app.jar | |
SuccessExitStatus=143 | |
[Install] |
name: Blue-Green Deploy to AWS EC2 | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
# build | |
FROM node:17-alpine as builder | |
WORKDIR /app | |
COPY package*.json ./ | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
# publish |
mkdir "$HOME/jenkins_home" | |
docker-compose up -d | |
echo "Jenkins 구성중..." | |
while [ ! -f $HOME/jenkins_home/secrets/initialAdminPassword ]; do sleep 1; done | |
echo "초기 비밀번호" | |
cat "$HOME/jenkins_home/secrets/initialAdminPassword" | |
echo "" |