A collection of patch notes and upgrade instructions.
Please add newer logs above older logs. See bottom of file for template.
Author: JCarter
- Add
DOCKER_CLISCRIPT_PATH
to yourdocker.env
. - Replace
dr.sh
,du.sh
, anddocker-compose.yml
. - Users may wish to rename their
~/docker
dir to~/docker-data
to bring it inline with the new default.
- Readme updated for this update.
- Defined defaults in
dr.sh
forDOCKER_YARN_PATH
andDOCKER_CLISCRIPT_PATH
. There's no perfect solution here as cli path is used in docker-compose, but yarn path is not, etc. - A little formatting on the files, nothing that affects functionality.
- Default shared dir changed to
docker-data
for clarity.
- Added
DOCKER_CLISCRIPT_PATH
fordocker.env
which is used bydr.sh
to runtask
. - Added
task
action todr.sh
which lists available dev/tasks or runs a task if one is supplied. - Added
fpmreload
action todr.sh
which runskill -USR2 1
on the php container. - Added
DOCKER_SSH_VOLUME
for.env
which is used bydocker-compose.yml
to mount ssh dir to phpcli container (needed for mac users). This has no effect for linux users. - Added
DOCKER_EXEC_IDS
for.env
which is used bydr.sh
to define the executing user (uid:gid
) (needed for mac users). This has no effect for linux users. - Added
fixperms
action todr.sh
which sets permissions for all directories and files inDOCKER_SHARED_PATH
and the project directory so that containers can rwx to them. - Added
DOCKER_COMPOSER_TIMEOUT
for.env
which is used bydocker-compose.yml
to set the composer timeout. The composer default is 300, and so is thedu.sh
default.
Author: JCarter
- Create
docker.env
file in project root. - Add these vars to
docker.env
(where relevant). Vars should be wrapped in quotes.- Add
DOCKER_CONTAINER
with same value asCONTAINERS
indu.sh
. - Add
DOCKER_PHP_VERSION
with php version fromdocker-compose.yml
. - Add
DOCKER_MYSQL_VERSION
with mysql version fromdocker-compose.yml
. - Add
DOCKER_NODE_VERSION
with node version fromdocker-compose.yml
. - Add
DOCKER_YARN_PATH
with same value asYARN_DIR
indr.sh
.
- Add
- Commit
docker.env
to your repo. - Replace
docker-compose.yml
,du.sh
, anddr.sh
and commit to repo.
Optional:
- Create
.env
file in project root and add local docker vars (see below). Do not commit this file.
- Environment variables are now loaded from
.env
anddocker.env
.
- Readme updated with these changes and generally cleaned up.
- MySQL container renamed from
mysql56
tomysql
. Existing functionality is unaffected, but keep in mind if running commands directly on containers. PHP_FPM_EXTENSIONS
renamed toDOCKER_PHP_COMMAND
.
- Environment config overhaul.
- New options for
du.sh
.
Project vars (defined in a remote docker.env
file).
DOCKER_CONTAINERS
DOCKER_PHP_VERSION
DOCKER_MYSQL_VERSION
DOCKER_NODE_VERSION
DOCKER_YARN_PATH
User vars (defined in a local .env
file).
DOCKER_SHARED_PATH
DOCKER_PROJECT_PATH
DOCKER_ATTACHED_MODE
DOCKER_PHP_COMMAND
The goal here is to move variables out of the 3 core docker files so that:
- Easier to update the core docker files across projects.
- Easier to update user/project docker config.
- More obvious where user/project docker config is stored (and which is which).
The DOCKER_PROJECT_PATH
is specifically to separate project data and avoid issues like muddled logs, or using different mysql versions. The shared path still exists for the composer-cache, etc.
-s
Stops all running containers before starting new containers.-k
Kills all running containers before starting new containers.-r
Removes all stopped containers before starting new containers.-p
Pulls down latest images for new containers before starting them.-c
Cancel starting containers (like doing 'ctrl+c' right before containers start).
You can combine these flags and each flag will be executed in the given order.
Common uses:
./du.sh -s
when swapping projects (or-k
when you don't care to retain container states)../du.sh -kr
when you want to reset the container environment../du.sh -p
when starting a project you haven't used in a while../du.sh -pc
when you want to update a project's images, but not start the containers.
Author: Name
- Point 1.
- Point 2.
- Point 1.
- Point 2.
- Point 1.
- Point 2.
- Point 1.
- Point 2.
- Feature 1.
- Feature 2.
Text about feature 1.
Text about feature 2.