An open API service indexing awesome lists of open source software.

https://github.com/flownative/docker-localbeach-devkit

The Local Beach Dev Kit
https://github.com/flownative/docker-localbeach-devkit

docker-image flownative-beach localbeach

Last synced: about 1 year ago
JSON representation

The Local Beach Dev Kit

Awesome Lists containing this project

README

          

# Local Beach Dev Kit

![Build](https://github.com/flownative/docker-localbeach-devkit/workflows/Build%20Docker%20images/badge.svg)

This Docker image is used as a sidecar-container in Local Beach
development environments and takes care of synchronizing files from the
host (your machine) to a shared volume. This is usually only necessary
in MacOS environments, because file access is too slow when you are
mounting a host directory to the container directly.

## Background

A sync daemon, based on inotify, watches a source directory and
synchronizes all changes – that is, files or directories created,
modified or deleted – to a target directory.

In a Local Beach setup, the source directory is called
"application-on-host" and is a direct mount of the application directory
on the developer's computer. The target directory is called
"application" and is a Docker volume which is shared across the Nginx
and PHP-FPM container.

See Local Beach for further details about which directory mounts exist.

## Usage

Make sure that a shared volume – for example called "application" -
exists in your Docker Compose configuration:

````yaml
volumes:
application:
name: myproject-application
driver: local
````

Then include the Local Beach Dev Kit image as an additional container:

```yaml
devkit:
image: flownative/localbeach-devkit
volumes:
- application:/application
- .:/application-on-host:delegated
```

## Configuration

You can override source and target paths by setting the environment
variables `SYNC_APPLICATION_ON_HOST_PATH` and `SYNC_APPLICATION_PATH`
respectively.