Skip to content

Partial dockerize development environment#11

Merged
luislavena merged 6 commits into
masterfrom
feature/dockerize-development
Mar 5, 2020
Merged

Partial dockerize development environment#11
luislavena merged 6 commits into
masterfrom
feature/dockerize-development

Conversation

@luislavena

@luislavena luislavena commented Jan 24, 2019

Copy link
Copy Markdown
Member

Aim to simplify local development:

  • Dockerize PHP 5.6 using Apache in order to reduce the number of local dependencies.
  • Lock Node packages (using Yarn) to ensure consistent versioning across environments
  • Updated the generated CSS

Requirements:

  • Docker & docker-compose

Usage:

  • Build image using docker-compose build web
  • Boot PHP application using docker-compose up web
  • Use Ctrl+C or docker-compose down from another terminal window
  • Install assets within the default theme using yarn install
  • Replace grunt init and grunt build with yarn run grunt:init and yarn run grunt:build respectively.

/cc @mubashariqbal @mrdoinel

@luislavena luislavena requested review from ifox and mrdoinel January 24, 2019 13:10
@luislavena

Copy link
Copy Markdown
Member Author

Hello @mrdoinel @ifox, the only biggest change in this PR is the usage of yarn instead of plain npm for theme installation.

Still far from ideal scenario (mix of docker container for PHP and native Node for building the theme), but seems to be working properly.

Looking forward your comments.
❤️ ❤️ ❤️

This file should be ignored and instead `.htaccess` needs to be
created from `htaccess` one.

Update the later to ensure has all the right settings.
- Lock down version of node (LTS)
- Avoid global installation of packages
- Use `yarn` and lock dependencies with it
YAML uses 2 spaces, correct the included samples to avoid possible
issues.
This builds a basic PHP 5.6 image with Apache and copies over the engine
and themes within the image.

Via composer, it allow mounting configuration and files from your local
setup in order to test the application.
@luislavena luislavena force-pushed the feature/dockerize-development branch from d757eed to b754700 Compare February 1, 2019 12:40
@ifox

ifox commented Feb 2, 2019

Copy link
Copy Markdown
Member

This is great thanks @luislavena!

The only thing I noticed is that the generated css is missing some browser prefixes but most are most likely not needed anymore and it is probably because the updated autoprefixer dependency has updated rules, right?

@luislavena

Copy link
Copy Markdown
Member Author

Yeah @ifox, noticed the same thing, so asked @mrdoinel to review a previous patch of this before submitting the PR.

🏓 @mrdoinel ?

@mrdoinel

mrdoinel commented Feb 4, 2019

Copy link
Copy Markdown
Contributor

Yeah this is fine : we dont need webkit prefix anymore for the CSS animations (since at least version 9).

@luislavena

Copy link
Copy Markdown
Member Author

Great, thank you @mrdoinel! 🎉

If you have no further objections @ifox, I would like to get this merged.

Thank you!
❤️ ❤️ ❤️

@luislavena luislavena merged commit 8b33ac1 into master Mar 5, 2020
@luislavena luislavena deleted the feature/dockerize-development branch March 5, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants