aboutsummaryrefslogtreecommitdiff
path: root/plugins/ObjectCacheServer/server/container/run.sh
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-03-10 15:50:07 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-03-10 15:50:07 -0400
commit323ff67badfc46ad638d75f059d60d9425ccb2fa (patch)
tree6f4d824eaea0f4c433f98c0685bf66c06b30e16a /plugins/ObjectCacheServer/server/container/run.sh
parent5d4192880654fd6e00e587814169415b42621327 (diff)
ci(server): Conainerize and add vncache server packages
Diffstat (limited to 'plugins/ObjectCacheServer/server/container/run.sh')
-rw-r--r--plugins/ObjectCacheServer/server/container/run.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/ObjectCacheServer/server/container/run.sh b/plugins/ObjectCacheServer/server/container/run.sh
new file mode 100644
index 0000000..2c2636c
--- /dev/null
+++ b/plugins/ObjectCacheServer/server/container/run.sh
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+#this script will be invoked by dumb-init in the container on statup and is located at /app
+
+rm -rf config && mkdir config
+
+#substitude all -template files in the config-templates dir and write them to the config dir
+for file in config-templates/*-template.json; do
+ envsubst < $file > config/$(basename $file -template.json).json
+done
+
+cp usr/assets/* plugins/assets/ -rf
+
+#start the server
+dotnet webserver/VNLib.WebServer.dll --config config/config.json $SERVER_ARGS \ No newline at end of file