Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pocky/rymfony-docker
Rymfony a in container
https://github.com/pocky/rymfony-docker
Last synced: 23 days ago
JSON representation
Rymfony a in container
- Host: GitHub
- URL: https://github.com/pocky/rymfony-docker
- Owner: pocky
- License: agpl-3.0
- Created: 2021-03-21T20:35:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-23T18:05:17.000Z (over 3 years ago)
- Last Synced: 2024-10-03T11:22:21.912Z (about 1 month ago)
- Language: Dockerfile
- Size: 23.4 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
# Rymfony docker
Use rymfony in a container
## Why?
I don't have any php binaries on my computer because my projects are always dockerized
with different PHP versions, on different computers etc.This Dockerfile allow me to test my Symfony projects against PHP.
This dockerfile use Debian (because I don't like Alpine and always use Debian in production)
and [Rymfony](https://github.com/Orbitale/Rymfony) instead of standard [Symfony server](https://symfony.com/doc/current/setup/symfony_server.html).
Rymfony has fewer functionalities than Symfony one but Rymfony is truly open source (for the win).## Installation
- Clone this project
- Go to `8.0` (or 7.4) and run `docker build -t rymfony: .`
- Profit!## Usage
For the moment, there are few problems with Rymfony through Docker:
- [sudo is required](https://github.com/Orbitale/Rymfony/issues/79)
- [User and group configuration in fpm-conf.ini](https://github.com/Orbitale/Rymfony/issues/79) (related to root user)
- can't share uid/gid (thread 'main' panicked with PermissionDenied on Result::unwrap in src/main.rs:65:55)
- rymfony is killed with ctrl+c but can't restart (Error: server is already running)I also need to check some points:
- ca-certificate
- ctrl+c stop server but *.pid files are not removed (because of volume?)```bash
docker run -it --rm \
--network="host" \
-v $(pwd):/usr/src/app \
-v $(pwd)/.rymfony:/root/.rymfony \
-w /usr/src/app rymfony: \
rymfony
````rymfony server:start` will fail during the first run because of `fpm-conf.ini`.
After this first (failed) run, go to `.rymfony` folder and edit `fpm-conf.ini`:Replace lines 17/18 (remove comment and change user/group)
```bash
user = www-data
group = www-data
```And profit!
## Contributing
See the [CONTRIBUTING](.github/CONTRIBUTING.md) file.
## Code of conduct
Be nice and take a look on our [CODE OF CONDUCT](.github/CODE_OF_CONDUCT.md).
## Support
This project is open source and this is our [support rules](.github/SUPPORT.md).
## License
This project is licensed under AGPLv3.
## Credits
Created by [Alexandre Balmes](https://alexandre.balmes.co).
See also the [thank you](.github/thank-you.md).