Added new alpine variants
This commit is contained in:
parent
0cb27de924
commit
f9e6a4ffee
133
7.3-alpine/Dockerfile
Normal file
133
7.3-alpine/Dockerfile
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
# maintainer information.
|
||||||
|
FROM webdevops/php-nginx:7.3-alpine
|
||||||
|
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
||||||
|
|
||||||
|
# install php modules and drivers.
|
||||||
|
ENV MSSQL_DRIVER_VERSION=6.1.1-1
|
||||||
|
RUN set -x \
|
||||||
|
# install the build pre-requisites.
|
||||||
|
&& apk add --no-cache --virtual .build-deps autoconf file g++ make pkgconf re2c php7-dev unixodbc-dev libmcrypt-dev \
|
||||||
|
# install mssql drivers
|
||||||
|
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& apk add --allow-untrusted msodbcsql17_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& apk add --allow-untrusted mssql-tools_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
# add the mssql-tools binary to the path.
|
||||||
|
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \
|
||||||
|
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \
|
||||||
|
&& /bin/bash -c "source ~/.bashrc" \
|
||||||
|
# install the pecl extensions.
|
||||||
|
#&& pecl install mcrypt-1.0.2 \
|
||||||
|
&& pecl install pdo_sqlsrv \
|
||||||
|
&& pecl install sqlsrv \
|
||||||
|
&& pecl install igbinary \
|
||||||
|
&& pecl install msgpack \
|
||||||
|
# enable the extensions.
|
||||||
|
#&& echo extension=mcrypt.so > /etc/php7/conf.d/20-mcrypt.ini \
|
||||||
|
&& echo extension=pdo_sqlsrv.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/30_pdo_sqlsrv.ini \
|
||||||
|
&& echo extension=sqlsrv.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_sqlsrv.ini \
|
||||||
|
&& echo extension=igbinary.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_igbinary.ini \
|
||||||
|
&& echo extension=msgpack.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_msgpack.ini \
|
||||||
|
#&& echo extension=pdo_sqlsrv.so > /etc/php7/conf.d/30-pdo_sqlsrv.ini \
|
||||||
|
#&& echo extension=sqlsrv.so > /etc/php7/conf.d/20-sqlsrv.ini \
|
||||||
|
#&& echo extension=igbinary.so > /etc/php7/conf.d/20-igbinary.ini \
|
||||||
|
#&& echo extension=msgpack.so > /etc/php7/conf.d/20-msgpack.ini \
|
||||||
|
# perform image cleanup.
|
||||||
|
&& apk del .build-deps \
|
||||||
|
&& rm msodbcsql17_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& rm mssql-tools_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& docker-run-bootstrap \
|
||||||
|
&& docker-image-cleanup
|
||||||
|
|
||||||
|
# build node.
|
||||||
|
ENV NODE_VERSION 12.19.0
|
||||||
|
RUN set -x \
|
||||||
|
&& apk add --no-cache \
|
||||||
|
libstdc++ \
|
||||||
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
|
curl \
|
||||||
|
&& ARCH= && alpineArch="$(apk --print-arch)" \
|
||||||
|
&& case "${alpineArch##*-}" in \
|
||||||
|
x86_64) \
|
||||||
|
ARCH='x64' \
|
||||||
|
CHECKSUM="0d26ef0d4fa7ffe4f9f4a954bbf6172372528636acf2a69b0fc9ac22e247ac23" \
|
||||||
|
;; \
|
||||||
|
*) ;; \
|
||||||
|
esac \
|
||||||
|
&& if [ -n "${CHECKSUM}" ]; then \
|
||||||
|
set -eu; \
|
||||||
|
curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; \
|
||||||
|
echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - \
|
||||||
|
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
|
||||||
|
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs; \
|
||||||
|
else \
|
||||||
|
echo "Building from source" \
|
||||||
|
# backup build
|
||||||
|
&& apk add --no-cache --virtual .build-deps-full \
|
||||||
|
binutils-gold \
|
||||||
|
g++ \
|
||||||
|
gcc \
|
||||||
|
gnupg \
|
||||||
|
libgcc \
|
||||||
|
linux-headers \
|
||||||
|
make \
|
||||||
|
python2 \
|
||||||
|
# gpg keys listed at https://github.com/nodejs/node#release-keys
|
||||||
|
&& for key in \
|
||||||
|
4ED778F539E3634C779C87C6D7062848A1AB005C \
|
||||||
|
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
|
||||||
|
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
|
||||||
|
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
|
||||||
|
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
|
||||||
|
C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
|
||||||
|
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
|
||||||
|
A48C2BEE680E841632CD4E44F07496B3EB3C1762 \
|
||||||
|
108F52B48DB57BB0CC439B2997B01419BD92F80A \
|
||||||
|
B9E2F5981AA6E0CD28160D9FF13993A75599653C \
|
||||||
|
; do \
|
||||||
|
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \
|
||||||
|
done \
|
||||||
|
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" \
|
||||||
|
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
|
||||||
|
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
|
||||||
|
&& grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
|
||||||
|
&& tar -xf "node-v$NODE_VERSION.tar.xz" \
|
||||||
|
&& cd "node-v$NODE_VERSION" \
|
||||||
|
&& ./configure \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) V= \
|
||||||
|
&& make install \
|
||||||
|
&& apk del .build-deps-full \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -Rf "node-v$NODE_VERSION" \
|
||||||
|
&& rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; \
|
||||||
|
fi \
|
||||||
|
&& rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
|
||||||
|
&& apk del .build-deps \
|
||||||
|
# smoke tests
|
||||||
|
&& node --version \
|
||||||
|
&& npm --version
|
||||||
|
|
||||||
|
# build yarn
|
||||||
|
ENV YARN_VERSION 1.22.5
|
||||||
|
RUN set -x \
|
||||||
|
&& apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
|
||||||
|
&& for key in \
|
||||||
|
6A010C5166006599AA17F08146C2130DFD2497F5 \
|
||||||
|
; do \
|
||||||
|
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \
|
||||||
|
done \
|
||||||
|
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
|
||||||
|
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
|
||||||
|
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
|
||||||
|
&& mkdir -p /opt \
|
||||||
|
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
|
||||||
|
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
|
||||||
|
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
|
||||||
|
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
|
||||||
|
&& apk del .build-deps-yarn \
|
||||||
|
# smoke test
|
||||||
|
&& yarn --version
|
33
7.3-alpine/README.md
Normal file
33
7.3-alpine/README.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
[![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:ubuntu-18.04](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.10 | Ubuntu 18.04.1 (bionic) |
|
||||||
|
|
||||||
|
# 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>
|
6
7.3-alpine/build
Executable file
6
7.3-alpine/build
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker pull webdevops/php-nginx:7.3-alpine
|
||||||
|
docker build $1\
|
||||||
|
-t bkraul/php-nginx:7.3-alpine \
|
||||||
|
.
|
4
7.3-alpine/push
Executable file
4
7.3-alpine/push
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker push bkraul/php-nginx:7.3-alpine
|
||||||
|
|
|
@ -9,7 +9,7 @@ RUN set -x \
|
||||||
# install the mssql driver.
|
# install the mssql driver.
|
||||||
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
&& 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 \
|
&& 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 \
|
&& ACCEPT_EULA=Y apt-install msodbcsql17 mssql-tools unixodbc-dev \
|
||||||
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \
|
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \
|
||||||
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \
|
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \
|
||||||
&& /bin/bash -c "source ~/.bashrc" \
|
&& /bin/bash -c "source ~/.bashrc" \
|
||||||
|
|
133
7.4-alpine/Dockerfile
Normal file
133
7.4-alpine/Dockerfile
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
# maintainer information.
|
||||||
|
FROM webdevops/php-nginx:7.4-alpine
|
||||||
|
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
||||||
|
|
||||||
|
# install php modules and drivers.
|
||||||
|
ENV MSSQL_DRIVER_VERSION=6.1.1-1
|
||||||
|
RUN set -x \
|
||||||
|
# install the build pre-requisites.
|
||||||
|
&& apk add --no-cache --virtual .build-deps autoconf file g++ make pkgconf re2c php7-dev unixodbc-dev libmcrypt-dev \
|
||||||
|
# install mssql drivers
|
||||||
|
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& apk add --allow-untrusted msodbcsql17_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& apk add --allow-untrusted mssql-tools_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
# add the mssql-tools binary to the path.
|
||||||
|
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \
|
||||||
|
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \
|
||||||
|
&& /bin/bash -c "source ~/.bashrc" \
|
||||||
|
# install the pecl extensions.
|
||||||
|
#&& pecl install mcrypt-1.0.2 \
|
||||||
|
&& pecl install pdo_sqlsrv \
|
||||||
|
&& pecl install sqlsrv \
|
||||||
|
&& pecl install igbinary \
|
||||||
|
&& pecl install msgpack \
|
||||||
|
# enable the extensions.
|
||||||
|
#&& echo extension=mcrypt.so > /etc/php7/conf.d/20-mcrypt.ini \
|
||||||
|
&& echo extension=pdo_sqlsrv.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/30_pdo_sqlsrv.ini \
|
||||||
|
&& echo extension=sqlsrv.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_sqlsrv.ini \
|
||||||
|
&& echo extension=igbinary.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_igbinary.ini \
|
||||||
|
&& echo extension=msgpack.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_msgpack.ini \
|
||||||
|
#&& echo extension=pdo_sqlsrv.so > /etc/php7/conf.d/30-pdo_sqlsrv.ini \
|
||||||
|
#&& echo extension=sqlsrv.so > /etc/php7/conf.d/20-sqlsrv.ini \
|
||||||
|
#&& echo extension=igbinary.so > /etc/php7/conf.d/20-igbinary.ini \
|
||||||
|
#&& echo extension=msgpack.so > /etc/php7/conf.d/20-msgpack.ini \
|
||||||
|
# perform image cleanup.
|
||||||
|
&& apk del .build-deps \
|
||||||
|
&& rm msodbcsql17_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& rm mssql-tools_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
|
||||||
|
&& docker-run-bootstrap \
|
||||||
|
&& docker-image-cleanup
|
||||||
|
|
||||||
|
# build node.
|
||||||
|
ENV NODE_VERSION 12.19.0
|
||||||
|
RUN set -x \
|
||||||
|
&& apk add --no-cache \
|
||||||
|
libstdc++ \
|
||||||
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
|
curl \
|
||||||
|
&& ARCH= && alpineArch="$(apk --print-arch)" \
|
||||||
|
&& case "${alpineArch##*-}" in \
|
||||||
|
x86_64) \
|
||||||
|
ARCH='x64' \
|
||||||
|
CHECKSUM="0d26ef0d4fa7ffe4f9f4a954bbf6172372528636acf2a69b0fc9ac22e247ac23" \
|
||||||
|
;; \
|
||||||
|
*) ;; \
|
||||||
|
esac \
|
||||||
|
&& if [ -n "${CHECKSUM}" ]; then \
|
||||||
|
set -eu; \
|
||||||
|
curl -fsSLO --compressed "https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz"; \
|
||||||
|
echo "$CHECKSUM node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" | sha256sum -c - \
|
||||||
|
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \
|
||||||
|
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs; \
|
||||||
|
else \
|
||||||
|
echo "Building from source" \
|
||||||
|
# backup build
|
||||||
|
&& apk add --no-cache --virtual .build-deps-full \
|
||||||
|
binutils-gold \
|
||||||
|
g++ \
|
||||||
|
gcc \
|
||||||
|
gnupg \
|
||||||
|
libgcc \
|
||||||
|
linux-headers \
|
||||||
|
make \
|
||||||
|
python2 \
|
||||||
|
# gpg keys listed at https://github.com/nodejs/node#release-keys
|
||||||
|
&& for key in \
|
||||||
|
4ED778F539E3634C779C87C6D7062848A1AB005C \
|
||||||
|
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
|
||||||
|
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
|
||||||
|
8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \
|
||||||
|
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
|
||||||
|
C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \
|
||||||
|
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
|
||||||
|
A48C2BEE680E841632CD4E44F07496B3EB3C1762 \
|
||||||
|
108F52B48DB57BB0CC439B2997B01419BD92F80A \
|
||||||
|
B9E2F5981AA6E0CD28160D9FF13993A75599653C \
|
||||||
|
; do \
|
||||||
|
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \
|
||||||
|
done \
|
||||||
|
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" \
|
||||||
|
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
|
||||||
|
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
|
||||||
|
&& grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
|
||||||
|
&& tar -xf "node-v$NODE_VERSION.tar.xz" \
|
||||||
|
&& cd "node-v$NODE_VERSION" \
|
||||||
|
&& ./configure \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) V= \
|
||||||
|
&& make install \
|
||||||
|
&& apk del .build-deps-full \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -Rf "node-v$NODE_VERSION" \
|
||||||
|
&& rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; \
|
||||||
|
fi \
|
||||||
|
&& rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
|
||||||
|
&& apk del .build-deps \
|
||||||
|
# smoke tests
|
||||||
|
&& node --version \
|
||||||
|
&& npm --version
|
||||||
|
|
||||||
|
# build yarn
|
||||||
|
ENV YARN_VERSION 1.22.5
|
||||||
|
RUN set -x \
|
||||||
|
&& apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
|
||||||
|
&& for key in \
|
||||||
|
6A010C5166006599AA17F08146C2130DFD2497F5 \
|
||||||
|
; do \
|
||||||
|
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" || \
|
||||||
|
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ; \
|
||||||
|
done \
|
||||||
|
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
|
||||||
|
&& curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
|
||||||
|
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
|
||||||
|
&& mkdir -p /opt \
|
||||||
|
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
|
||||||
|
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
|
||||||
|
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
|
||||||
|
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
|
||||||
|
&& apk del .build-deps-yarn \
|
||||||
|
# smoke test
|
||||||
|
&& yarn --version
|
33
7.4-alpine/README.md
Normal file
33
7.4-alpine/README.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
[![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:ubuntu-18.04](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.10 | Ubuntu 18.04.1 (bionic) |
|
||||||
|
|
||||||
|
# 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>
|
6
7.4-alpine/build
Executable file
6
7.4-alpine/build
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker pull webdevops/php-nginx:7.4-alpine
|
||||||
|
docker build $1\
|
||||||
|
-t bkraul/php-nginx:7.4-alpine \
|
||||||
|
.
|
4
7.4-alpine/push
Executable file
4
7.4-alpine/push
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker push bkraul/php-nginx:7.4-alpine
|
||||||
|
|
|
@ -1,10 +1,23 @@
|
||||||
|
FROM webdevops/php-nginx:ubuntu-14.04 AS BUILDER
|
||||||
|
|
||||||
|
ADD ./compile-git-with-openssl.sh /root/compile-git-with-openssl.sh
|
||||||
|
RUN set -x \
|
||||||
|
&& apt update \
|
||||||
|
&& apt install -y checkinstall \
|
||||||
|
&& /root/compile-git-with-openssl.sh --skip-tests --build-dir=/tmp/git-build \
|
||||||
|
&& cd /tmp/git-build \
|
||||||
|
&& checkinstall --pkgname=git --pkgversion=2.24.0 --maintainer=bkraul@belmankraul.com --pkggroup=git --nodoc -y --install=no --backup=no
|
||||||
|
|
||||||
FROM webdevops/php-nginx:ubuntu-14.04
|
FROM webdevops/php-nginx:ubuntu-14.04
|
||||||
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
||||||
|
COPY --from=BUILDER /tmp/git-build/git_2.24.0-1_amd64.deb /tmp/
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apt update \
|
&& apt update \
|
||||||
# install pre-requisites.
|
# install pre-requisites.
|
||||||
&& apt install smbclient samba-common -y \
|
&& apt install smbclient samba-common -y \
|
||||||
|
&& apt remove -y git git-man liberror-perl \
|
||||||
|
&& dpkg -i "/tmp/git_2.24.0-1_amd64.deb" \
|
||||||
|
&& rm "/tmp/git_2.24.0-1_amd64.deb" \
|
||||||
# perform image cleanup.
|
# perform image cleanup.
|
||||||
&& docker-run-bootstrap \
|
&& docker-run-bootstrap \
|
||||||
&& docker-image-cleanup
|
&& docker-image-cleanup
|
||||||
|
|
76
ubuntu-14.04-samba/compile-git-with-openssl.sh
Executable file
76
ubuntu-14.04-samba/compile-git-with-openssl.sh
Executable file
|
@ -0,0 +1,76 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Gather command line options
|
||||||
|
for i in "$@"; do
|
||||||
|
case $i in
|
||||||
|
-skiptests|--skip-tests) # Skip tests portion of the build
|
||||||
|
SKIPTESTS=YES
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-d=*|--build-dir=*) # Specify the directory to use for the build
|
||||||
|
BUILDDIR="${i#*=}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-skipinstall|--skip-install) # Skip dpkg install
|
||||||
|
SKIPINSTALL=YES
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
#TODO Maybe define a help section?
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# Use the specified build directory, or create a unique temporary directory
|
||||||
|
BUILDDIR=${BUILDDIR:-$(mktemp -d)}
|
||||||
|
echo "BUILD DIRECTORY USED: ${BUILDDIR}"
|
||||||
|
mkdir -p "${BUILDDIR}"
|
||||||
|
cd "${BUILDDIR}"
|
||||||
|
|
||||||
|
# Download the source tarball from GitHub
|
||||||
|
apt update
|
||||||
|
apt install curl -y
|
||||||
|
git_tarball_url="https://www.github.com$(curl 'https://github.com/git/git/tags' | grep -o "/git/git/archive/v2\..*\.tar\.gz" | sort -r | head -1 | tr -d '\n')"
|
||||||
|
echo "DOWNLOADING FROM: ${git_tarball_url}"
|
||||||
|
curl -L --retry 5 "${git_tarball_url}" --output "git-source.tar.gz"
|
||||||
|
tar -xf "git-source.tar.gz" --strip 1
|
||||||
|
|
||||||
|
# Source dependencies
|
||||||
|
# Don't use gnutls, this is the problem package.
|
||||||
|
sudo apt remove --purge libcurl4-gnutls-dev -y || true
|
||||||
|
# Using apt-get for these commands, they're not supported with the apt alias on 14.04 (but they may be on later systems)
|
||||||
|
sudo apt-get autoremove -y
|
||||||
|
sudo apt-get autoclean
|
||||||
|
# Meta-things for building on the end-user's machine
|
||||||
|
sudo apt install build-essential autoconf dh-autoreconf -y
|
||||||
|
# Things for the git itself
|
||||||
|
sudo apt install libcurl4-openssl-dev tcl-dev gettext asciidoc -y
|
||||||
|
sudo apt install libexpat1-dev libz-dev -y
|
||||||
|
|
||||||
|
# Build it!
|
||||||
|
make configure
|
||||||
|
# --prefix=/usr
|
||||||
|
# Set the prefix based on this decision tree: https://i.stack.imgur.com/BlpRb.png
|
||||||
|
# Not OS related, is software, not from package manager, has dependencies, and built from source => /usr
|
||||||
|
# --with-openssl
|
||||||
|
# Running ripgrep on configure shows that --with-openssl is set by default. Since this could change in the
|
||||||
|
# future we do it explicitly
|
||||||
|
./configure --prefix=/usr --with-openssl
|
||||||
|
make
|
||||||
|
make all #doc info
|
||||||
|
if [[ "${SKIPTESTS}" != "YES" ]]; then
|
||||||
|
make test
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install
|
||||||
|
if [[ "${SKIPINSTALL}" != "YES" ]]; then
|
||||||
|
# If you have an apt managed version of git, remove it
|
||||||
|
if apt remove --purge git -y; then
|
||||||
|
sudo apt-get autoremove -y
|
||||||
|
sudo apt-get autoclean
|
||||||
|
fi
|
||||||
|
# Install the version we just built
|
||||||
|
make install #install-doc install-html install-info
|
||||||
|
echo "Make sure to refresh your shell!"
|
||||||
|
bash -c 'echo "$(which git) ($(git --version))"'
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user