From e761f2ff35bdce4b7571873742b7333e9589f26c Mon Sep 17 00:00:00 2001 From: Jairo Fernandez Date: Sat, 15 Jun 2024 15:20:24 -0500 Subject: [PATCH] feat: allow colony-scout binary on bin folder --- discovery/Dockerfile | 8 ++++---- discovery/entrypoint.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/discovery/Dockerfile b/discovery/Dockerfile index 2ea8c13..a3a014e 100644 --- a/discovery/Dockerfile +++ b/discovery/Dockerfile @@ -2,11 +2,11 @@ FROM alpine:3.13.1 RUN apk add --no-cache util-linux curl -ARG COLONY_SCOUT_VERSION=0.0.8-rc1 - -RUN curl -L -o colony-scout.tar.gz https://assets.kubefirst.com/colony/colony-scout_${COLONY_SCOUT_VERSION}_linux_amd64.tar.gz && \ +ARG COLONY_SCOUT_VERSION=0.0.8-rc11 +RUN curl -L -o colony-scout.tar.gz https://assets.kubefirst.com/colony/colony-scout_.${COLONY_SCOUT_VERSION}_Linux_x86_64.tar.gz && \ tar -xzvf colony-scout.tar.gz && \ - chmod +x colony-scout + chmod +x colony-scout && \ + mv colony-scout /usr/local/bin/ COPY . . diff --git a/discovery/entrypoint.sh b/discovery/entrypoint.sh index 94b1812..199202a 100755 --- a/discovery/entrypoint.sh +++ b/discovery/entrypoint.sh @@ -13,7 +13,7 @@ if [ -z "${COLONY_API_KEY}" ]; then fi update_hardware() { - output=$(./colony-scout discovery \ + output=$(colony-scout discovery \ --token="${COLONY_API_KEY}" \ --hardware-id="${K1_COLONY_HARDWARE_ID}" 2>&1)