1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Merge pull request #2891 from brandonroberts/gitpod-support

feat: add support for using Gitpod for development
This commit is contained in:
Eldad A. Fux 2022-03-09 05:19:46 +02:00 committed by GitHub
commit 9a1862e4a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 0 deletions

13
.gitpod.Dockerfile vendored Normal file
View 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
View 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

View file

@ -22,6 +22,7 @@ services:
- --accesslog=true
ports:
- 80:80
- 8080:80
- 443:443
- 9500:8080
volumes: