Skip to content

WIP: Issue #700 - Not working in Bitbucket pipeline: "authorization denied… - #704

Closed
4ntoine wants to merge 2 commits into
testcontainers:masterfrom
4ntoine:issue-700
Closed

4ntoine wants to merge 2 commits into
testcontainers:masterfrom
4ntoine:issue-700

Conversation

@4ntoine

@4ntoine 4ntoine commented May 18, 2018

Copy link
Copy Markdown

… by plugin pipelines: Command not supported."

Detecting Bitbucket build and creating temporary files/dirs within BITBUCKET_CLONE_DIR.

…ization denied by plugin pipelines: Command not supported."

Detecting Bitbucket build and creating temporary files/dirs within BITBUCKET_CLONE_DIR.
@4ntoine
4ntoine requested review from bsideup, kiview and rnorth as code owners May 18, 2018 20:27
}

private boolean isOnBitbucket() {
final String bbCloneDir = System.getenv(BITBUCKET_CLONE_DIR_ENV);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call getBitbucketCloneDir() here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably some other vars will be required so i'd prefer not to join BB checking and getting some BB variable

@4ntoine

4ntoine commented May 21, 2018

Copy link
Copy Markdown
Author

Tested on bitbucket (building my fork of testcontainers in the very same pipeline to install it to maven local and then require it while building my module). Still not workingdue to the same error output ... To be continued.

@rnacher

rnacher commented Jun 8, 2018 •

Copy link
Copy Markdown
Contributor

Just to add more light to this issue, I think that the problem still continues because it is related to the ryuk container used to "handle" all other containers. Take a look at ResourceReaper.class:

binds.add(new Bind("//var/run/docker.sock", new Volume("/var/run/docker.sock")));

and this is forbidden by BBPipelines. I tried to update it to use the tcp://hostIpAddress:2375 instead but, it didn't work either. The Ryuk container was then started but other containers could not communicate with it. At least these are my thoughts.

@bsideup bsideup changed the title Issue #700 - Not working in Bitbucket pipeline: "authorization denied… WIP: Issue #700 - Not working in Bitbucket pipeline: "authorization denied… Jul 10, 2018
@erikvanzijst

Copy link
Copy Markdown

Any update on this?

@bsideup

bsideup commented Sep 3, 2018

Copy link
Copy Markdown
Member

AFAIK BitBucket implemented a solution on their side and this PR is obsolete.
But feel free to re-open it if I'm wrong :)

@bsideup bsideup closed this Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants