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
# ec2にswapを追加するコマンド | |
# | |
# [使い方] | |
# shellに保存してsudoで実行すること。 | |
# | |
# [変数] | |
# _T_SWAP_PATH : スワップファイルのパス領域 | |
# _T_SWAP_SIZE : スワップサイズ Mbyte | |
# | |
# 参考 |
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
# ec2に拡張diskを追加するスクリプト | |
# | |
# [使い方] | |
# shellに保存してsudoで実行すること。 | |
# lsblkを使うと外部ディスクの容量を把握することはできる。 | |
# fstabに書いているので認識させるためには、実行後に再起動が必要。 | |
# | |
# [変数] | |
# _T_ADD_DISK : 接続先の追加disk領域 | |
# |
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
# 参考 | |
# https://xvideos.hatenablog.com/entry/move_docker_location | |
# 使い方 | |
# _T_DATAPATH 変数にコンテナ配備先のパスを設定する | |
_T_DATAPATH=/data/docker && | |
sudo mkdir $_T_DATAPATH && | |
sudo systemctl stop docker && | |
_T_DATAPATH_S=`echo $_T_DATAPATH | sed -e "s/\\//\\\\\\\\\\//g"`&& | |
sudo cp /lib/systemd/system/docker.service /etc/systemd/system/ && |
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 git && | |
pushd git && | |
git clone https://github.com/yamada28go/pleasanter-docker-PostgreSQL.git && | |
pushd pleasanter-docker-PostgreSQL && | |
git checkout ssl && | |
docker-compose build --no-cache && | |
docker-compose up -d pleasanter-web postgres-db && | |
sleep 30 && | |
docker ps | grep leasanter-web | cut -d' ' -f 1 | xargs -I {} docker exec {} cmdnetcore/codedefiner.sh && | |
docker-compose stop |
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
# 参考 | |
# Amazon Linux 2でdocker、docker-composeを使う(2019年5月) | |
# memo | |
# 以下コマンドの実行完了したタイミングでログインしなおす必要があります。 | |
sudo yum update -y && | |
sudo yum install -y docker && | |
sudo yum install -y wget emacs-nox git && | |
sudo service docker start && | |
sudo systemctl enable docker.service && |