forked from eclipse-che/che-theia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker image for PHP Language Support and Debugger
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
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |