-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.gitpod.Dockerfile
More file actions
25 lines (20 loc) · 962 Bytes
/
.gitpod.Dockerfile
File metadata and controls
25 lines (20 loc) · 962 Bytes
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
FROM gitpod/workspace-mysql
USER gitpod
RUN sudo apt-get -q update && \
sudo apt-get install -y tig && \
sudo rm -rf /var/lib/apt/lists/*
RUN sudo apt-get purge composer -y; exit 0
RUN mkdir ~/bin
RUN echo "export PATH=$PATH:'~/bin'" >> ~/.bashrc
RUN echo "alias ulipreview='gp preview $(drush uli --uri=$(gp url 8888))'" >> ~/.bashrc
RUN echo "alias uli='drush uli --uri=$(gp url 8888)'" >> ~/.bashrc
RUN echo "alias composer=~/bin/composer" >> ~/.bashrc
RUN curl -OL https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar && \
chmod +x drush.phar && \
mv drush.phar ~/bin/drush
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar ~/bin/composer
RUN curl -OL https://github.com/vrana/adminer/releases/download/v4.7.8/adminer-4.7.8.php && \
mv adminer-4.7.8.php ~/bin/adminer.php