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
Local docker development environment #9
Comments
What I've done now is creating a local Dockerfile with the commands to to build the extension and then use the base image and copy the required files in there. But it could be easier if every extension layer is also made available as a Docker image on Docker Hub. This is my Dockerfile:
|
Hey. No nothing is published on Docker hub. I agree with you, I think we should. A while ago I added this PR to bref: brefphp/bref#519 It builds docker images, tags them and upload them to Dockerhub. I think we should do something similar here, right? |
@Nyholm if you want to be able to publish in the Docker Hub "bref" account let me know, I can create permissions. |
I'm currently looking for a way to deal with this as well. I want to run automation tests on CodeBuild using the image provided by Bref, but I also need to copy the GMP extension over there. It makes me miss Alpine ( |
One thing I just tried, but didn't go so well: shared volumes between containers. The idea was to have 2 containers on a docker-compose (e.g. php-74 & ext-gmp-php74) both sharing a volume. I used this file to build the image locally and then tried to share the volume with the main container:
The expectation was that by doing this, I'd be able to add the extension files from a side container into the main (my-service) container. The first thing that failed is that this volume format does not allow file-by-file pointer. It can only be an entire folder. When trying the entire folder, the |
Same need for me 👍 |
Do you also publish the layers in Docker Hub so they can be installed in your local development setup? Or do you recommend installing the extensions directly in the base development docker image by using a custom Dockerfile?
The text was updated successfully, but these errors were encountered: