working with Bitbucket docker image - docker

I am trying to use bitbucket docker image as documented in the below link.
https://bitbucket.org/atlassian/docker-atlassian-bitbucket-server
I progressed to
bring up the container.
hit the url and create admin user.
But it does not log me in.
The message is invalid userId/password.
The reset wont work because being a container, the mail service is not set up.
I cannot proceed past this and it is frustrating.
Any help is appreciated.

Related

Docker image not displayed for all local users

I've been using the docker on windows for teaching and students use active directory to login to the non-admin users on the computers.
The issue is, I've pulled images in advance with the admin account, but when they run docker, it was nothing there.
Does anyone else has similar experience? I am thinking if this is because every user creates their own image folder when they run docker.
This might be due to your local user in not added in the docker group and give the delegated control to read and write permission for other users.
Run Computer Management as an administrator and navigate to Local Users and Groups > Groups > docker-users. Right-click to add the user to the group. Log out and log back in for the changes to take effect.
You can refer this Discussion how to allow access to active directory user to access the docker

Is it possible to use Jenkins Webhooks with Github when the github account uses 2 factor auth

I am using the latest docker image for jenkins (jenkins/jenkins:lts JENKINS_VERSION 2.208). I have started the container, configured jenkins and can manually build against a public repo. However, on my github account I have 2FA, which must remain. I have created a personal access token in Github, and used this in my jenkins config for github server section. I have validated that the connection is working by pressing the test connection link (I added secret text that used my personal access token from github):
In Github, I have wekhook settings with the IP address for where jenkins is hosted (the IP for the docker container) follwed by github-webhook (I have also tried using a dns mapped address for jenkins as well, e.g., http://jenkins-local/github-webhook), content type is application/json:.
I have github polling enabled in jenkins as well, however, it does not work on push requests to the repo. I see failure logs in Github within the webhooks section, this increases each time I make a push (the request keeps failing). I have searched wide across the internet and found documentation of suggestions on what to do, including this link here: securing your webhooks, but nothing is giving me the desired polling effect when a push is initiated and a build triggered. So my question is, is it possible to use 2FA and github webhooks? If it is possible, then what are the exact steps to do it?
If you have 2FA enabled, you cannot authenticate with a login/pass from your tools anymore. You need to create a token that you will use in place of your password.
The official documentation should get you there in almost no time.
In the end the solution was to download ngrok. The IP address that the I had previously tried and the dns mapped address were not publicly available. I tried using my public ip address as well, but that also didn't work. In the end, downloading ngrok gave me a publicly accessible ip address (the address will look like the following: http://1212344a.ngrok.io). If you also plan to use ngrok then ensure that when you start it from the command line/terminal that you also pass the same port for the application that is running locally, if one is required. Next, in github - settings - webhooks set the payload url to the url that ngrok provides in the terminal output, but also append /github-webhook/ on to the end of the address to complete the payload url (in my case this was http://1212344a.ngrok.io/github-webhook/ as the full payload url).

Addition of webhooks in Gitlab

I want to do automatic build in Jenkins when code gets pushed into the Gitlab.
For the same doing webhooks configuration in Gitlab, but getting error :
Url is blocked: Requests to the local network are not allowed.
Even not able to do the activity mentioned in the image :
I am not able to go to the admin area.
if you have the gitlab server locally
from doc
This behavior can be overridden by enabling the option “Allow requests to the local network from web hooks and services” in the “Outbound requests” section inside the Admin Area > Settings (/admin/application_settings/network):
url to the entire article here
Use the root login and check the outbound option, you should be good.
Let me know if you get any other error.
I had faced the same issue yesterday, but all good now.

Docker trusted build doesn't show up in search

I've created a trusted build by linking with my github account and the build process completed normally. However I can't find the image in the index page, nor with docker search.
The documentation reads:
You can search all publicly active repositories. If your repository isn't publicly active then it will not show up in the search results. To see what your repository status is, you can look at your profile page
When I go to this page I see that my repository status is "Initialized|Public|Owner", not "Active|Public|Owner". However I couldn't find how to make this "active".
How do I "fix" this?
(I have another image, which I pushed and which I can access normally, so I think that my account is configured correctly.)
When you run into problems with the Index or any of our services, please file at ticket with support#docker.com or https://docker.zendesk.com and we can help you out. For help with Docker itself, Stack Overflow is a great option (as is IRC on Freenode's #docker).
-- Andy Rothfusz
Docker Support

why i am getting error while accessing the jenkins homepage?

I am not able to display the jenkins homepage properly.
I have installed two VM with jenkins server and accessing the jenkins through putty and windows browser. Scenarion of two jenkins are
with normal connection [working]
in vpn connection [not working]
i can view the homepage of 1st, but not getting proper view of 2nd machine.
It displays only text not working. I mean only texts of login ,logout and build now etc.
when i click on this text getting following error
"Not Found
The requested URL /login was not found on this server."
There is no browser issues i have tried it 2-3 browsers.
I think this is jenkins issues or something else plz help.
You share so few details about how you installed Jenkins and what is the environment that you should not expect any good answers. I suspect the problem is around the correct use of the Jenkins --prefix command line parameter. It changes the way Jenkins constructs URLs for links. I hope this helps. If not, you should consider telling us more about your setup.

Resources