Merge pull request #2891 from brandonroberts/gitpod-support
feat: add support for using Gitpod for development
This commit is contained in:
commit
9a1862e4a2
13
.gitpod.Dockerfile
vendored
Normal file
13
.gitpod.Dockerfile
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM gitpod/workspace-full
|
||||
|
||||
# Disable current PHP installation
|
||||
RUN sudo a2dismod php7.4
|
||||
RUN sudo a2dismod mpm_prefork
|
||||
|
||||
# Install apache2 (PHP install requires to do this first)
|
||||
RUN sudo apt --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install apache2
|
||||
|
||||
# Update to PHP 8.0 with unattended installation
|
||||
RUN sudo apt --yes install software-properties-common && sudo add-apt-repository ppa:ondrej/php -y
|
||||
RUN sudo apt update
|
||||
RUN sudo apt --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install php8.0
|
18
.gitpod.yml
Normal file
18
.gitpod.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
image:
|
||||
file: .gitpod.Dockerfile
|
||||
|
||||
tasks:
|
||||
- init: docker-compose pull &&
|
||||
docker-compose build &&
|
||||
docker run --rm --interactive --tty --volume $PWD:/app composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist
|
||||
command: |
|
||||
docker-compose up -d
|
||||
|
||||
ports:
|
||||
- port: 8080
|
||||
onOpen: ignore
|
||||
visibility: public
|
||||
|
||||
vscode:
|
||||
extensions:
|
||||
- ms-azuretools.vscode-docker
|
|
@ -22,6 +22,7 @@ services:
|
|||
- --accesslog=true
|
||||
ports:
|
||||
- 80:80
|
||||
- 8080:80
|
||||
- 443:443
|
||||
- 9500:8080
|
||||
volumes:
|
||||
|
|
Loading…
Reference in a new issue