mirror of
https://github.com/Dannecron/php-for-dev.git
synced 2025-12-26 00:22:36 +03:00
bump php version, install zsh, update readme
This commit is contained in:
24
readme.md
24
readme.md
@@ -6,12 +6,12 @@ Images can be found on [docker hub](https://hub.docker.com/repository/docker/dan
|
|||||||
|
|
||||||
#### Supported versions
|
#### Supported versions
|
||||||
|
|
||||||
* php 7.4.12
|
* php 7.4.13
|
||||||
* composer 1.10.17
|
* composer 1.10.17
|
||||||
* xdebug 2.9.8
|
* xdebug 2.9.8
|
||||||
* rdkafka 3.1.2
|
* rdkafka 3.1.2
|
||||||
* timecop 1.2.10
|
* timecop 1.2.10
|
||||||
* php 7.3.24
|
* php 7.3.25
|
||||||
* composer 1.10.17
|
* composer 1.10.17
|
||||||
* xdebug 2.9.8
|
* xdebug 2.9.8
|
||||||
* rdkafka 3.1.2
|
* rdkafka 3.1.2
|
||||||
@@ -22,6 +22,8 @@ Images can be found on [docker hub](https://hub.docker.com/repository/docker/dan
|
|||||||
* rdkafka 3.1.2
|
* rdkafka 3.1.2
|
||||||
* timecop 1.2.10
|
* timecop 1.2.10
|
||||||
|
|
||||||
|
All images now include [zsh](https://www.zsh.org/), that allowed using [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh) and its plugins for improving user experience.
|
||||||
|
|
||||||
#### Build
|
#### Build
|
||||||
|
|
||||||
To build container just use one of this commands:
|
To build container just use one of this commands:
|
||||||
@@ -40,3 +42,21 @@ docker run -it --rm -v `pwd`:/var/www/project -w /var/www/project --user=1000 lo
|
|||||||
```
|
```
|
||||||
|
|
||||||
where replace `*` minor php version.
|
where replace `*` minor php version.
|
||||||
|
|
||||||
|
##### Using oh-my-zsh from local machine
|
||||||
|
|
||||||
|
To use already installed `oh-my-zsh` inside docker container we should pass couple volumes and environment variables:
|
||||||
|
* `-v .zshrc:/home/user/.zshrc` - configuration file for `zsh`
|
||||||
|
* `-v .oh-my-zsh:/home/user/oh-my-zsh` - directory with installed `oh-my-zsh`
|
||||||
|
* `-e HOME=/home/user` - define user home directory
|
||||||
|
|
||||||
|
Full run command would be looks like
|
||||||
|
```bash
|
||||||
|
docker run -it --rm \
|
||||||
|
-v `pwd`:/var/www/project \
|
||||||
|
-v .zshrc:/home/user/.zshrc \
|
||||||
|
-v .oh-my-zsh:/home/user/oh-my-zsh \
|
||||||
|
-e HOME=/home/user \
|
||||||
|
-w /var/www/project \
|
||||||
|
--user=1000 local-composer:7.* sh
|
||||||
|
```
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM php:7.2.34-alpine
|
|||||||
|
|
||||||
RUN apk update && apk add --no-cache $PHPIZE_DEPS \
|
RUN apk update && apk add --no-cache $PHPIZE_DEPS \
|
||||||
&& apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
|
&& apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
|
||||||
curl gmp-dev librdkafka-dev imap-dev openssl-dev git
|
curl gmp-dev librdkafka-dev imap-dev openssl-dev git zsh
|
||||||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
|
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
|
||||||
--with-jpeg-dir=/usr/include/ \
|
--with-jpeg-dir=/usr/include/ \
|
||||||
--with-png-dir=/usr/include/ \
|
--with-png-dir=/usr/include/ \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM php:7.3.24-alpine
|
FROM php:7.3.25-alpine
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache $PHPIZE_DEPS \
|
RUN apk update && apk add --no-cache $PHPIZE_DEPS \
|
||||||
&& apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
|
&& apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
|
||||||
curl zip libzip-dev gmp-dev librdkafka-dev imap-dev openssl-dev git
|
curl zip libzip-dev gmp-dev librdkafka-dev imap-dev openssl-dev git zsh
|
||||||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
|
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
|
||||||
--with-jpeg-dir=/usr/include/ \
|
--with-jpeg-dir=/usr/include/ \
|
||||||
--with-png-dir=/usr/include/ \
|
--with-png-dir=/usr/include/ \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM php:7.4.12-alpine
|
FROM php:7.4.13-alpine
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache $PHPIZE_DEPS \
|
RUN apk update && apk add --no-cache $PHPIZE_DEPS \
|
||||||
&& apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
|
&& apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
|
||||||
curl zip libzip-dev gmp-dev librdkafka-dev imap-dev openssl-dev git
|
curl zip libzip-dev gmp-dev librdkafka-dev imap-dev openssl-dev git zsh
|
||||||
RUN docker-php-ext-configure gd --enable-gd \
|
RUN docker-php-ext-configure gd --enable-gd \
|
||||||
--with-freetype \
|
--with-freetype \
|
||||||
--with-jpeg \
|
--with-jpeg \
|
||||||
|
|||||||
Reference in New Issue
Block a user