6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-16 10:05:18 +00:00

Pull vendor images as part of aws deployment

Also, don't run clean script as sudo.
This commit is contained in:
Régis Behmo 2019-03-13 18:28:13 +01:00
parent cf4fe82e0e
commit dabf22282c
3 changed files with 13 additions and 4 deletions

View File

@ -34,6 +34,15 @@ echo "=============== Installing tutor"
sudo curl -L "https://github.com/regisb/tutor/releases/download/latest/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor
sudo chmod +x /usr/local/bin/tutor
echo "=============== Pulling vendor docker images"
docker pull memcached:1.4.38
docker pull mongo:3.2.16
docker pull mysql:5.6.36
docker pull elasticsearch:1.5.2
docker pull nginx:1.13
docker pull rabbitmq:3.6.10
docker pull namshi/smtp:latest
echo "=============== Building docker images"
tutor images env
tutor images build all

View File

@ -1,9 +1,9 @@
#! /bin/bash
# Clean an AWS instance so that it becomes ready for creating an AMI
# See https://aws.amazon.com/articles/how-to-share-and-use-public-amis-in-a-secure-manner/
# Run with: curl -sSL https://raw.githubusercontent.com/regisb/tutor/master/cloud/clean.sh | sudo bash -e
# Run with: curl -sSL https://raw.githubusercontent.com/regisb/tutor/master/cloud/clean.sh | bash -e
echo "=============== Clean authorized keys"
find / -name "authorized_keys" -exec rm -f {} \;
sudo find / -name "authorized_keys" -exec rm -f {} \;
echo "=============== Clean history"
find /root/.*history /home/*/.*history -exec rm -f {} \;
sudo find /root/.*history /home/*/.*history -exec rm -f {} \;

View File

@ -68,7 +68,7 @@ services:
# Simple SMTP server
smtp:
image: namshi/smtp
image: namshi/smtp:latest
restart: unless-stopped
############# Forum