Initial add
This commit is contained in:
commit
083ae29d56
35
7.3/Dockerfile
Normal file
35
7.3/Dockerfile
Normal file
|
@ -0,0 +1,35 @@
|
|||
FROM webdevops/php:7.3
|
||||
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
||||
|
||||
RUN set -x \
|
||||
# install pre-requisites.
|
||||
&& apt-install locales gnupg \
|
||||
&& sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen \
|
||||
&& locale-gen \
|
||||
# install the mssql driver.
|
||||
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
||||
&& curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
|
||||
&& ACCEPT_EULA=Y apt-install libssl1.0.2 msodbcsql17 mssql-tools unixodbc-dev \
|
||||
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \
|
||||
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \
|
||||
&& /bin/bash -c "source ~/.bashrc" \
|
||||
&& apt-install libmcrypt-dev libmagickwand-dev \
|
||||
# install the pecl extensions
|
||||
&& pecl install mcrypt-1.0.2 \
|
||||
&& pecl install sqlsrv \
|
||||
&& pecl install pdo_sqlsrv \
|
||||
&& pecl install igbinary \
|
||||
&& pecl install imagick \
|
||||
&& pecl install msgpack \
|
||||
&& echo extension=mcrypt.so > /usr/local/etc/php/conf.d/20-mcrypt.ini \
|
||||
&& echo extension=pdo_sqlsrv.so > /usr/local/etc/php/conf.d/30-pdo_sqlsrv.ini \
|
||||
&& echo extension=sqlsrv.so > /usr/local/etc/php/conf.d/20-sqlsrv.ini \
|
||||
&& echo extension=igbinary.so > /usr/local/etc/php/conf.d/20-igbinary.ini \
|
||||
&& echo extension=imagick.so > /usr/local/etc/php/conf.d/20-imagick.ini \
|
||||
&& echo extension=msgpack.so > /usr/local/etc/php/conf.d/20-msgpack.ini \
|
||||
# uninstall all headers and libraries
|
||||
&& apt-get purge -y -f --force-yes \
|
||||
libmcrypt-dev libmagickwand-dev unixodbc-dev \
|
||||
# perform image cleanup.
|
||||
&& docker-run-bootstrap \
|
||||
&& docker-image-cleanup
|
5
7.3/build
Executable file
5
7.3/build
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker build $1\
|
||||
-t bkraul/php:7.3 \
|
||||
.
|
34
README.md
Normal file
34
README.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
[![bkraul/php-nginx](https://img.shields.io/badge/bkraul-php--nginx-blue.svg)](https://cloud.docker.com/u/bkraul/repository/docker/bkraul/php-nginx)
|
||||
|
||||
![Webdevops Dockerfile](https://static.webdevops.io/dockerfile.svg)
|
||||
|
||||
# Introduction
|
||||
|
||||
This image is based on [webdevops/php-nginx](https://hub.docker.com/r/webdevops/php-nginx) image, with **mcrypt** extension and latest Microsoft **sqlsrv** and **pdo_sqlsrv** drivers and extensions.
|
||||
|
||||
## Tags
|
||||
|
||||
| Tags | PHP Version | Distribution |
|
||||
| -------------------- | ----------- | ----------------------- |
|
||||
| latest, ubuntu-18.04 | 7.2.15 | Ubuntu 18.04.1 (bionic) |
|
||||
| 7.3 | 7.3.2 | Debian 10 (buster) |
|
||||
|
||||
# Usage
|
||||
|
||||
## Pulling
|
||||
|
||||
To pull the image:
|
||||
|
||||
```
|
||||
docker pull bkraul/php-nginx
|
||||
```
|
||||
|
||||
For more information on how to use the image, go to the [webdevops/php-nginx](https://hub.docker.com/r/webdevops/php-nginx) page.
|
||||
|
||||
# Source
|
||||
|
||||
<https://git.belmankraul.com/docker/php-nginx>
|
||||
|
||||
# Issues
|
||||
|
||||
For issues or questions, visit <https://discourse.belmankraul.com/c/docker/php-nginx>
|
33
ubuntu-18.04/Dockerfile
Normal file
33
ubuntu-18.04/Dockerfile
Normal file
|
@ -0,0 +1,33 @@
|
|||
FROM webdevops/php:ubuntu-18.04
|
||||
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
||||
|
||||
# copy the fixed Tar.php to fix pecl problem.
|
||||
#DD https://raw.githubusercontent.com/pear/Archive_Tar/master/Archive/Tar.php /usr/share/php/Archive/
|
||||
RUN set -x \
|
||||
# install pre-requisites.
|
||||
&& apt-install locales gnupg \
|
||||
&& sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen \
|
||||
&& locale-gen \
|
||||
# install the mssql driver.
|
||||
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
||||
&& curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list \
|
||||
&& ACCEPT_EULA=Y apt-install libssl1.0.0 msodbcsql17 mssql-tools unixodbc-dev \
|
||||
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \
|
||||
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \
|
||||
&& /bin/bash -c "source ~/.bashrc" \
|
||||
&& apt-install php7.2-dev php-pear build-essential libmcrypt-dev \
|
||||
# install the pecl extensions
|
||||
&& pecl install mcrypt-1.0.2 \
|
||||
&& pecl install sqlsrv \
|
||||
&& pecl install pdo_sqlsrv \
|
||||
&& echo extension=mcrypt.so > /etc/php/7.2/fpm/conf.d/20-mcrypt.ini \
|
||||
&& echo extension=pdo_sqlsrv.so > /etc/php/7.2/fpm/conf.d/30-pdo_sqlsrv.ini \
|
||||
&& echo extension=sqlsrv.so > /etc/php/7.2/fpm/conf.d/20-sqlsrv.ini \
|
||||
&& echo extension=mcrypt.so > /etc/php/7.2/cli/conf.d/20-mcrypt.ini \
|
||||
&& echo extension=pdo_sqlsrv.so > /etc/php/7.2/cli/conf.d/30-pdo_sqlsrv.ini \
|
||||
&& echo extension=sqlsrv.so > /etc/php/7.2/cli/conf.d/20-sqlsrv.ini \
|
||||
# remove build software
|
||||
&& apt remove --auto-remove -y php7.2-dev php-pear build-essential unixodbc-dev \
|
||||
# perform image cleanup.
|
||||
&& docker-run-bootstrap \
|
||||
&& docker-image-cleanup
|
6
ubuntu-18.04/build
Executable file
6
ubuntu-18.04/build
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker build $1\
|
||||
-t bkraul/php \
|
||||
-t bkraul/php:ubuntu-18.04 \
|
||||
.
|
5
ubuntu-18.04/push
Executable file
5
ubuntu-18.04/push
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker push bkraul/php
|
||||
docker push bkraul/php:ubuntu-18.04
|
||||
|
Loading…
Reference in New Issue
Block a user