From 81f30a6260a2d6ceaf2f8310797efa630abb349a Mon Sep 17 00:00:00 2001 From: dev Date: Tue, 10 Oct 2023 17:23:07 +0300 Subject: [PATCH] rm zts pthreads (reason: stale state) --- README.md | 42 ------------------------------------------ zts-xdebug/Dockerfile | 34 ---------------------------------- zts/Dockerfile | 26 -------------------------- 3 files changed, 102 deletions(-) delete mode 100644 zts-xdebug/Dockerfile delete mode 100644 zts/Dockerfile diff --git a/README.md b/README.md index a01ace7..d5029ad 100644 --- a/README.md +++ b/README.md @@ -30,22 +30,6 @@ tag: `{sourceref}-4yii2-xdebug` `docker pull bscheshir/php:8.2.11-fpm-alpine-4yii2-xdebug` -## for zts - -- `7.4.3-zts`, `zts` ([zts/Dockerfile](./zts/Dockerfile)) -- `7.4.3-zts-xdebug`, `zts-xdebug` ([zts-xdebug/Dockerfile](./zts-xdebug/Dockerfile)) - - -FROM `php:zts` - -added `pthreads` - -tag: `{sourceref}-zts` - -added Xdebug - -tag: `{sourceref}-zts-xdebug` - ## Usage ### Example for yii2 [docker-compose.yml](https://github.com/bscheshirwork/docker-yii2-app-advanced/blob/master/docker-run/docker-compose.yml) @@ -159,32 +143,6 @@ services: - "host.docker.internal:host-gateway" ``` - -### Example zts [docker-compose.yml](https://github.com/bscheshirwork/multispider/blob/master/zts/docker-compose.yml) -``` -version: '2' -services: - php: - image: bscheshir/php:7.4.3-zts - restart: unless-stopped - hostname: phphost - working_dir: /multispider - depends_on: - - db - volumes: - - ..:/multispider #php-code - - ~:/home/user - db: - image: postgres:11-alpine - restart: unless-stopped - volumes: - - ../.db:/var/lib/postgresql/data #DB-data - environment: - POSTGRES_PASSWORD: multispider - POSTGRES_DB: multispider - POSTGRES_USER: multispider -``` - ## How to build manually ### Clone or get fresh diff --git a/zts-xdebug/Dockerfile b/zts-xdebug/Dockerfile deleted file mode 100644 index b271794..0000000 --- a/zts-xdebug/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -FROM php:zts -# docker build -t bscheshir/php:zts-xdebug --pull -- . -MAINTAINER BSCheshir - -RUN apt-get update && apt-get install -y \ - coreutils \ - re2c \ - autoconf \ - git \ - libpq-dev \ - --no-install-recommends && \ - rm -r /var/lib/apt/lists/* && \ - docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql && \ - docker-php-ext-install -j$(nproc) pdo_pgsql pgsql && \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \ - git clone https://github.com/krakjoe/pthreads.git && \ - ( \ - cd pthreads && \ - phpize && \ - ./configure --enable-pthreads && \ - make -j$(nproc) && \ - make install \ - ) && \ - rm -r pthreads && \ - docker-php-ext-enable pthreads && \ - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer - -ENV XDEBUG_VERSION 2.9.2 -RUN pecl install xdebug-$XDEBUG_VERSION && \ - docker-php-ext-enable xdebug && \ - rm -r /tmp/pear/* && \ - echo -e "xdebug.remote_port = 9001\n\ -xdebug.idekey = \"PHPSTORM\"\n\ -xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini diff --git a/zts/Dockerfile b/zts/Dockerfile deleted file mode 100644 index 4c1f81a..0000000 --- a/zts/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -FROM php:zts -# docker build -t bscheshir/php:zts --pull -- . -MAINTAINER BSCheshir - -RUN apt-get update && apt-get install -y \ - coreutils \ - re2c \ - autoconf \ - git \ - libpq-dev \ - --no-install-recommends && \ - rm -r /var/lib/apt/lists/* && \ - docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql && \ - docker-php-ext-install -j$(nproc) pdo_pgsql pgsql && \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \ - git clone https://github.com/krakjoe/pthreads.git && \ - ( \ - cd pthreads && \ - phpize && \ - ./configure --enable-pthreads && \ - make -j$(nproc) && \ - make install \ - ) && \ - rm -r pthreads && \ - docker-php-ext-enable pthreads && \ - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer