amarisoft/callbox: Add job definitions and scripts for file server

BUG=b:248293289
TEST=deploy to callbox, run curl/wget of paths at localhost:9986
  on callbox itself

Change-Id: Ie6d1764c11472209ce5ac52d40594128ce771cf8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/4598042
Commit-Queue: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Andrew Lassalle <andrewlassalle@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
diff --git a/src/chromiumos/test/callbox/amarisoft/file_server.service b/src/chromiumos/test/callbox/amarisoft/file_server.service
new file mode 100644
index 0000000..7d53bbf
--- /dev/null
+++ b/src/chromiumos/test/callbox/amarisoft/file_server.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=CROS cellular callbox test file server
+After=lte.service
+StartLimitIntervalSec=0
+[Service]
+Type=simple
+Restart=always
+RestartSec=1
+User=root
+ExecStart=/root/file_server/target/release/file_server
+
+[Install]
+WantedBy=multi-user.target
diff --git a/src/chromiumos/test/callbox/amarisoft/setup4G.sh b/src/chromiumos/test/callbox/amarisoft/setup4G.sh
index e529247..5b3ee18 100644
--- a/src/chromiumos/test/callbox/amarisoft/setup4G.sh
+++ b/src/chromiumos/test/callbox/amarisoft/setup4G.sh
@@ -22,4 +22,5 @@
 
 cd "${dir}"
 source setupCrosServer.sh
+source setupFileServer.sh
 source setupDNS.sh
diff --git a/src/chromiumos/test/callbox/amarisoft/setupFileServer.sh b/src/chromiumos/test/callbox/amarisoft/setupFileServer.sh
new file mode 100644
index 0000000..130cd7d
--- /dev/null
+++ b/src/chromiumos/test/callbox/amarisoft/setupFileServer.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -e
+#
+# Copyright 2023 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# Sets up the web server on the amarisoft callbox.
+
+# If cargo is not installed:
+#   curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+
+systemctl stop file_server
+cp file_server.service /etc/systemd/system/
+cp -r file_server /root/ || exit
+cargo build --manifest-path /root/file_server/Cargo.toml --release
+systemctl daemon-reload
+systemctl enable file_server
+systemctl start file_server