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

Custom build image with entrypoint

Gordi August 24, 2020

Hello together,

I've created a new docker image with a custom entry point to be used as build image for my project.

The new image is found by the build pipeline, but when the pipeline runs, it looks as if the custom entry point did not execute properly (it should generate some files based on environment variables).

Image looks like this:

FROM python
ENV CUSTOM_VARIABLE
COPY custom-entrypoint.sh /
ENTRYPOINT [ "/custom-entrypoint.sh" ]

Two questions:

  1. Can I view the full docker logs of the started pipeline? This would allow me to trace the issue... (on BitBucket - locally the process runs)
  2. Has anyone used custom entrypoints in bitbucket pipelines - should that be possible?

Best regards,
Alex

1 answer

1 vote
ktomk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2020

Bitbucket Pipelines makes use of the step script which effectively renders the entrypoint void, it is not used.

Use it as a command in the step script:

/custom-entrypoint.sh

for testing.

Does this answer your questions?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events