From e878ffbdaaf88d8c2149ba2e80f1f56df0a57431 Mon Sep 17 00:00:00 2001 From: Leopere Date: Mon, 8 Oct 2018 16:53:51 -0400 Subject: [PATCH] Started on Reflector.go --- LICENSE | 2 +- reflector.go/.env | 0 reflector.go/Dockerfile | 10 ++++++++++ reflector.go/README.md | 0 reflector.go/compile/.env | 0 reflector.go/compile/Dockerfile | 18 ++++++++++++++++++ reflector.go/compile/README.md | 0 reflector.go/compile/docker-compose.yml | 0 reflector.go/compile/docker-entrypoint.sh | 0 reflector.go/compile/start.sh | 0 reflector.go/debugpaste-it.sh | 0 reflector.go/docker-compose.yml | 0 reflector.go/docker-entrypoint.sh | 0 reflector.go/start.sh | 0 14 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 reflector.go/.env create mode 100644 reflector.go/Dockerfile create mode 100644 reflector.go/README.md create mode 100644 reflector.go/compile/.env create mode 100644 reflector.go/compile/Dockerfile create mode 100644 reflector.go/compile/README.md create mode 100644 reflector.go/compile/docker-compose.yml create mode 100644 reflector.go/compile/docker-entrypoint.sh create mode 100644 reflector.go/compile/start.sh create mode 100644 reflector.go/debugpaste-it.sh create mode 100644 reflector.go/docker-compose.yml create mode 100644 reflector.go/docker-entrypoint.sh create mode 100644 reflector.go/start.sh diff --git a/LICENSE b/LICENSE index 7ac31a5..3899a2f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 LBRY Inc +Copyright (c) 2018 2018 LBRY Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/reflector.go/.env b/reflector.go/.env new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/Dockerfile b/reflector.go/Dockerfile new file mode 100644 index 0000000..977507b --- /dev/null +++ b/reflector.go/Dockerfile @@ -0,0 +1,10 @@ +## base image for github.com/lbryio/reflector.go release binaries +FROM ubuntu:18:04 +MAINTAINER chamunks [at] gmail [dot] com + +ADD start.sh /usr/local/bin/start +ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint + +RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \ + apt-get update && \ + apt-get -y install diff --git a/reflector.go/README.md b/reflector.go/README.md new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/compile/.env b/reflector.go/compile/.env new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/compile/Dockerfile b/reflector.go/compile/Dockerfile new file mode 100644 index 0000000..841b881 --- /dev/null +++ b/reflector.go/compile/Dockerfile @@ -0,0 +1,18 @@ +## base image for github.com/lbryio/reflector.go release binaries +FROM golang:1.11.1 +MAINTAINER chamunks [at] gmail [dot] com + +ADD start.sh /usr/local/bin/start +ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint + +RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/ + +RUN go get -u github.com/lbryio/reflector.go && \ + cd "$(go env GOPATH)/src/github.com/lbryio/reflector.go" && \ + make && \ + cp ./bin/prism-bin /usr/bin/prism-bin && \ + chmod +x /usr/bin/prism-bin + +USER reflector + +#EXPOSE No idea yet. diff --git a/reflector.go/compile/README.md b/reflector.go/compile/README.md new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/compile/docker-compose.yml b/reflector.go/compile/docker-compose.yml new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/compile/docker-entrypoint.sh b/reflector.go/compile/docker-entrypoint.sh new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/compile/start.sh b/reflector.go/compile/start.sh new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/debugpaste-it.sh b/reflector.go/debugpaste-it.sh new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/docker-compose.yml b/reflector.go/docker-compose.yml new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/docker-entrypoint.sh b/reflector.go/docker-entrypoint.sh new file mode 100644 index 0000000..e69de29 diff --git a/reflector.go/start.sh b/reflector.go/start.sh new file mode 100644 index 0000000..e69de29