-
Notifications
You must be signed in to change notification settings - Fork 64
/
.gitpod.Dockerfile
36 lines (28 loc) · 1.16 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM gitpod/workspace-full
USER root
# Update APT Database
### base ###
RUN sudo apt-get update -q \
&& sudo apt-get install -y php-dev
# 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"
# Install latest composer v2 release
RUN curl -s https://getcomposer.org/installer | php \
&& sudo mv composer.phar /usr/bin/composer \
&& sudo mkdir -p /home/gitpod/.config \
&& sudo chown -R gitpod:gitpod /home/gitpod/.config
USER gitpod
# Install Changelogger
RUN COMPOSER_ALLOW_SUPERUSER=1 composer global require churchtools/changelogger
# Add composer bin folder to $PATH
#ENV PATH="$PATH:/home/gitpod/.config/composer/vendor/bin"
# Add Workspace/Project composer bin folder to $PATH
ENV PATH="$PATH:$HOME/.config/composer/vendor/bin:$GITPOD_REPO_ROOT/vendor/bin"