https://github.com/tedilabs/fastcampus-devops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 클래스 : 객체를 대표하는 이름(Type) | |
class Polygon { | |
int edge; | |
int vertex; | |
void Polygon(int edge, int vertex) { | |
this.edge = edge; | |
this.vertex = vertex; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build | |
FROM node:17-alpine as builder | |
WORKDIR /app | |
COPY package*.json ./ | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
# publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Blue-Green Deploy to AWS EC2 | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Spring Boot Application | |
After=syslog.target | |
[Service] | |
User=ubuntu | |
ExecStart=/usr/bin/java -jar /home/ubuntu/app.jar | |
SuccessExitStatus=143 | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
OlderNewer