Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

apt-get install fails in BitBucket Pipeline, but works fine locally in local docker

Deleted user July 13, 2019

Hi there,

I'm building a Docker image in BitBucket Pipeline using:

Dockerfile: (committed at the root of my repository; code simplified)

FROM php:7.2-fpm

# Install dependencies
RUN apt-get update && apt-get install -y mysql-client

and bitbucket-pipelines.yml:

image: atlassian/pipelines-awscli

pipelines:
  branches:
    develop:
      - step:
        script:
          - docker build .

 

This used to work fine for months, until last week where my build in BitBucket Pipeline started to fail with "E: Package 'mysql-client' has no installation candidate".

However if I build this Docker image on my local machine, apt-get finds/installs the package successfully.

Tried with the latest php:7.3-fpm to no avail. Tried with ubuntu:xenial to no avail. They all build locally but not in BitBucket Pipeline. Tried using the default BitBucket Pipeline Docker image rather than atlassian/pipelines-awscli, same failure.

Any idea how to fix this?

1 answer

0 votes
Vladan July 14, 2019

I have the same problem and no idea how to resolve.

EDIT:

Try this package

default-mysql-client

instead

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events