Skip to content

Commit

Permalink
Fixes amd64 packaging after arm changes (#3124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Vyzas authored Oct 28, 2020
1 parent 333f71b commit 5ce694c
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ deps/libconfig/libconfig-1.7.2/
#libmicrohttpd
deps/libmicrohttpd/libmicrohttpd-0.9.55/
deps/libmicrohttpd/libmicrohttpd-0.9.68/
deps/libmicrohttpd/libmicrohttpd

#libhttpserver
deps/libhttpserver/libhttpserver-master_20191121/
Expand Down
2 changes: 1 addition & 1 deletion deps/libmicrohttpd/libmicrohttpd
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- MAKEOPT
- CURVER
- PKG_RELEASE=centos67
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
centos67_dbg_build:
Expand All @@ -27,6 +28,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-centos67
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
centos7_build:
Expand All @@ -41,6 +43,7 @@ services:
- CURVER
- PKG_RELEASE=centos7
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
centos7_arm64_build:
Expand Down Expand Up @@ -70,6 +73,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-centos7
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
centos8_build:
Expand All @@ -84,6 +88,7 @@ services:
- CURVER
- PKG_RELEASE=centos8
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
centos8_arm64_build:
Expand Down Expand Up @@ -113,6 +118,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-centos8
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
fedora24_build:
Expand All @@ -127,6 +133,7 @@ services:
- CURVER
- PKG_RELEASE=fedora24
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
fedora24_dbg_build:
Expand All @@ -141,6 +148,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-fedora24
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
fedora27_build:
Expand All @@ -155,6 +163,7 @@ services:
- CURVER
- PKG_RELEASE=fedora27
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
fedora27_dbg_build:
Expand All @@ -169,6 +178,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-fedora27
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
fedora28_build:
Expand All @@ -183,6 +193,7 @@ services:
- CURVER
- PKG_RELEASE=fedora28
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
fedora28_dbg_build:
Expand All @@ -197,6 +208,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-fedora28
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=x86_64
command:
- /opt/entrypoint/entrypoint.bash
fedora32_arm64_build:
Expand Down Expand Up @@ -225,6 +237,7 @@ services:
- MAKEOPT
- CURVER
- PKG_RELEASE=debian8
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
debian8_dbg_build:
Expand All @@ -239,6 +252,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-debian8
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
debian9_build:
Expand All @@ -253,6 +267,7 @@ services:
- CURVER
- PKG_RELEASE=debian9
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
debian9_arm64_build:
Expand Down Expand Up @@ -282,6 +297,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-debian9
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
debian9.4_build:
Expand All @@ -296,6 +312,7 @@ services:
- CURVER
- PKG_RELEASE=debian9.4
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
debian9.4_dbg_build:
Expand All @@ -310,6 +327,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-debian9.4
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
debian10_build:
Expand All @@ -324,6 +342,7 @@ services:
- CURVER
- PKG_RELEASE=debian10
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
debian10_arm64_build:
Expand Down Expand Up @@ -353,6 +372,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-debian10
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu14_build:
Expand All @@ -366,6 +386,7 @@ services:
- MAKEOPT
- CURVER
- PKG_RELEASE=ubuntu14
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu14_dbg_build:
Expand All @@ -380,6 +401,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-ubuntu14
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu16_build:
Expand All @@ -394,6 +416,7 @@ services:
- CURVER
- PKG_RELEASE=ubuntu16
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu16_dbg_build:
Expand All @@ -408,6 +431,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-ubuntu16
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu18_build:
Expand All @@ -422,6 +446,7 @@ services:
- CURVER
- PKG_RELEASE=ubuntu18
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu18_arm64_build:
Expand Down Expand Up @@ -451,6 +476,7 @@ services:
- CURVER
- PKG_RELEASE=dbg-ubuntu18
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu20_build:
Expand All @@ -465,6 +491,7 @@ services:
- CURVER
- PKG_RELEASE=ubuntu20
- PROXYSQL_BUILD_TYPE=clickhouse
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
ubuntu20_arm64_build:
Expand Down Expand Up @@ -494,5 +521,6 @@ services:
- CURVER
- PKG_RELEASE=dbg-ubuntu20
- PROXYSQL_BUILD_TYPE=debug
- PROXYSQL_BUILD_ARCH=amd64
command:
- /opt/entrypoint/entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
set -eu


if [[ "$PROXYSQL_BUILD_ARCH" == *"arm64" ]]; then
ARCH="arm64"
else
ARCH="amd64"
fi
ARCH=$PROXYSQL_BUILD_ARCH

echo "==> $ARCH architecture detected for package"

# Dirty patch to ensure OS deps are installed:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ set -eu
echo "==> Build environment:"
env

if [[ "$PROXYSQL_BUILD_ARCH" == *"arm64" ]]; then
ARCH="aarch64"
else
ARCH="x86_64"
fi
ARCH=$PROXYSQL_BUILD_ARCH
echo "==> $ARCH architecture detected for package"

echo "==> Dirty patching to ensure OS deps are installed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ set -eu
echo "==> Build environment:"
env

if [[ "$PROXYSQL_BUILD_ARCH" == *"arm64" ]]; then
ARCH="aarch64"
else
ARCH="x86_64"
fi
ARCH=$PROXYSQL_BUILD_ARCH
echo "==> $ARCH architecture detected for package"

echo "==> Dirty patching to ensure OS deps are installed"
Expand Down

0 comments on commit 5ce694c

Please sign in to comment.