Move backend stuff to backend folder
This commit is contained in:
parent
9408c16461
commit
1b06bdc812
14 changed files with 31 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -41,7 +41,6 @@ yalc.lock
|
||||||
|
|
||||||
# ignore Rust compiler files
|
# ignore Rust compiler files
|
||||||
/backend-rs/target
|
/backend-rs/target
|
||||||
backend
|
|
||||||
/bin/backend
|
/bin/backend
|
||||||
|
|
||||||
# packaged teasers
|
# packaged teasers
|
||||||
|
|
0
backend-rs/Cargo.lock → backend/Cargo.lock
generated
0
backend-rs/Cargo.lock → backend/Cargo.lock
generated
9
backend/Dockerfile
Normal file
9
backend/Dockerfile
Normal file
|
@ -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" ]
|
14
backend/Makefile
Normal file
14
backend/Makefile
Normal file
|
@ -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
|
8
backend/entrypoint.sh
Executable file
8
backend/entrypoint.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`"
|
||||||
|
|
||||||
|
cd /backend
|
||||||
|
|
||||||
|
make
|
Loading…
Reference in a new issue