動かざることバグの如し

近づきたいよ 君の理想に

install memo

rbenv

# apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev libjemalloc-dev
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.4

/etc/profile.d/rbenv.sh chmod +x 必須

export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
  export PATH="${RBENV_ROOT}/bin:${PATH}"
  eval "$(rbenv init -)"
fi
rbenv global 2.6.4
gem update --system
gem install bundler

cert-bot

as root

git clone --depth 1 https://github.com/certbot/certbot
/root/certbot/certbot-auto  plugins
/opt/eff.org/certbot/venv/bin/pip install certbot-dns-route53
/root/certbot/certbot-auto  plugins
/root/certbot/certbot-auto certonly --dns-route53 -d 'turai.work' -d '*.turai.work' --email xxxxxx@gmail.com --agree-tos -n

docker

apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
apt-get install docker-ce docker-ce-cli
adduser thr3a docker # 再ログイン必須
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
chmod +x /usr/local/bin/docker-compose

nodejs

curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt-get update && sudo apt-get install -y nodejs yarn

raspiのIP登録