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-NOTFOUNDinclude: 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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.