
DUBLIN=dublin-store
ROCHE=roche-website
DEDALUS=dedalus-infrastructure

# Fix locale
#locale-gen en_US.UTF-8

# Update the base system
apt-get -qy install	\
#	git		\
	pwgen

# Shared data diretory for all containers
mkdir -p /docker/apache2

pwgen 7 1 > /docker/master-password.txt

# Clone or update repos
cd /docker

if test -d ${DUBLIN}; then
	cd ${DUBLIN}; git pull; cd -;
else
	git clone https://github.com/beijingren/${DUBLIN}.git
fi

if test -d ${ROCHE}; then
	cd ${ROCHE}; git pull; cd -;
else
	git clone https://github.com/beijingren/${ROCHE}.git
fi

if test -d ${DEDALUS}; then
	cd ${DEDALUS}; git pull; cd -
else
	git clone https://github.com/beijingren/${DEDALUS}.git
fi


DUBLIN=dublin-store
ROCHE=roche-website
DEDALUS=dedalus-infrastructure

# Shared data diretory for all containers
mkdir -p /docker/apache2

echo -n "iSoof4Vo" > /docker/master-password.txt

# Clone or update repos
cd /docker

if test -d ${DUBLIN}; then
	cd ${DUBLIN}; git pull; cd -;
else
	git clone https://github.com/beijingren/${DUBLIN}.git
fi

if test -d ${ROCHE}; then
	cd ${ROCHE}; git pull; cd -;
else
	git clone https://github.com/beijingren/${ROCHE}.git
fi

if test -d ${DEDALUS}; then
	cd ${DEDALUS}; git pull; cd -
else
	git clone https://github.com/beijingren/${DEDALUS}.git
fi

Remove apt-get, static pw for now
Remove apt-get, static pw for now
