mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 21:02:53 -05:00
refac(docker): half the Docker image size due to deferment of compilation (#7227)
* Merge into master (#11) * Made the workflow build multiple images for simplicity * New method * Trying workflow * Finalize * Reset package files to upstream/master * Edit workflow according to @si458 * Whoops accidentally removed these. Back again. --------- Co-authored-by: Daan Selen <dselen@systemec.nl> * Integrate the syslog compiler * Changed logging accordingly. * Looks to be a working prototype * chore(docker): bump alpine version * feat: make simon less anxious :P --------- Co-authored-by: Daan Selen <dselen@systemec.nl>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
graceful_shutdown() {
|
||||
echo "Received SIGTERM. Cleaning up..."
|
||||
node /opt/meshcentral/meshcentral/meshcentral --stop
|
||||
echo "Received SIGTERM from the container host. Cleaning up..."
|
||||
kill -SIGINT $meshcentral_pid
|
||||
|
||||
echo "MeshCentral process stopped. Exiting..."
|
||||
exit 0
|
||||
@@ -11,6 +11,8 @@ trap graceful_shutdown SIGTERM
|
||||
|
||||
### Start MeshCentral Docker Container.
|
||||
|
||||
# Make the start more cleared when restarted.
|
||||
echo "-------------------------------------------------------------"
|
||||
date
|
||||
echo "Config file: $CONFIG_FILE"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user