From 009775e2ea24dca37a4be943973b36a64b17a58f Mon Sep 17 00:00:00 2001 From: "Jieyi Long (THETA Network)" Date: Tue, 21 Mar 2023 16:01:57 +0800 Subject: [PATCH] Fixes for docker scripts --- integration/docker/build/Dockerfile | 6 +++--- integration/docker/build/build.sh | 0 integration/docker/build/start.sh | 11 ++--------- 3 files changed, 5 insertions(+), 12 deletions(-) mode change 100644 => 100755 integration/docker/build/build.sh mode change 100644 => 100755 integration/docker/build/start.sh diff --git a/integration/docker/build/Dockerfile b/integration/docker/build/Dockerfile index 9396284..c3b25d5 100644 --- a/integration/docker/build/Dockerfile +++ b/integration/docker/build/Dockerfile @@ -1,8 +1,8 @@ -FROM golang:1.11 +FROM --platform=linux/amd64 golang:1.19 VOLUME ["/go"] -WORKDIR /go/src/github.com/thetatoken/theta/ +WORKDIR /go/src/github.com/thetatoken/thetasubchain/ ENV GOPATH=/go @@ -10,7 +10,7 @@ ENV CGO_ENABLED=1 ENV GO111MODULE=on -CMD ["/go/src/github.com/thetatoken/theta/integration/docker/build/start.sh"] +CMD ["/go/src/github.com/thetatoken/thetasubchain/integration/docker/build/start.sh"] diff --git a/integration/docker/build/build.sh b/integration/docker/build/build.sh old mode 100644 new mode 100755 diff --git a/integration/docker/build/start.sh b/integration/docker/build/start.sh old mode 100644 new mode 100755 index 03dc25d..3f8439f --- a/integration/docker/build/start.sh +++ b/integration/docker/build/start.sh @@ -7,15 +7,8 @@ set -x GOBIN=/usr/local/go/bin/go -$GOBIN build -o ./build/linux/theta ./cmd/theta -$GOBIN build -o ./build/linux/thetacli ./cmd/thetacli -$GOBIN build -o ./build/linux/dump_storeview ./integration/tools/dump_storeview -$GOBIN build -o ./build/linux/encrypt_sk ./integration/tools/encrypt_sk -$GOBIN build -o ./build/linux/generate_genesis ./integration/tools/generate_genesis -$GOBIN build -o ./build/linux/hex_obj_parser ./integration/tools/hex_obj_parser -$GOBIN build -o ./build/linux/inspect_data ./integration/tools/inspect_data -$GOBIN build -o ./build/linux/query_db ./integration/tools/query_db -$GOBIN build -o ./build/linux/sign_hex_msg ./integration/tools/sign_hex_msg +$GOBIN build -buildvcs=false -o ./build/linux/thetasubchain ./cmd/thetasubchain +$GOBIN build -buildvcs=false -o ./build/linux/thetasubcli ./cmd/thetasubcli set +x