aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-07-05 07:17:25 +0000
committerterminaldweller <thabogre@gmail.com>2022-07-05 07:17:25 +0000
commit27550c1f73edaaaca36294ec1939326009480c5b (patch)
treea6416a3e56cebfce8eeb9f5c8cce105a8678a6aa
parentupdate (diff)
downloadhived-27550c1f73edaaaca36294ec1939326009480c5b.tar.gz
hived-27550c1f73edaaaca36294ec1939326009480c5b.zip
added goproxy env var to the docker images
-rw-r--r--hived/Dockerfile1
-rw-r--r--telebot/Dockerfile1
-rwxr-xr-xtest/endpoints.sh6
3 files changed, 5 insertions, 3 deletions
diff --git a/hived/Dockerfile b/hived/Dockerfile
index d731da0..7eb1a8d 100644
--- a/hived/Dockerfile
+++ b/hived/Dockerfile
@@ -1,4 +1,5 @@
FROM alpine:3.13 as builder
+ENV GOPROXY=https://goproxy.io
RUN apk update && apk upgrade
RUN apk add go git
ENV GOPROXY=https://goproxy.io
diff --git a/telebot/Dockerfile b/telebot/Dockerfile
index d038ba2..d358ed7 100644
--- a/telebot/Dockerfile
+++ b/telebot/Dockerfile
@@ -1,4 +1,5 @@
FROM alpine:3.13 as builder
+ENV GOPROXY=https://goproxy.io
RUN apk update && apk upgrade
RUN apk add go git
ENV GOPROXY=https://goproxy.io
diff --git a/test/endpoints.sh b/test/endpoints.sh
index 85621dd..02381d6 100755
--- a/test/endpoints.sh
+++ b/test/endpoints.sh
@@ -3,10 +3,10 @@ set -e
set -x
# sleep 5
-curl -k -X GET https://localhost:8008/crypto/price?name=CAKE&unit=USD
-curl -k -X GET https://localhost:8008/crypto/pair?one=ETH&two=CAKE&multiplier=4.0
+curl -k -X GET "https://localhost:8008/crypto/price?name=CAKE&unit=USD"
+curl -k -X GET "https://localhost:8008/crypto/pair?one=ETH&two=CAKE&multiplier=4.0"
curl -k -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' https://localhost:8008/crypto/alert
-curl -X GET -H "Content-Type: application/json" "https://api.terminaldweller.com/crypto/alert?key=alert10"
+curl -X GET -H "Content-Type: application/json" "https://api.terminaldweller.com/crypto/alert?key=alert13"
curl -X DELETE -H "Content-Type: application/json" "https://api.terminaldweller.com/crypto/alert?key=alert10"
curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' https://api.terminaldweller.com/crypto/alert