Nincs leírás https://git.hackware.cl/guix-lemp-container

Felix Freeman b3ec694f56 Fix outrageous typo that broke query params on Nginx 4 éve
etc b3ec694f56 Fix outrageous typo that broke query params on Nginx 4 éve
var 029006b19f Initial commit. Working Nginx + MariaDB + PHP for local development 4 éve
.gitignore 029006b19f Initial commit. Working Nginx + MariaDB + PHP for local development 4 éve
README.md 9e6d46895b Differentiate `public_path` from `shared_path` + instructions for customization 4 éve
reset.sh 029006b19f Initial commit. Working Nginx + MariaDB + PHP for local development 4 éve
run.sh 9e6d46895b Differentiate `public_path` from `shared_path` + instructions for customization 4 éve

README.md

GNU Guix LEMP container

Currently only supports WordPress applications officially, but should work good with other frameworks, such as Laravel.

Notice I'm using non-POSIX -i option on sed, just to make code clearer, since I know BusyBox' sed supports it, be mindful that it will break symlinks, act on original files (/usr) when replacing within the guix environment.

Usage

  1. Execute run.sh <shared_path> <public_path>*
  2. Run source /usr/etc/profile inside the container
  3. start the services

* public_path is a relative route within shared_path ex: run.sh $HOME/dev public

That's it!

It will start Nginx on port 8000 and MariaDB on port 3306. You can interact with MariaDB just by typing mysql on the spawned console. Other executables and BusyBox are available also.

You can stop the services with stop inside the container.

You can clean your environment with reset.sh, that will restore the original state of this project, incluiding database wiping (but it will leave the shared_path intact).

How do I customize the files on etc/ ?

Just edit them :)

Notice that changes will be lost if you reset.sh.

To avoid this:

  1. If you have already done changes, save them in a place out of this project then run reset.sh
  2. Create a branch with git checkout -b your-branch
  3. Add the desired changes you need on etc/
  4. Commit your changes with git commit

When you run reset.sh again your changes will remain intact (up to the state of your commit).

Files

A lot of the magic happens when you source the file on etc/profile.