-
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.
Import config from gitpod-io/workspace-images#321 (comment)
- Loading branch information
0 parents
commit cd0c42f
Showing
3 changed files
with
39 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,23 @@ | ||
FROM gitpod/workspace-mysql | ||
|
||
USER gitpod | ||
|
||
# Install php-dev | ||
RUN sudo apt-get update -q \ | ||
&& sudo apt-get install -y php-dev | ||
|
||
# Build and install Xdebug | ||
RUN wget http://xdebug.org/files/xdebug-2.9.1.tgz \ | ||
&& tar -xvzf xdebug-2.9.1.tgz \ | ||
&& cd xdebug-2.9.1 \ | ||
&& phpize \ | ||
&& ./configure \ | ||
&& make \ | ||
&& sudo mkdir -p /usr/lib/php/20190902 \ | ||
&& sudo cp modules/xdebug.so /usr/lib/php/20190902 \ | ||
&& sudo bash -c "echo -e '\nzend_extension = /usr/lib/php/20190902/xdebug.so\n[XDebug]\nxdebug.remote_enable = 1\nxdebug.remote_autostart = 1\n' >> /etc/php/7.4/cli/php.ini" | ||
|
||
# Export environment variables | ||
ENV DATABASE_USER=root | ||
ENV DATABASE_HOST=127.0.0.1 | ||
ENV DATABASE_PASSWORD= |
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,8 @@ | ||
image: | ||
file: .gitpod.Dockerfile | ||
|
||
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/ | ||
tasks: | ||
- init: ./setup.sh | ||
- before: wget https://get.symfony.com/cli/installer -O - | bash | ||
command: export PATH="$HOME/.symfony/bin:$PATH" && symfony server:start |
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,8 @@ | ||
#!/bin/bash | ||
|
||
# Install databases | ||
mysql -e 'CREATE DATABASE app;' | ||
mysql -e 'CREATE DATABASE app_test;' | ||
|
||
# Install Composer dependencies | ||
composer install |