Tag: bitbucket

如何克隆私人bitbucket回购窗口docker容器

我正在尝试使用Windowsdocker容器来运行我的源代码(基础镜像: FROM azuresdk/azure-powershell:4.4.0 ;我在我的版本的dockerfile中安装了git)的构build/testing过程。 我需要它从无bitless克隆/拉最新版本的回购,所以我可以让它自动运行testing和部署最新版本。 为了validation到bitbucket,我已经生成了一个公钥/私钥对,并将公钥放在bitbucket中,并将私钥放在容器中(使用docker docker cp复制到mycontainer:C:\ Users \ ContainerAdministrator.ssh \ mykey)。 当我运行git clone git@bitbucket.org:myteam/myrepo.git (来自这里的语法)时,git告诉我: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 我究竟做错了什么? 笔记: docker容器需要是Windows,因为我需要PowerShell 5而不是PowerShell核心。 我需要克隆发生在docker集装箱,因为集装箱的运行将自动化,但它的build设将不会。 我知道ssh-agent正在容器中运行,因为在运行Get-Process powershell命令时列出了它 为了添加私钥到ssh-agent ,我执行了ssh-add <path to priv key> 。 我在容器中运行git-bash时遇到了麻烦,并且在这里使用了这个方法。 在我的情况下,这成为'C:\Program Files\Git\bin\sh.exe' –login […]

Bitbucket容器失败

我试图设置一个容器,使用Docker和Bitbucket服务器版本4.2 。 我使用以下命令来启动容器并设置一个卷(这是由Bitbucket网站推荐的): https : //bitbucket.org/atlassian/docker-atlassian-bitbucket-server (我将sudo添加到每个命令) For Bitbucket 4.12+ In Bitbucket 4.12 and later versions, volume permission is managed by entry scripts. To get started you can use a data volume, or named volumes. In this example we'll use named volumes. $> docker volume create –name bitbucketVolume $> docker run -v bitbucketVolume:/var/atlassian/application-data/bitbucket –name="bitbucket" -d […]

尽pipe存在SSH证书,Git克隆仍然不能在Docker内部工作

我试图克隆一个存储库到一台机器的图像,我成功地能够使用SSH来克隆Docker版本之外的存储库。 但是,每次我尝试克隆存储库时,都会被拒绝,原因如下: Cloning into 'my-repo'… Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 这是我的Dockerfile: FROM ubuntu as my-repo ARG GIT_SSH_KEY ARG GIT_SSH_PUBLIC_KEY ARG KNOWN_HOSTS RUN apt-get update RUN apt-get install -y git ssh # populate id_rsa files, populate known_hosts and […]

DOCKER用于设置BitBucket

我想在我的服务器上设置BitBucket。 BitBucket需要Web服务器和Postgresql DB服务器。 所以我可以设置一个docker容器与所有这些安装。 我的目标是创build一个可以设置上述环境的脚本,而不需要单独给出困难的指示并单独下载二进制文件,安装启动等。 请指出正确的方向。

来自Bitbucket Pipelines的'docker push …'对于我的自托pipedockerregistry来说是非常慢的

我正在使用Bitbucket Pipelines来构build我的Docker镜像,并推送到位于中国的自托pipedocker注册中心。 有没有什么办法可以加速从Bitbucket Pipelines的docker push。 否则,这个function几乎是没用的。

在bitbucketpipe道上运行e2e的麻烦

我试图configuration我的应用程序与angularcli开发CI进程。 目前我设法使pipe道运行业力testing,我的问题是与e2e(“ng e2e”命令angular-cli) 这里是我的bitbucket _pipelines.yml: image: node:7.6.0 pipelines: default: – step: script: # Modify the commands below to build your repository. – npm install -g @angular/cli – npm install – ng test –singleRun=true – ng e2e –env=prod 这里是输出pipe道: [11:59:09] I/file_manager – creating folder /opt/atlassian/pipelines/agent/build/node_modules/protractor/node_modules/webdriver-manager/selenium [11:59:10] I/update – chromedriver: unzipping chromedriver_2.29.zip [11:59:10] I/update – chromedriver: setting […]

将生成文件夹复制到我的存储库

我有这个bitbucket-pipelines.yml,有没有办法将由npm run buid创build的版本复制到我的存储库? image: node:6.9.4 pipelines: branches: master: – step: caches: – node script: – npm install – npm run build

从私人bitbucket回购Docker自动构build:无法克隆存储库

我想为我的Docker容器添加一些自动构build,所以我将我的bitbucket帐户与docker相关联。 然后我创build了一个自动构build,并select一个专用的bitbucket回购。 如果我现在触发构build生成失败,出现以下错误消息: 无法克隆存储库:克隆到“/ tmp / build_xxxx”中…警告:将IP地址“131.103.20.xxx”的RSA主机密钥永久添加到已知主机的列表中。 权限被拒绝(publickey)。 致命的:无法从远程存储库读取。 请确保您拥有正确的访问权限并存在存储库。 对于公共回购,构build工作没有任何问题。 任何想法为什么私人回购不工作?

BitBucketpipe道 – docker未经授权:需要authentication – Docker推送成功login

这个问题适用于Bitbucketstream水线。 我已经看到了其他相关的问题,坦率地说,Bitbucket yaml和Dockerfile脚本在bashterminal中直接执行时效果很好。 就在执行pipe道时,它成功login后就失败了。 这是我的Yaml文件: # enable Docker for the repository options: docker: true # Start the pipeline pipelines: default: – step: script: # Name the image and create a docker image – docker build -t "my_docker_id/my_app:latest" . – docker login –username $DOCKER_HUB_USERNAME –password $DOCKER_HUB_PASSWORD – docker push my_docker_id/my_app:latest 我的Dockerfile看起来像这样: FROM ubuntu:latest # Install Python […]

Docker Hub – 自动构build链接到Bitbucket

在Docker Hub上自动构build – 链接时看不到存储库? 我在Bitbucket上创build了一个帐户,该帐户连接到一个存储库(没有团队,没有组,只是一个存储库上的用户)。 在Docker Hub中,我尝试通过button+ Add Repository /“自动构build”链接到Bitbucket。 我login没问题,但它说“没有可用的回购”。 这是奇怪的,因为我可以看到与这个特定的用户login到Bitbucket的存储库。 我创build了这个Bitbucket用户的唯一目的是能够看到该存储库。