Skip to content

Commit

Permalink
Docker image for PHP Language Support and Debugger
Browse files Browse the repository at this point in the history
Based on che-theia-endpoint-runtime image.

Includes the following php7 packages:

    php7 php7-fpm php7-opcache
    php7-gd php7-mysqli php7-zlib php7-curl
    php7-xdebug

In order to be used for VSCode PHP Language Support and Debugger extensions, it should be built using `--tag=next` which
will add the support for node:10.15 and the latest VSCode API support required to run the mentioned VSCode extensions.

Issue: eclipse-che/che#12772

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
  • Loading branch information
vrubezhny committed May 20, 2019
1 parent 7bccaab commit 8dc83ea
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dockerfiles/remote-plugin-php7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) 2019 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation

FROM ${BUILD_ORGANIZATION}/${BUILD_PREFIX}-theia-endpoint-runtime:${BUILD_TAG}

RUN apk --update --no-cache add \
ca-certificates \
php7 php7-fpm php7-opcache \
php7-gd php7-mysqli php7-zlib php7-curl \
&& apk --update --no-cache add \
php7-xdebug --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
&& echo "zend_extension=$(find /usr/lib/php7/modules/ -name xdebug.so)" > /etc/php7/php.ini \
&& echo "xdebug.coverage_enable=0" >> /etc/php7/php.ini \
&& echo "xdebug.remote_enable=1" >> /etc/php7/php.ini \
&& echo "xdebug.remote_connect_back=1" >> /etc/php7/php.ini \
&& echo "xdebug.remote_log=/tmp/xdebug.log" >> /etc/php7/php.ini \
&& echo "xdebug.remote_autostart=true" >> /etc/php7/php.ini

WORKDIR /projects
15 changes: 15 additions & 0 deletions dockerfiles/remote-plugin-php7/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#
# Copyright (c) 2019 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#

base_dir=$(cd "$(dirname "$0")"; pwd)
. "${base_dir}"/../build.include

init --name:remote-plugin-php7 "$@"
build

0 comments on commit 8dc83ea

Please sign in to comment.