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:
parent
cf4fe82e0e
commit
dabf22282c
@ -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
|
||||
|
@ -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 {} \;
|
||||
|
@ -68,7 +68,7 @@ services:
|
||||
|
||||
# Simple SMTP server
|
||||
smtp:
|
||||
image: namshi/smtp
|
||||
image: namshi/smtp:latest
|
||||
restart: unless-stopped
|
||||
|
||||
############# Forum
|
||||
|
Loading…
Reference in New Issue
Block a user