From 753b711e96fa6456110ab099393532998e6a4c21 Mon Sep 17 00:00:00 2001 From: Leopere Date: Tue, 9 Oct 2018 10:28:13 -0400 Subject: [PATCH] Multiple changes chainquery has an added Adminer container now. reflector.go has a base config.tmpl file for testing string modification. Exporting GOROOT now in Dockerfile --- chainquery/docker-compose.yml | 25 +++++++++++++++++++++++++ reflector.go/compile/Dockerfile | 3 ++- reflector.go/compile/config.tmpl | 8 ++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 reflector.go/compile/config.tmpl diff --git a/chainquery/docker-compose.yml b/chainquery/docker-compose.yml index c5548ff..b01bcf3 100644 --- a/chainquery/docker-compose.yml +++ b/chainquery/docker-compose.yml @@ -32,6 +32,31 @@ services: - ./data/db:/var/lib/mysql - ./my.cnf:/etc/mysql/conf.d/chainquery-optimizations.cnf +####################### +## Adminer container ## +####################### + adminer: + image: adminer + # restart: always + links: + - "mysql:database" + depends_on: + - mysql + labels: + # https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ + - "traefik.backend=adminer" + - "traefik.docker.network=lbrynet" + - "traefik.frontend.rule=Host:adminer.lbry-demo.nixc.us" + - "traefik.expose=true" + - "traefik.port=8080" + # healthcheck: + # test: ["CMD", "curl", "--fail", "http://localhost:8080/", "||", "exit", "1"] + networks: + lbrynet: + ipv4_address: 10.10.0.19 + aliases: + - adminer + ################ ## Chainquery ## ################ diff --git a/reflector.go/compile/Dockerfile b/reflector.go/compile/Dockerfile index 896d14d..2c1de9c 100644 --- a/reflector.go/compile/Dockerfile +++ b/reflector.go/compile/Dockerfile @@ -7,7 +7,8 @@ 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 && \ +RUN export GOROOT=$GOPATH/bin && \ + go get -v -u github.com/lbryio/reflector.go && \ cd "/go/src/github.com/lbryio/reflector.go" && \ make && \ mv ./bin/prism-bin /usr/bin/prism-bin && \ diff --git a/reflector.go/compile/config.tmpl b/reflector.go/compile/config.tmpl new file mode 100644 index 0000000..4ada19c --- /dev/null +++ b/reflector.go/compile/config.tmpl @@ -0,0 +1,8 @@ +{ + "aws_id": "YOUR-AWS-ID", + "aws_secret": "YOUR-AWS-SECRET", + "bucket_region": "YOUR-BUCKET-REGION", + "bucket_name": "YOUR-BUCKET-NAME", + "db_conn": "USER:PASSWORD@tcp(localhost:3306)/DBNAME", + "slack_hook_url": "" +}