From 0e76cad5d7485319395bbc3e74dad5ac434358cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 22 Jan 2022 10:27:21 +0100 Subject: [PATCH] Add readme --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..662d40b --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +![status-badge](https://ci.t-juice.club/api/badges/torjus/gpaste/status.svg) + +# gpaste + +Simple pastebin-style webapp. + +## Build + +### gpaste-server + +```text +go build -o gpaste-server cmd/server/server.go +``` + +### gpaste-client + +```text +go build -o gpaste cmd/client/client.go +``` + +## Run using docker + +### From registry + +```text +docker pull registry.t-juice.club/gpaste:latest +docker run --rm -it -p 8080:8080 registry.t-juice.club/gpaste:latest +``` + +### From Dockerfile + +```text +docker build -t gpaste:latest . +docker run --rm -it p 8080:8080 gpaste:latest +```