Skip to content

Instantly share code, notes, and snippets.

View Bogyie's full-sized avatar

김보경/DAXTF Bogyie

View GitHub Profile
@Bogyie
Bogyie / import.py
Created January 18, 2024 09:56
terraform import
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:
@Bogyie
Bogyie / setup_gpg_on_macos_with_keybase_for_github_verify.md
Last active October 16, 2023 08:03
Setup GPG on MacOS with keybase for Github verify

Install tools

brew install gh
brew install gpg
brew install --cask keybase

Create GPG key

keybase pgp gen --multi
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
@Bogyie
Bogyie / 1_install
Last active July 12, 2023 00:31
mac
/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
@Bogyie
Bogyie / app.service
Created March 13, 2023 12:48
Deploy java project to AWS EC2
[Unit]
Description=Spring Boot Application
After=syslog.target
[Service]
User=ubuntu
ExecStart=/usr/bin/java -jar /home/ubuntu/app.jar
SuccessExitStatus=143
[Install]
@Bogyie
Bogyie / blue-green.yaml
Created March 13, 2023 12:25
Blue-Green Deploy to AWS EC2
name: Blue-Green Deploy to AWS EC2
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
@Bogyie
Bogyie / Dockerfile
Created December 30, 2022 03:38
vue build and depoloy with nginx
# build
FROM node:17-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# publish
@Bogyie
Bogyie / start_jenkins.sh
Created December 30, 2022 03:33
start jenkins
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 ""