mirror of
https://github.com/antos-rde/antos.git
synced 2025-08-31 08:12:14 +02:00
feat: use antd http server v2.0.0 with all plugins updated
This commit is contained in:
18
Makefile
18
Makefile
@@ -61,7 +61,7 @@ plugins: antd-fcgi-plugin antd-tunnel-plugin antd-wvnc-plugin antd-tunnel-publis
|
|||||||
|
|
||||||
luasec: clean_c
|
luasec: clean_c
|
||||||
@echo "Building $@"
|
@echo "Building $@"
|
||||||
lua5.3 $(ROOT_DIR)/antd/luasec/src/options.lua -g \
|
lua $(ROOT_DIR)/antd/luasec/src/options.lua -g \
|
||||||
/usr/include/openssl/ssl.h \
|
/usr/include/openssl/ssl.h \
|
||||||
> $(ROOT_DIR)/antd/luasec/src/options.c
|
> $(ROOT_DIR)/antd/luasec/src/options.c
|
||||||
CC=$(CC) \
|
CC=$(CC) \
|
||||||
@@ -100,7 +100,9 @@ luasocket: clean_c
|
|||||||
antd-% sil%: clean_c
|
antd-% sil%: clean_c
|
||||||
@echo "Building $@"
|
@echo "Building $@"
|
||||||
cd $(ROOT_DIR)/antd/$@ && libtoolize && aclocal && autoconf && automake --add-missing
|
cd $(ROOT_DIR)/antd/$@ && libtoolize && aclocal && autoconf && automake --add-missing
|
||||||
cd $(ROOT_DIR)/antd/$@ && CFLAGS="-I$(INSTALL_DIR)/include" LDFLAGS="-L$(INSTALL_DIR)/lib" \
|
cd $(ROOT_DIR)/antd/$@ && \
|
||||||
|
CFLAGS="-I$(INSTALL_DIR)/include"\
|
||||||
|
LDFLAGS="-L$(INSTALL_DIR)/lib" \
|
||||||
./configure $(HOST) --prefix=$(BUILD_PREFIX)
|
./configure $(HOST) --prefix=$(BUILD_PREFIX)
|
||||||
DESTDIR=$(BUILDDIR)/$(ARCH) make -C $(ROOT_DIR)/antd/$@ install
|
DESTDIR=$(BUILDDIR)/$(ARCH) make -C $(ROOT_DIR)/antd/$@ install
|
||||||
|
|
||||||
@@ -178,15 +180,7 @@ appimg:
|
|||||||
scripts/mkappimg.sh $(ARCH) $(VERSION_STR) $(BUILDDIR)/$(ARCH) $(ROOT_DIR)/antos-64.png
|
scripts/mkappimg.sh $(ARCH) $(VERSION_STR) $(BUILDDIR)/$(ARCH) $(ROOT_DIR)/antos-64.png
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
ln -sfn arm $(BUILDDIR)/armv7l
|
scripts/mkdocker.sh $(DOCKER_IMAGE):$(DOCKER_TAG)
|
||||||
ln -sfn arm64 $(BUILDDIR)/aarch64
|
|
||||||
ln -sfn amd64 $(BUILDDIR)/x86_64
|
|
||||||
docker buildx build \
|
|
||||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
|
||||||
--tag $(DOCKER_IMAGE):$(DOCKER_TAG) \
|
|
||||||
-f docker/antos/Dockerfile \
|
|
||||||
--push \
|
|
||||||
.
|
|
||||||
rm $(BUILDDIR)/aarch64 $(BUILDDIR)/armv7l $(BUILDDIR)/x86_64
|
|
||||||
# --push
|
# --push
|
||||||
.PHONY: antd antos docker
|
.PHONY: antd antos docker
|
Submodule antd/ant-http updated: 32552ee0ed...58a7738afe
Submodule antd/antd-fcgi-plugin updated: bfa6020ce2...6a82a98aa5
Submodule antd/antd-tunnel-plugin updated: 8da0bf3934...de2c072d6d
Submodule antd/antd-wvnc-plugin updated: 6c1df8e4d5...d08ae89c82
Submodule antd/silk updated: bf5284e66f...6380787d7e
@@ -1,7 +1,6 @@
|
|||||||
[SERVER]
|
[SERVER]
|
||||||
plugins=/opt/www/lib/
|
plugins=/opt/www/lib/
|
||||||
plugins_ext=.so
|
plugins_ext=.so
|
||||||
database=/opt/www/database/
|
|
||||||
tmpdir=/tmp/
|
tmpdir=/tmp/
|
||||||
maxcon=500
|
maxcon=500
|
||||||
backlog=5000
|
backlog=5000
|
||||||
|
46
scripts/mkdocker.sh
Executable file
46
scripts/mkdocker.sh
Executable file
@@ -0,0 +1,46 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
DOCKER_IMAGE=$1
|
||||||
|
|
||||||
|
if [ -z "$DOCKER_IMAGE" ]; then
|
||||||
|
echo "Please provide <image>:<tag> as parameter"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm build/aarch64 build/armv7l build/x86_64 || true
|
||||||
|
|
||||||
|
list=$(ls build/)
|
||||||
|
|
||||||
|
platforms=
|
||||||
|
|
||||||
|
for item in $list; do
|
||||||
|
case $item in
|
||||||
|
amd64)
|
||||||
|
platforms="$platforms,linux/amd64"
|
||||||
|
;;
|
||||||
|
arm64)
|
||||||
|
platforms="$platforms,linux/arm64/v8"
|
||||||
|
;;
|
||||||
|
arm)
|
||||||
|
platforms="$platforms,linux/arm/v7"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unkown architecture $item"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
platforms=${platforms##,}
|
||||||
|
echo "Building docker image for the following platforms: $platforms"
|
||||||
|
ln -sfn arm build/armv7l
|
||||||
|
ln -sfn arm64 build/aarch64
|
||||||
|
ln -sfn amd64 build/x86_64
|
||||||
|
|
||||||
|
docker buildx build \
|
||||||
|
--platform "$platforms" \
|
||||||
|
--tag "$DOCKER_IMAGE" \
|
||||||
|
-f docker/antos/Dockerfile \
|
||||||
|
--push \
|
||||||
|
.
|
Reference in New Issue
Block a user