Skip to content
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

docker-php-ext-install cpu core number option #144

Closed
soullivaneuh opened this issue Oct 23, 2015 · 1 comment
Closed

docker-php-ext-install cpu core number option #144

soullivaneuh opened this issue Oct 23, 2015 · 1 comment

Comments

@soullivaneuh
Copy link

Would be very nice to add an option on docker-php-ext-install command to set the number of cpu core to use.

That would be transmitted to the make command.

Ex: make -j5

@soullivaneuh soullivaneuh changed the title docker-php-ext-install core number option docker-php-ext-install cpu core number option Dec 9, 2015
@soullivaneuh
Copy link
Author

For the others that want this feature, I found a little sed trick to put on your Dockerfile:

RUN sed -i 's/make$/make -j`nproc`/' /usr/local/bin/docker-php-ext-install && \
docker-php-ext-install \
zip \
pdo \
pdo_mysql \
intl \
gd \
pcntl \
bcmath \
shmop \
mbstring

I earn 45 seconds on my image build with -j8.

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

No branches or pull requests

1 participant