-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
110 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
IMAGES = alpine3.15 amzn2 amzn2023 debian10 debian11 debian12 el7 el8 el9 ubuntu18.04 ubuntu20.04 ubuntu22.04 | ||
|
||
.PHONY: all | ||
all: $(IMAGES) | ||
|
||
.PHONY: $(IMAGES) | ||
define gen-build-image-target | ||
$1: | ||
@docker build -t ghcr.io/emqx/emqx-builder:$1-base $1 | ||
@docker build --build-arg BUILD_FROM=ghcr.io/emqx/emqx-builder:$1-base -t ghcr.io/emqx/emqx-builder:$1 . | ||
endef | ||
$(foreach img,$(IMAGES),$(eval $(call gen-build-image-target,$(img)))) | ||
|
||
.PHONY: $(IMAGES:%=%-push) | ||
define gen-push-image-target | ||
$1-push: | ||
@docker push ghcr.io/emqx/emqx-builder:$1-base | ||
@docker push ghcr.io/emqx/emqx-builder:$1 | ||
endef | ||
$(foreach img,$(IMAGES),$(eval $(call gen-push-image-target,$(img)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
ARCH=$(arch) | ||
if [ "${ARCH}" != "x86_64" ]; then | ||
echo "Unsupported architecture: ${ARCH}" | ||
exit 0 | ||
fi | ||
|
||
BASE_URL="https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}" | ||
. /etc/os-release | ||
if [[ "${ID_LIKE:-}" =~ rhel|fedora ]]; then | ||
DIST='el' | ||
case ${ID} in | ||
amzn) | ||
VERSION_ID="7" | ||
;; | ||
*) | ||
VERSION_ID="${VERSION_ID%%.*}" | ||
;; | ||
esac | ||
SYSTEM="${DIST}${VERSION_ID}" | ||
case ${SYSTEM} in | ||
el7) | ||
wget "${BASE_URL}/foundationdb-clients-${FDB_VERSION}-1.${SYSTEM}.${ARCH}.rpm" -O ./foundationdb-clients.rpm | ||
rpm -i ./foundationdb-clients.rpm | ||
rm ./foundationdb-clients.rpm | ||
;; | ||
*) | ||
echo "Unsupported system: ${SYSTEM}" | ||
exit 0 | ||
;; | ||
esac | ||
else if [[ "${ID:-}" =~ debian|ubuntu ]]; then | ||
ARCH=$(dpkg --print-architecture) | ||
SYSTEM="${ID}${VERSION_ID}" | ||
case ${SYSTEM} in | ||
debian11 | debian12 | ubuntu20.04 | ubuntu22.04) | ||
wget "${BASE_URL}/foundationdb-clients_${FDB_VERSION}-1_${ARCH}.deb" -O foundationdb-clients.deb | ||
dpkg -i foundationdb-clients.deb | ||
rm foundationdb-clients.deb | ||
;; | ||
*) | ||
echo "Unsupported system: ${SYSTEM}" | ||
exit 0 | ||
;; | ||
esac | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeuo pipefail | ||
|
||
LUX_REF="${LUX_REF:-lux-2.9.1}" | ||
|
||
mkdir -p /tools | ||
git clone --depth=1 --branch=${LUX_REF} https://github.com/hawk/lux /tools/lux | ||
cd /tools/lux | ||
autoconf | ||
./configure | ||
make | ||
make install | ||
cd /tools | ||
rm -rf lux |
This file was deleted.
Oops, something went wrong.