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:
Andrew Shu
2025-01-13 00:13:33 -08:00
committed by Deimos
parent cb6c1ea43d
commit 49f2c09258
2 changed files with 17 additions and 0 deletions

3
Vagrantfile vendored
View File

@@ -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

View 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 "*******************************************************************"