ターミナルにはfishがインストールされている。
event-sandboxはプロジェクトの名前なので適宜読み替えること。
$ mkdir event-sandbox; and cd event-sandbox;
## Add Gem files | |
gemの名前 | 内容 | |
--------------------- | --------------------------------------------- | |
sidekiq | 非同期処理を実現する | |
active_decorator | レイヤーを追加する | |
pry-rails | pryでrails consoleを利用できる | |
pry-byebug | pryでステップ実行ができる | |
hirb | モデル出力を整形して表示 | |
hirb-unicode | マルチバイト文字を問題なく表示 |
#!/bin/bash | |
ruby_version=2.4.0 | |
vendor_path=./vendor/bundler/ | |
echo '初期化処理実行開始....' | |
if [ ! -e .ruby_version ]; then | |
rbenv local $ruby_version | |
fi |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
#!/usr/bin/env bash | |
echo 'uninstall_gems' | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list |
以下転載:
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
FROM centos:centos6.8 | |
# update & clean | |
RUN yum update -y; yum clean all; | |
# support Japanese | |
RUN yum -y groupinstall "Japanese Support"; yum clean all; | |
# install sudo | |
RUN yum install -y sudo git wget curl tree; yum clean all; |