mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-16 06:18:34 +02:00
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
This commit is contained in:
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@@ -49,5 +49,8 @@ Vagrant.configure(VAGRANT_CONFIG_VERSION) do |config|
|
|||||||
|
|
||||||
# SSH configuration
|
# SSH configuration
|
||||||
d.has_ssh = true
|
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
|
||||||
end
|
end
|
||||||
|
|||||||
14
docker/tell-user-to-reboot-vagrant.sh
Normal file
14
docker/tell-user-to-reboot-vagrant.sh
Normal file
@@ -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 "*******************************************************************"
|
||||||
Reference in New Issue
Block a user