initial commit.

This commit is contained in:
m1k1o
2021-03-07 17:58:15 +01:00
commit 22111c8995
25 changed files with 1281 additions and 0 deletions
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
cd "$(dirname "$0")"
docker build -t neko_rooms_img ..
./rebuild
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
cd "$(dirname "$0")"
docker run -it \
--name "neko_rooms_dev" \
--entrypoint="go" \
--volume "${PWD}/../:/app" \
neko_rooms_img "$@";
#
# commit changes to image
docker commit "neko_rooms_dev" "neko_rooms_img"
#
# remove contianer
docker rm "neko_rooms_dev"
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
cd "$(dirname "$0")"
set -e
docker run --rm -it \
-v "${PWD}/../:/app" \
--entrypoint="/app/build" \
neko_rooms_img;
./start
Executable
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
cd "$(dirname "$0")"
docker run --rm -it \
--name "neko_rooms" \
-p "8080:8080" \
-v "${PWD}/../:/app" \
-e 'DOCKER_API_VERSION=1.39' \
-v "/var/run/docker.sock:/var/run/docker.sock" \
neko_rooms_img serve --bind :8080;