Skip to content

Commit

Permalink
Gitpod action
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Sep 28, 2024
1 parent f4d160c commit 68a5b92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ tasks:
command: echo 'start script'
- name: Install OpenMage
init: |
BASE_URL="$(echo "$GITPOD_WORKSPACE_URL" | sed s~https://~https://8000-~)"
HOST_PORT=8000 BASE_URL=$BASE_URL bash dev/gitpod/install.sh
command: docker ps
cd dev/gitpod
echo "# Generated by .gitpod.yml - edit as needed" > .env
echo "HOST_NAME=8000-$GITPOD_WORKSPACE_ID.$GITPOD_WORKSPACE_CLUSTER_HOST" >> .env
echo "HOST_PORT=8000" >> .env
echo "BASE_URL=https://8000-$GITPOD_WORKSPACE_ID.$GITPOD_WORKSPACE_CLUSTER_HOST/" >> .env
command: bash dev/gitpod/install.sh
openMode: tab-after
- name: prepare git
init: git config core.fileMode false
Expand Down
6 changes: 3 additions & 3 deletions dev/gitpod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ version: "3.7"

services:
apache:
image: openmage/php-dev:7.4-apache
image: ghcr.io/colinmollenhour/docker-openmage:8.2-apache
hostname: ${HOST_NAME:-openmage-7f000001.nip.io}
user: "33333:33333"
ports:
- "${HOST_PORT:-80}:80"
volumes:
- ../..:/var/www/html
environment:
- ENABLE_SENDMAIL=true
- XDEBUG_CONFIG=remote_connect_back=1 remote_enable=1 idekey=phpstorm
- ENABLE_SENDMAIL=false
- XDEBUG_CONFIG=
- MAGE_IS_DEVELOPER_MODE=1
links:
- mysql
Expand Down

0 comments on commit 68a5b92

Please sign in to comment.