mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-17 02:34:26 +01:00
Add built-in cli to docker container (#114)
* add -faucet flag in scripts/build * localhost guard on Faucet request * add ark cli into docker image * "BUILD_FLAG" => "BUILD_ARGS", "-faucet" => "with-faucet" * [docker] use alpine:3.14 instead of debian * Revert changes * Expose docker volume for embedded wallet datadir --------- Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
This commit is contained in:
@@ -7,10 +7,20 @@ PARENT_PATH=$(dirname $(
|
||||
pwd -P
|
||||
))
|
||||
|
||||
OS=$(eval "go env GOOS")
|
||||
ARCH=$(eval "go env GOARCH")
|
||||
if [[ -z $GOOS ]]; then
|
||||
GOOS=$(eval "go env GOOS")
|
||||
fi
|
||||
|
||||
if [[ -z $GOARCH ]]; then
|
||||
GOARCH=$(eval "go env GOARCH")
|
||||
fi
|
||||
|
||||
echo "Building for $GOOS $GOARCH"
|
||||
|
||||
pushd $PARENT_PATH
|
||||
mkdir -p build
|
||||
GO111MODULE=on go build -ldflags="-s -w" -o build/ark-cli-$OS-$ARCH .
|
||||
|
||||
|
||||
GO111MODULE=on go build -ldflags="-s -w" -o build/ark-cli-$GOOS-$GOARCH .
|
||||
|
||||
popd
|
||||
|
||||
@@ -11,12 +11,10 @@ declare -a OS=("darwin" "linux")
|
||||
declare -a ARCH=("amd64" "arm64")
|
||||
|
||||
pushd $PARENT_PATH
|
||||
mkdir -p build
|
||||
|
||||
for os in "${OS[@]}"; do
|
||||
for arch in "${ARCH[@]}"; do
|
||||
echo "Building for $os $arch"
|
||||
GOOS=$os GOARCH=$arch go build -o build/ark-$os-$arch .
|
||||
GOOS=$os GOARCH=$arch ./scripts/build
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user