Git Product home page Git Product logo

itamae-shugyo's Introduction

How to use

Sa-ba-ku

  • Sa-ba-ku with .env
$ export $(cat .env | grep -v ^# | xargs); ./sabaku.sh

Preparation

  • Create YOUR .env

  • Global install is required.

$ gem install itamae

# For Ed25519
$ gem install ed25519
$ gem install bcrypt_pbkdf

$ gem install dotenv

Create remote files (Optional)

  • If you wanna copy /source_path/to to remote machine's /target_path/to, please write as below
remote_file '/target_path/to' do
  source '/source_path/to'
  content 'Describe detail'
  owner 'root'
  group 'root'
end

What's this?

Tips for Sa-ba-ku

  • The word sabaku which contains in sabaku.sh is Japanese verb word 捌く(Sa-ba-ku), which means to deal with foodstuff well

Note

  • I've been training as Itamae, that is SHUGYO-CHU (under training)
    • So this repository name is Itamae Shugyo
  • best practice

Thanks

TODO

  • 冪等 (Idempotent) になるように修正する
    • 例えば、AWS ならば swapfile の存否で分岐させる
  • 粒度と DRY を意識したリファクタリング

Additional recipe

  • Some recipes for arm (Raspberry Pi)
  • A role for ConoHa
  • git-lfs
  • nginx
  • redis
  • tig
  • mongodb
  • heroku-cli

How to provision to ConoHa via GUI

Ubuntu case (Username is ubuntu)

  • Add Server with SSH Key option
  • Login console by root (With either web browser or terminal)
  • Execute below commands
# adduser ubuntu
# echo ubuntu ALL=NOPASSWD: ALL >> /etc/sudoers
# mkdir /home/ubuntu/.ssh
# chown ubuntu:ubuntu /home/ubuntu/.ssh && chmod 700 /home/ubuntu/.ssh
# cp /root/.ssh/authorized_keys /home/ubuntu/.ssh
# chown ubuntu:ubuntu /home/ubuntu/.ssh/authorized_keys && chmod 600 /home/ubuntu/.ssh/authorized_keys
  • Do Itamae with SSH Key
    • Confirm server's IP Address

Best Practice (From official documentation)

LICENSE

itamae-shugyo's People

Contributors

nikukyugamer avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

itamae-shugyo's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

Add Japanese fonts

$ sudo apt-get install fontconfig
$ wget --content-disposition IPAfont00303.zip http://ipafont.ipa.go.jp/old/ipafont/IPAfont00303.php
$ sudo unzip IPAfont00303.zip -d /usr/share/fonts/
$ sudo fc-cache -fv

Add Docker and Docker Compose

Docker

$ sudo apt-get install apt-transport-https ca-certificates curl gnupg software-properties-common
$ sudo apt-key fingerprint 0EBFCD88
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ sudo usermod -aG docker ubuntu

Docker Compose

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

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.