-
Notifications
You must be signed in to change notification settings - Fork 10
Local development environment
ucan-lab edited this page Mar 28, 2022
·
7 revisions
$ mkdir dacapo
$ cd dacapo
$ git clone [email protected]:ucan-lab/docker-laravel.git laravel-dacapo-docker
$ git clone [email protected]:ucan-lab/laravel-dacapo.git
laravel-dacapo-docker/infra/docker/php/Dockerfile
FROM php:8.0-fpm-bullseye AS base
Add to services.app.volumes
of laravel-dacapo-docker/docker-compose.yml
services:
app:
# Add
volumes:
- type: bind
source: ../laravel-dacapo
target: /packages/laravel-dacapo
Create a Laravel project.
$ cd laravel-dacapo-docker
$ make create-project
Git initialize.
$ rm -rf .git
$ git init
$ git add .
$ git commit -m "first commit"
Edit composer.json
"repositories": [
{
"type": "path",
"url": "/packages/laravel-dacapo",
"symlink": true
}
],
Install ucan-lab/laravel-dacapo
$ docker compose exec app bash
$ composer require --dev ucan-lab/laravel-dacapo
$ git add .
$ git commit -m "chore composer require --dev ucan-lab/laravel-dacapo"
$ docker compose exec app bash
$ cd /packages/laravel-dacapo
$ composer install
$ make composer-install-tools