Remove 'hub' alias. Add some vagranty stuff.

This commit is contained in:
Anna Rose 2019-04-03 13:33:11 -04:00
parent 2e27b494ad
commit 7078e150d8
No known key found for this signature in database
GPG Key ID: CAA339DBB768ACC7
2 changed files with 29 additions and 1 deletions

View File

@ -2,7 +2,6 @@ alias unlock="lpass show -c --password"
alias arduino-serial="busybox microcom -t 9600 /dev/ttyUSB0"
alias grep='LC_ALL="C" grep'
alias bt='transmission-remote'
alias git='hub'
alias dockviz="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz"
alias timestamp="date -u +'%Y%m%d%H%M%S'"
alias go='docker run --rm -it -v $(pwd):/go/src/ -w /go/src golang:1.11 go'

29
provision-host.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
#
# Must be run as root / sudo
dnf -y install emacs git tmux gnupg2 dnf-plugins-core make go pinentry
# docker
dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
dnf -y install docker-ce docker-ce-cli containerd.io
systemctl enable docker
systemctl start docker
# docker-machine
DOCKER_MACHINE_URL=https://github.com/docker/machine/releases/download/v0.16.0
curl -L $DOCKER_MACHINE_URL/docker-machine-$(uname -s)-$(uname -m) > /tmp/docker-machine
install /tmp/docker-machine /usr/local/bin/docker-machine
# docker-compose
DOCKER_COMPOSE_URL=https://github.com/docker/compose/releases/download/1.23.2
curl -L $DOCKER_COMPOSE_URL/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod 755 /usr/local/bin/docker-compose
# If we want vagrant to work
# dnf -y install libvirt-devel libvirt-glib-devel gcc
# Security
sed -i 's/^.*PubkeyAuthentication.*$/PubkeyAuthentication yes/' /etc/ssh/sshd_config
sed -i 's/^.*PasswordAuthentication.*$/PasswordAuthentication no/' /etc/ssh/sshd_config
service sshd restart