Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from

Conversation

4ntoine
Copy link

@4ntoine 4ntoine commented May 18, 2018

… 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
@@ -241,8 +243,23 @@ private String extractClassPathResourceToTempLocation(final String hostPath) {
return tmpLocation.getAbsolutePath();
}

private boolean isOnBitbucket() {
final String bbCloneDir = System.getenv(BITBUCKET_CLONE_DIR_ENV);
Copy link
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
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
Copy link
Author

4ntoine commented May 21, 2018

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
Copy link
Contributor

rnacher commented Jun 8, 2018

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

Any update on this?

@bsideup
Copy link
Member

bsideup commented Sep 3, 2018

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