Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madalinignisca/devcontainers
Devcontainers or Codespace with optimizations for PHP and Nodejs development. Laravel, Symfony, WordPress, Drupal etc.
https://github.com/madalinignisca/devcontainers
Last synced: 6 days ago
JSON representation
Devcontainers or Codespace with optimizations for PHP and Nodejs development. Laravel, Symfony, WordPress, Drupal etc.
- Host: GitHub
- URL: https://github.com/madalinignisca/devcontainers
- Owner: madalinignisca
- License: mit
- Created: 2020-09-11T13:10:35.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-14T21:06:00.000Z (3 months ago)
- Last Synced: 2024-08-14T22:52:21.227Z (3 months ago)
- Language: Dockerfile
- Size: 249 KB
- Stars: 21
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# devcontainers
Devcontainers or Codespace with optimizations for PHP and Nodejs development.Laravel, Symfony, CakePHP, Codeigniter, AdonisJS, NestJS, SailsJS, WordPress, Drupal, Magento,
Prestashop, Opencart compatible or any NodeJS and PHP project.## Getting started:
Copy `.devcontainer.json` and `docker-compose.yaml` in your project root. Customize as needed.
Continue with the [Wiki](https://github.com/madalinignisca/devcontainers/wiki) for advanced documentation.
## Important for Windows 10/11 users:
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configure-global-options-with-wslconfig
Make sure you will set a memory limit, as the 50% (80% in older versions) default limit will allow WSL2 to do aggresive caching in ram
and will simply make your system slow, sometimes even freezing minutes. This is not a bug of Docker, neither of
Linux. It's purely a missed optimization of Microsoft in WSL2, forgetting that Linux, like Windows as well, is
very aggressive on caching anything possible.Example: I use 4GB memory limit and 0 swap to make docker behave identical like on a virtual server with 4gb of ram.
Works fine on a 16GB laptop, no slowness while running devcontainers with lots of services, including
Elastic Search. On a 8GB Windows Host, I would set 3GB memory limit, and tweak in `docker-compose.yaml` to enforce
lower memory limits per services, but do really investigate if those services can run with extrem low memory constrains.Alternative on <= 16GB of ram, I strongly recommend using a remote small cloud server. Combining REMOTE SSH extension
for Visual Studio Code with the REMOTE DOCKER extension is stright forward with no special setup.## Sponsors:
### Silver:
- [Coder](https://coder.com/)