codebuild fails in d middle of the Dockerfile

Open
#425 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, php, redis

Research direction

Start with the Dockerfile section that installs PHP Redis and run the image build to capture the full apt-get error behind exit code 100. Check which command in this chained step fails; done means the Docker build completes and the Redis extension is installed without leaving the temporary build files.

Written by the indexing model from the issue text.

Description

Install PHP Redis

RUN apt-get install -y autoconf wget build-essential --ignore-engines &&
wget https://pecl.php.net/get/redis-5.3.7.tgz &&
tar xzf redis-5.3.7.tgz &&
cd redis-5.3.7 &&
phpize &&
./configure &&
make &&
make install &&
echo "extension=redis.so" >> /usr/local/etc/php/php.ini-development &&
echo "extension=redis.so" >> /usr/local/etc/php/php.ini-production &&
apt-get purge --autoremove -y autoconf wget build-essential &&
cd .. &&
rm redis-5.3.7.tgz &&
rm -rf redis-5.3.7

while executing this command codebuild fails and shows some error

ERROR: failed to solve: process "/bin/sh -c apt-get install -y autoconf wget build-essential --ignore-engines && wget https://pecl.php.net/get/redis-5.3.7.tgz && tar xzf redis-5.3.7.tgz && cd redis-5.3.7 && phpize && ./configure && make && make install && echo "extension=redis.so" >> /usr/local/etc/php/php.ini-development && echo "extension=redis.so" >> /usr/local/etc/php/php.ini-production && apt-get purge --autoremove -y autoconf wget build-essential && cd .. && rm redis-5.3.7.tgz && rm -rf redis-5.3.7" did not complete successfully: exit code: 100

pls help me to resolve this issue if someone knows

Dominant language
JavaScript
Stars
3.1k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/getting-started

All issues in docker/getting-started

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.