Skip to content

Commit

Permalink
juno alpine build
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Maslanka committed Aug 12, 2024
1 parent 97799c1 commit cb3fb8d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/juno-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
matrix:
#platform: ["linux/amd64", "linux/arm64"] # need arm runners
platform: ["linux/amd64"]
distro: ["alpine", "arch"]
distro: ["alpine"]
version:
- 23.1.0

Expand Down
30 changes: 30 additions & 0 deletions builds/juno.23.1.0.alpine.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh -x

BASEDIR=$(dirname "$0")
DOCKER_DIR="${BASEDIR}/.."
IMAGE="alpine"
NAME="juno"
REPO="CosmosContracts/juno"
TAG="23.1.0"
GO_VERSION="1.22.2"

cd "${DOCKER_DIR}"
docker buildx build "." -f "${IMAGE}.Dockerfile" \
--load \
--progress plain \
--tag "terraformlabs/${NAME}:${TAG}" \
--platform "linux/amd64" \
--build-arg "OS=linux" \
--build-arg "ARCH=amd64" \
--build-arg "APP_NAME=${NAME}" \
--build-arg "BIN_NAME=${NAME}d" \
--build-arg "DENOM=uatom" \
--build-arg "BUILD_COMMAND=make install" \
--build-arg "BUILD_TAGS=netgo ledger muslc" \
--build-arg "COSMOS_BUILD_OPTIONS=" \
--build-arg "GIT_TAG=v${TAG}" \
--build-arg "GIT_REPO=${REPO}" \
--build-arg "GO_VERSION=${GO_VERSION}" \
--build-arg "LDFLAGS=-w -s -linkmode=external -extldflags \"-Wl,-z,muldefs -static\"" \
--build-arg "MIMALLOC_VERSION=" \
$@

0 comments on commit cb3fb8d

Please sign in to comment.