Skip to content

Commit 3f2b79e

Browse files
committed
Enable zip into manticore-executor to support composer packages
1 parent db2d5f1 commit 3f2b79e

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ RUN test "$BUILD_DEV" -eq 1 && php -r "copy('https://getcomposer.org/installer',
2020
WORKDIR /src
2121

2222
# Build on silicon chip mac:
23-
# docker buildx build --build-arg BUILD_DEV=0 --platform linux/amd64,linux/arm64 -t manticoresearch/manticore-executor:0.6.7 --push .
24-
# docker buildx build --build-arg BUILD_DEV=1 --platform linux/amd64,linux/arm64 -t manticoresearch/manticore-executor:0.6.7-dev --push .
23+
# docker buildx build --build-arg BUILD_DEV=0 --platform linux/amd64,linux/arm64 -t manticoresearch/manticore-executor:0.6.9 --push .
24+
# docker buildx build --build-arg BUILD_DEV=1 --platform linux/amd64,linux/arm64 -t manticoresearch/manticore-executor:0.6.9-dev --push .

build-alpine

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,13 @@ install_deps() {
2323
apk add curl git autoconf bison re2c pkgconf zlib-dev zstd-dev openssl-libs-static openssl-dev zlib-static zlib-dev
2424

2525
# Build curl
26+
test -d curl-8.0.0 && rm -f $_
2627
curl -sSL https://github.com/curl/curl/releases/download/curl-8_0_0/curl-8.0.0.tar.gz | tar -xzf -
2728
cd curl-8.0.0
2829
./configure --disable-shared --with-ssl --without-libidn2
2930
make -j8
3031
make install
3132
cd ..
32-
}
33-
34-
install_dev_deps() {
35-
apk add gmp-dev judy-dev bsd-compat-headers m4
3633

3734
test -d libzip-1.9.2 && rm -f $_
3835
curl -sSL https://github.com/nih-at/libzip/releases/download/v1.9.2/libzip-1.9.2.tar.gz | tar -xzf -
@@ -41,6 +38,10 @@ install_dev_deps() {
4138
make -j4 && make install
4239
cd ../..
4340
rm -fr libzip-1.9.2
41+
}
42+
43+
install_dev_deps() {
44+
apk add gmp-dev judy-dev bsd-compat-headers m4
4445

4546
test -d libxml2-2.10.3 && rm -f libxml2-2.10.3
4647
curl -sSL https://github.com/GNOME/libxml2/archive/refs/tags/v2.10.3.tar.gz | tar -xzf -
@@ -87,7 +88,7 @@ ENABLE_STATIC=yes
8788
--enable-pcntl --enable-posix \
8889
--enable-sockets \
8990
--enable-zts --enable-parallel \
90-
--with-openssl --with-zlib \
91+
--with-openssl --with-zlib --with-zip \
9192
--enable-filter \
9293
--with-curl \
9394
--enable-mbstring \

build-bash-base.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ if [[ "$BUILD_DEV" == "1" ]]; then
6161
"--enable-xmlreader"
6262
"--enable-simplexml"
6363
"--enable-phar"
64-
"--with-zip"
6564
# Little extra exts in case we will need it
6665
"--enable-bcmath"
6766
"--with-gmp"

build-linux

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
set -e
1212
install_deps() {
1313
sudo apt-get update -y
14-
sudo apt-get install -y curl build-essential autoconf automake bison re2c libzstd-dev pkg-config git libssl-dev zlib1g-dev libonig-dev cmake
14+
sudo apt-get install -y curl build-essential autoconf automake bison re2c libzstd-dev pkg-config git libssl-dev zlib1g-dev libzip-dev libonig-dev cmake
1515

1616
# Build curl
1717
curl -sSL https://github.com/curl/curl/releases/download/curl-8_0_0/curl-8.0.0.tar.gz | tar -xzf -
@@ -23,7 +23,7 @@ install_deps() {
2323
}
2424

2525
install_dev_deps() {
26-
sudo apt-get install -y libonig-dev libgmp-dev libzip-dev
26+
sudo apt-get install -y libonig-dev libgmp-dev
2727
}
2828

2929
export -f install_deps install_dev_deps
@@ -48,7 +48,7 @@ fi
4848
--enable-pcntl --enable-posix \
4949
--enable-sockets \
5050
--enable-zts --enable-parallel \
51-
--with-openssl --with-zlib \
51+
--with-openssl --with-zlib --with-zip \
5252
--enable-filter \
5353
--with-curl \
5454
--enable-mbstring \

build-osx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
set -e
1010
install_deps() {
1111
brew upgrade
12-
brew install curl autoconf automake bison re2c zstd git openssl zlib cmake
12+
brew install curl autoconf automake bison re2c zstd git openssl zlib cmake libzip
1313

1414
OPENSSL_PREFIX="$(brew --prefix openssl)"
1515
OPENSSL_CFLAGS="-I${OPENSSL_PREFIX}/include"
@@ -83,7 +83,7 @@ fi
8383
--enable-pcntl --enable-posix \
8484
--enable-sockets \
8585
--enable-zts --enable-parallel \
86-
--with-openssl --with-zlib \
86+
--with-openssl --with-zlib --with-zip \
8787
--enable-filter \
8888
--with-curl \
8989
--enable-opcache \

0 commit comments

Comments
 (0)