yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce-18.09.7 docker-ce-cli-18.09.7 containerd.io-1.2.5
service docker start
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
echo "vm.max_map_count=262144" >> /etc/sysctl.conf
sysctl -p
cd *-docker/
alias dc=docker-compose
HOST=$(hostname -s | sed 's|neb-||g')
dc build $HOST && dc up -d $HOST && dc logs -f $HOST
Last active
February 16, 2020 16:52
-
-
Save kalloc/11604e82b7f9b85045d42b5a3d065131 to your computer and use it in GitHub Desktop.
centos-mouse-guide.md
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
set mouse=n | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on |
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
set ttymouse=xterm2 | |
set mouse=a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mkdir /opt/elasticsearch
echo "/dev/sdb1 /opt/elasticsearch ext4 defaults 1 2" >> /etc/fstab
mount -a
mkdir /opt/elasticsearch/data
chown 1000:100 /opt/elasticsearch/data
cd *-docker/
alias dc=docker-compose
HOST=$(hostname -s | sed 's|neb-||g')
mkdir /opt/elasticsearch/logs;
chown 1000:1000 /opt/elasticsearch/logs;
dc up --build -d $HOST && dc logs -f $HOST