bootlint/setup_droplet.sh

22 строки
576 B
Bash
Исходник Обычный вид История

2014-11-04 06:39:01 +03:00
#!/bin/bash
# set to Pacific Time (for @cvrebert)
# ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
# remove useless crap
aptitude remove wpasupplicant wireless-tools
aptitude remove pppconfig pppoeconf ppp
# setup firewall
ufw default allow outgoing
ufw default deny incoming
ufw allow ssh
ufw allow www
ufw enable
ufw status verbose
2015-02-07 04:45:03 +03:00
# setup Docker; written against Docker v1.5.0
2014-11-04 06:39:01 +03:00
docker build . 2>&1 | tee docker.build.log
IMAGE_ID="$(tail -n 1 docker.build.log | cut -d ' ' -f 3)"
2015-02-07 04:45:03 +03:00
docker run --read-only -d -p 127.0.0.1:7070:7070 --name bootlint $IMAGE_ID