From: alex Date: Sat, 3 Apr 2021 21:52:35 +0000 (-0700) Subject: project creation X-Git-Tag: v1.0.0~2 X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=3bc095c112973087e86aaefc267b0b233e41fe7e;p=seeder project creation --- 3bc095c112973087e86aaefc267b0b233e41fe7e diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..31d55c5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM debian:latest + +ENTRYPOINT bash diff --git a/Makefile b/Makefile new file mode 100644 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) +