From 566b29bef1af5de3d1b8e28d8c26ff1769f89430 Mon Sep 17 00:00:00 2001 From: gregnuj Date: Fri, 5 Jan 2024 06:27:31 -0600 Subject: [PATCH] build with alpine version --- .github/workflows/comdex-build.yml | 9 +++++---- alpine.Dockerfile | 1 + builds/comdex.0.1.1.alpine.sh | 29 ----------------------------- 3 files changed, 6 insertions(+), 33 deletions(-) delete mode 100755 builds/comdex.0.1.1.alpine.sh diff --git a/.github/workflows/comdex-build.yml b/.github/workflows/comdex-build.yml index 313d635..a1c8d9b 100644 --- a/.github/workflows/comdex-build.yml +++ b/.github/workflows/comdex-build.yml @@ -33,7 +33,7 @@ jobs: distro: ["alpine"] version: - "0.0.4" - - "0.1.3" + # - "0.1.3" cosmwasm fails - "5.0.0" - "6.0.2" - "7.0.0" @@ -59,15 +59,16 @@ jobs: go_version: "1.16" build_command: "CGO_ENABLED=0 make install" - - version: "0.1.3" - go_version: "1.18" - build_command: "CGO_ENABLED=0 make install" + # - version: "0.1.3" + # go_version: "1.18" + # build_command: "CGO_ENABLED=0 make install" - version: "5.0.0" go_version: "1.18" - version: "13.3.0" go_version: "1.20" + build_command: "CGO_ENABLED=0 make install" with: binary: ${{ matrix.binary }} diff --git a/alpine.Dockerfile b/alpine.Dockerfile index 55f8082..8835772 100644 --- a/alpine.Dockerfile +++ b/alpine.Dockerfile @@ -10,6 +10,7 @@ RUN set -eu && \ ca-certificates \ linux-headers \ build-base \ + musl-dev \ bash \ bison \ curl \ diff --git a/builds/comdex.0.1.1.alpine.sh b/builds/comdex.0.1.1.alpine.sh deleted file mode 100755 index cbcf4bc..0000000 --- a/builds/comdex.0.1.1.alpine.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -x - -BASEDIR=$(dirname "$0") -DOCKER_DIR="${BASEDIR}/.." -IMAGE="alpine" -NAME="comdex" -REPO="comdex-official/comdex" -TAG="0.1.1" -GO_VERSION="1.16" - -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}" \ - --build-arg "BUILD_COMMAND=CGO_ENABLED=0 make install" \ - --build-arg "BUILD_TAGS=netgo 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 "MIMALLOC_VERSION=" \ - --build-arg "LDFLAGS=-w -s -linkmode=external -extldflags \"-Wl,-z,muldefs -static -lgcompat\"" \ - $@