]> infiniteadaptability.org Git - seeder/commitdiff
project creation
authoralex <[email protected]>
Sat, 3 Apr 2021 21:52:35 +0000 (14:52 -0700)
committeralex <[email protected]>
Sat, 3 Apr 2021 21:52:35 +0000 (14:52 -0700)
Dockerfile [new file with mode: 0644]
Makefile [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..31d55c5
--- /dev/null
@@ -0,0 +1,3 @@
+FROM debian:latest
+
+ENTRYPOINT bash
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..d0f616a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+IMAGE_NAME=seeder
+CONTAINER_NAME=seeder-test
+build:
+       docker build -t $(IMAGE_NAME) .
+
+run: build
+       docker run -d \
+               -p "8080:8080" \
+               --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
+               --name $(CONTAINER_NAME) \
+               $(IMAGE_NAME)
+
+start: build
+       -docker run -it --rm \
+               --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
+               -p "8080:8080" \
+               $(IMAGE_NAME)
+
+stop:
+       docker stop $(CONTAINER_NAME)
+       docker rm $(CONTAINER_NAME)
+