summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorJSON Derulo <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-01-21 18:52:51 -0500
committerGitHub <noreply@github.com>2025-01-21 18:52:51 -0500
commitc1ebbc4b02c2e4fcb81661f2c0e87cd4f3f71147 (patch)
tree646a2a8fb4e099e9600f5bddb94607aaa8b69c24 /backend
downloadDecky-Framegen-c1ebbc4b02c2e4fcb81661f2c0e87cd4f3f71147.tar.gz
Decky-Framegen-c1ebbc4b02c2e4fcb81661f2c0e87cd4f3f71147.zip
Initial commit
Diffstat (limited to 'backend')
-rw-r--r--backend/Dockerfile9
-rw-r--r--backend/Makefile14
-rwxr-xr-xbackend/entrypoint.sh8
-rw-r--r--backend/src/main.c5
4 files changed, 36 insertions, 0 deletions
diff --git a/backend/Dockerfile b/backend/Dockerfile
new file mode 100644
index 0000000..f46e170
--- /dev/null
+++ b/backend/Dockerfile
@@ -0,0 +1,9 @@
+# we support images for building with a vanilla SteamOS base,
+# or versions with ootb support for rust or go
+# developers can also customize these images via this Dockerfile
+#FROM ghcr.io/steamdeckhomebrew/holo-toolchain-rust:latest
+#FROM ghcr.io/steamdeckhomebrew/holo-toolchain-go:latest
+FROM ghcr.io/steamdeckhomebrew/holo-base:latest
+
+# entrypoint.sh should always be located in the backend folder
+ENTRYPOINT [ "/backend/entrypoint.sh" ] \ No newline at end of file
diff --git a/backend/Makefile b/backend/Makefile
new file mode 100644
index 0000000..a1e5dc5
--- /dev/null
+++ b/backend/Makefile
@@ -0,0 +1,14 @@
+# This is the default target, which will be built when
+# you invoke make
+.PHONY: all
+all: hello
+
+# This rule tells make how to build hello from hello.cpp
+hello:
+ mkdir -p ./out
+ gcc -o ./out/hello ./src/main.c
+
+# This rule tells make to delete hello and hello.o
+.PHONY: clean
+clean:
+ rm -f hello \ No newline at end of file
diff --git a/backend/entrypoint.sh b/backend/entrypoint.sh
new file mode 100755
index 0000000..af04d23
--- /dev/null
+++ b/backend/entrypoint.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`"
+
+cd /backend
+
+make \ No newline at end of file
diff --git a/backend/src/main.c b/backend/src/main.c
new file mode 100644
index 0000000..b3b8fed
--- /dev/null
+++ b/backend/src/main.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+int main() {
+ printf("Hello World\n");
+ return 0;
+} \ No newline at end of file