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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Edited
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!
Oct 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!
Nov 01, 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