Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1cc06e4

Browse files
Added missing phpdev folder
1 parent 5fd88a7 commit 1cc06e4

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

‎custom/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*
2+
!.gitignore
23
!example
34
!phpdev

‎custom/phpdev/Dockerfile‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#Arguments
2+
ARG BUILD_FROM=test
3+
4+
FROM $BUILD_FROM
5+
6+
# Generate image ssh key
7+
# Images with a key pair should not be pushed to public repositories.
8+
RUN rm -rf /root/.ssh/base_id_rsa* \
9+
&& ssh-keygen -f /root/.ssh/id_rsa -t rsa -N ''
10+
11+
# Install Memcached extension
12+
ENV MEMCACHED_DEPS zlib-dev libmemcached-dev cyrus-sasl-dev
13+
14+
RUN apk add --no-cache --update libmemcached-libs zlib libzip libzip-dev \
15+
curl-dev libxml2-dev libedit-dev libsodium-dev tidyhtml-dev postgresql-dev
16+
17+
RUN set -xe \
18+
&& apk add --no-cache --update --virtual .phpize-deps $PHPIZE_DEPS \
19+
&& apk add --no-cache --update --virtual .memcached-deps $MEMCACHED_DEPS \
20+
&& pecl install memcached \
21+
&& echo "extension=memcached.so" > /usr/local/etc/php/conf.d/20_memcached.ini \
22+
&& rm -rf /usr/share/php7 \
23+
&& rm -rf /tmp/* \
24+
&& apk del .memcached-deps .phpize-deps
25+
26+
#Install ICU support
27+
RUN set -xe \
28+
&& apk add --update icu \
29+
&& apk add --no-cache --virtual .php-deps make \
30+
&& apk add --no-cache --virtual .build-deps \
31+
$PHPIZE_DEPS zlib-dev icu-dev g++ pcre-dev \
32+
&& docker-php-ext-configure intl \
33+
&& docker-php-ext-install intl \
34+
&& docker-php-ext-enable intl
35+
36+
# Install Redis extension
37+
RUN docker-php-source extract && \
38+
pecl install xdebug redis && \
39+
docker-php-ext-enable xdebug redis && \
40+
docker-php-source delete
41+
42+
# Install php extensions
43+
RUN set -ex \
44+
&& pecl install igbinary zip \
45+
&& docker-php-ext-enable igbinary zip \
46+
&& docker-php-ext-install pdo bcmath curl intl pdo_mysql pdo_pgsql soap xml xmlrpc json readline \
47+
sodium calendar simplexml tidy xmlrpc \
48+
&& CFLAGS="-I/usr/src/php" docker-php-ext-install xmlreader
49+
50+
# Expose port 80
51+
EXPOSE 80

‎custom/phpdev/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PHPDev Box fully loaded with extensions
2+
=======

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /