pocky / rymfony-docker

Rymfony a in container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 instead of standard Symfony server. 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:<version> .
  • Profit!

Usage

For the moment, there are few problems with Rymfony through Docker:

I also need to check some points:

  • ca-certificate
  • ctrl+c stop server but *.pid files are not removed (because of volume?)
docker run -it --rm \
	--network="host" \
	-v $(pwd):/usr/src/app \
	-v $(pwd)/.rymfony:/root/.rymfony \
	-w /usr/src/app rymfony:<version> \
	rymfony <command>

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)

user = www-data
group = www-data

And profit!

Contributing

See the CONTRIBUTING file.

Code of conduct

Be nice and take a look on our CODE OF CONDUCT.

Support

This project is open source and this is our support rules.

License

This project is licensed under AGPLv3.

Credits

Created by Alexandre Balmes. See also the thank you.

About

Rymfony a in container

License:GNU Affero General Public License v3.0


Languages

Language:Dockerfile 100.0%