-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Maintenance][Docker]Create simple docker environment #13850
Conversation
6375485
to
c2bf418
Compare
Makefile
Outdated
bin/console sylius:fixtures:load default --no-interaction | ||
bin/console cache:warmup | ||
yarn install --pure-lockfile | ||
node_modules/gulp/bin/gulp.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why aren't you using yarn build command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean for sake of readability I can change that. But the reason for that.. they are the same commands. When running gulp without any command parameter he will run the export default
from gulpfile.js
which in our case is build
.
Long story short in our case node_modules/gulp/bin/gulp.js
and yarn build
are the same.
c2bf418
to
35b883b
Compare
eec8ab2
to
49589a8
Compare
@lchrusciel can I ask you for merge or re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, I've mentioned it, but in the next iteration we should provide some background worker for catalogue promotions in perhaps separate container or something like it
vendor/bin/phpunit | ||
vendor/bin/phpspec run --ansi --no-interaction -f dot | ||
vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&@cli&&~@todo" # CLI Behat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought for later - won't it be better to reference this file instead of duplication of logic?
This is the first version of working Sylius monorepo Docker Compose. Please note, that it is a simple docker environment and some things may not work yet out of the box - we should use it and inform you about any existing issues.
Things that do not work yet, but are not crucial
xdebug
yet, but it will be provided in the nearest futureRequirements
How to run?
docker compose up -d
docker-compose exec app bash
ordocker compose exec app bash
for docker compose V2make init
- it will execute fixtures and composerhttp://localhost:80
How to update?
docker-compose down
docker compose up -d
make init
- it will execute fixtures, composer, and node updateshttp://localhost:80