Browse Source

Tell user to reboot Docker container after initial provisioning

This is needed so systemd services are properly monitored
by systemctl3.py in the Docker container.

Closes tildes-community/tildes-cf#13

See merge request tildes-community/tildes-cf!4
develop
Andrew Shu 1 month ago
parent
commit
23e16ad121
  1. 3
      Vagrantfile
  2. 14
      docker/tell-user-to-reboot-vagrant.sh

3
Vagrantfile

@ -49,5 +49,8 @@ Vagrant.configure(VAGRANT_CONFIG_VERSION) do |config|
# SSH configuration
d.has_ssh = true
# Tell user to restart Docker container after Ansible provisioning
override.vm.provision "shell", path: "./docker/tell-user-to-reboot-vagrant.sh"
end
end

14
docker/tell-user-to-reboot-vagrant.sh

@ -0,0 +1,14 @@
#!/bin/sh
echo "*******************************************************************"
echo
echo
echo " If this is the first time provisioning the Docker container,"
echo " PLEASE RESTART THE CONTAINER, so systemd services run properly!"
echo
echo " Run:"
echo
echo " $ vagrant halt && vagrant up --provider=docker"
echo
echo
echo "*******************************************************************"
Loading…
Cancel
Save