Comments (4)
@fjogeleit Unfortunately, I've found this issue with docker: moby/moby#18246
It may be possible to use https://github.com/sillypog/inotify-proxy as a workaround this issue.
from swoole-bundle.
I will try it out. Thanks a lot for the fast help.
from swoole-bundle.
I can confirm that it works with this workaround. Issue could be closed.
from swoole-bundle.
@fjogeleit Thanks for using it. The other day I was working on running tests within docker container's everything worked fine. You can test it here: https://github.com/k911/swoole-bundle/tree/ci/dockerize
docker-compose build --pull
docker-compose run server
But, I didn't mount volumes to the container.
--
To confirm, you've tried this configuration:
swoole:
http_server:
// ...
hmr: 'inotify'
along with setting APP_DEBUG=1
in .env.docker
?
If the answer is yes, could you create small reproducer repository?
--
Edit: Also, I believe you can do this changes in Dockerfile:
FROM php:7.2-cli-alpine
RUN apk add --no-cache xvfb ttf-freefont fontconfig dbus postgresql-dev autoconf make g++ \
&& docker-php-ext-configure mbstring --enable-mbstring \
&& docker-php-ext-install \
mbstring \
pgsql \
pdo_pgsql \
bcmath \
&& pecl install swoole inotify redis \
&& docker-php-ext-enable redis \
- && touch /usr/local/etc/php/conf.d/swoole.ini \
- && echo 'extension=swoole.so' > /usr/local/etc/php/conf.d/swoole.ini \
+ && docker-php-ext-enable swoole \
- && touch /usr/local/etc/php/conf.d/inotify.ini \
- && echo 'extension=inotify.so' > /usr/local/etc/php/conf.d/inotify.ini
+ && docker-php-ext-enable inotify
from swoole-bundle.
Related Issues (20)
- [ASK] Is possible to support PHP 7.2.X HOT 1
- Introduce rectorphp / rector in CI Pipeline
- hot reload not work HOT 1
- docs: Update README.md
- Symfony (http foundation) request->getRequestUri() doesn't contain query string HOT 4
- The bundle seems (too) dependent to Doctrine ORM
- Fix CI: release-version script
- Introduce Infection in CI Pipeline
- Your work is a millennium job LOL HOT 2
- Unable to upgrade to v0.8.3 on PHP 8.0 due to assertion BC break HOT 4
- http response is unavailable HOT 1
- Different Voter Result HOT 2
- Lots of timeout when fetching items from database using doctrine HOT 4
- Bundles seems to skip firewalls HOT 6
- when require ODM
- Use cooperative scheduling in request handling by enabling swoole coroutine hooks for IO functions HOT 2
- Add setting for task_enable_coroutine
- pid_file config does not work
- Some error's do not log.
- Reload does not work with opcache_enabled_cli
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-bundle.