Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af91a4ed authored by thilo's avatar thilo
Browse files

Add bootstrap-mail-drive.sh

parent f3155906
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
#!/bin/bash

################################################################################
# closed repo during test-phase, will be public later - testing with my account
USER=thilo
BOOTSTRAPREPO=https://${USER}@gitlab.e.foundation/e/priv/cloud/compose.git
apt-get update && apt install -y --asume-yes true git salt-minion
################################################################################


# Clone repo
echo "Cloning repo .."
git -C /mnt clone $BOOTSTRAPREPO repo-base
ln -s /mnt/repo-base /mnt/docker


# Init salt-minion (masterless)
cp /mnt/repo-base/deployment/salt/init-config/masterless.conf /etc/salt/minion.d/

# Run repo init (might run a few minutes)
echo "System update and pacakges installation .."
salt-call state.apply init-repo

# Login to /e/ registry | not necessary when going public
docker login registry.gitlab.e.foundation:5000