Skip to content

Commit

Permalink
ci: fix devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
keenthekeen committed Oct 14, 2024
1 parent 7944556 commit 1ffa86e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
28 changes: 0 additions & 28 deletions .devcontainer/Dockerfile

This file was deleted.

19 changes: 8 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
// https://aka.ms/devcontainer.json
{
"name": "Laravel dev",
build: {
context: "..",
dockerfile: "Dockerfile"
},
"dockerComposeFile": [
"docker-compose.yml"
],
"service": "laravel.test",
"workspaceFolder": "/var/www/html",
"customizations": {
"vscode": {
"extensions": [
"mikestead.dotenv",
"amiralizadeh9480.laravel-extra-intellisense",
"ryannaddy.laravel-artisan",
// "onecentlin.laravel5-snippets",
// "onecentlin.laravel-blade"
"onecentlin.laravel5-snippets",
"onecentlin.laravel-blade"
],
"settings": {}
}
},
"remoteUser": "www-data",
"postCreateCommand": "chown -R 1000:1000 /var/www/html 2>/dev/null || true",
"forwardPorts": [
8080
],
"remoteUser": "root",
"postCreateCommand": "composer install && touch database/database.sqlite && cp -n .env.example .env && php artisan key:generate && php artisan migrate && pnpm install --frozen-lockfile && pnpm build"
// "runServices": [],
// "shutdownAction": "none",
}
31 changes: 31 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
services:
laravel.test:
# build:
# context: './vendor/laravel/sail/runtimes/8.3'
# dockerfile: Dockerfile
# args:
# WWWGROUP: '${WWWGROUP}'
# image: 'sail-8.3/app'
image: ariaieboy/sail-runtime-image:8.3
# user: "${WWWUSER}:${WWWGROUP}"
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
WEBSERVER: cli
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
IGNITION_LOCAL_SITES_PATH: '${PWD}'
SUPERVISOR_PHP_USER: sail
volumes:
- '..:/var/www/html'
networks:
- sail
depends_on: { }
networks:
sail:
driver: bridge

0 comments on commit 1ffa86e

Please sign in to comment.