Dockerfile in pipeline has missing package (uuid-dev and uuid-dev:arm64)

Michael Aguayo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2023

My question is why does the bitbucket pipeline seem to ignore the installed package from my dockerfile in the pipeline?

I'm able to build and compile locally within the dockerfile.

Dockerfile

FROM ubuntu:20.04

RUN apt update --fix-missing
RUN apt install -y cmake gcc g++ uuid-dev

 

and bitbucket-pipelines.yml is

pipelines:
- parallel:
- step:
image:
name: get-this-from-google-artifact-registry
script:
- cd Build
- cmake ..
- make -j

 

The dockerfile that the pipeline uses fails when cmake looks for package dependencies on uuid-dev with


Using the multi-header code from /opt/atlassian/pipelines/agent/build/path/to/header/library: UUID_LIBRARY-NOTFOUND


include: UUID_INCLUDE_DIR-NOTFOUND

CMake Error at path/to/cmake/Modules/FindUUID.cmake:55 (message):

Could not find UUID library

Call Stack (most recent call first):

path/to/cmake/CMakeLists.txt:115 (find_package)

Configuring incomplete, errors occurred!

 

Although the dockerfile clearly installs the dependency since I'm able to build locally.

I found this post Docker image in Pipeline doesn't install Packages 
that seems similar to my problem which the OP also links his related post on stackOverflow Here 

So I'm checking the .gitignore to be safe since that seems to be his fix.

It would be great to know what is happening here and how to remedy it.

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Michael Aguayo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 1, 2023

The problem ended up being that the docker image stored in the google artifact registry was not correctly being updated, therefore the pipeline was not using the correct image to run.

 

Solution ended up being to update the remote image correctly.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events