Tag: bitbucket

如何在BitBucketpipe道上使用Docker来testing需要PostGIS的Django应用程序?

我正尝试使用BitBucketpipe道在专用BitBucket回购库上构buildDjango应用程序的自动化testing。 我有所有的testing,他们可以运行使用./manage.py test或使用tox 。 这在本地工作正常,在那里testingbuild立(临时的)PostGIStesting数据库。 对于所有的requirest.txt来说,PostGIS和gdal之类的东西都是正确安装所必需的。 我在找Docker镜像时遇到了问题,Docker镜像在Docker上给了我一个完整的Python + PostGIS / gdal等堆栈,而且我缺乏自己构build它的技能。 我的失败尝试logging在GitHub上: https : //github.com/zostera/docker-django-ci 有人能指点我正确的方向(教程)或者可能帮助我一个工作的例子吗?

添加Android依赖关系到Docker构build镜像 – Bitbucketpipe道(CI)

在bitbucketpipe道构build期间,我收到了这个错误。 我错过了firebase jar文件。 构build失败错误: > Could not resolve all dependencies for configuration ':app:_debugApkCopy'. > Could not find com.google.firebase:firebase-core:10.0.0. Searched in the following locations: file:/usr/local/android-sdk/extras/android/m2repository/com/google/firebase/firebase-core/10.0.0/firebase-core-10.0.0.pom file:/usr/local/android-sdk/extras/android/m2repository/com/google/firebase/firebase-core/10.0.0/firebase-core-10.0.0.jar file:/opt/atlassian/pipelines/agent/build/sdk-manager/com/google/firebase/firebase-core/10.0.0/firebase-core-10.0.0.jar Required by: project :app > Could not find com.google.firebase:firebase-ads:10.0.0. Searched in the following locations: file:/usr/local/android-sdk/extras/android/m2repository/com/google/firebase/firebase-ads/10.0.0/firebase-ads-10.0.0.pom file:/usr/local/android-sdk/extras/android/m2repository/com/google/firebase/firebase-ads/10.0.0/firebase-ads-10.0.0.jar file:/opt/atlassian/pipelines/agent/build/sdk-manager/com/google/firebase/firebase-ads/10.0.0/firebase-ads-10.0.0.jar Required by: project :app > Could not find com.google.firebase:firebase-messaging:10.0.0. Searched in the […]

Docker Hub中的自动构build过程中需要进行身份validation错误

我正试图从一个私人的bitbucket存储库做一个自动化的生成。 自动化版本已经在这之前工作,但今天早上开始犯错误。 请帮忙。 我已经尝试重新链接bitbucket回购,并删除并重新创build自动构build。 请参阅下面的构build日志。 Cloning into 'bfvya69v2qo7eevzf2mpncv'… Warning: Permanently added the RSA host key for IP address '131.103.20.168' to the list of known hosts. KernelVersion: 3.13.0-40-generic Os: linux BuildTime: Mon Oct 12 05:37:18 UTC 2015 ApiVersion: 1.20 Version: 1.8.3 GitCommit: f4bf5c7 Arch: amd64 GoVersion: go1.4.2 Step 0 : FROM dsninjas/sailsjs-base:1.5.2 Authentication is required. “` […]

jenkins+docker工人

我想创build一个使用Jenkins + BitBucket + Docker + Python的持续集成工作stream程。 以下是我想象的所有步骤: 用户用testing单元和Dockerfile推送应用程序的Python代码。 BitBucket在jenkins上挂钩了一个工作 Jenkins克隆版本库。 Jenkins构buildDockerfile。 Jenkins运行docker镜像执行testing用例。 我的testing用例被docker化了。 如果所有testing都通过了,Jenkins会将镜像推送到Docker Hub。 这是一个正确的/好的方法吗? 有没有人有这样的经验? 有没有人有链接/文档来帮助我?

处理docker和Jenkins中的大型二进制文件(3 GB)

我在我的docker文件中使用谷歌模型(二进制文件:大约3GB),然后使用jenkins生成和部署在生产服务器上。 其余的代码是从bitbucket回购。 从docker文件中下载并解压文件的示例行。 它只会发生一次,因为这个命令将被caching。 FROM python:2.7.13-onbuild RUN mkdir -p /usr/src/app WORKDIR /usr/src/app ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install –assume-yes apt-utils RUN apt-get update && apt-get install -y curl RUN apt-get update && apt-get install -y unzip RUN curl -o – https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz \ | gunzip > /usr/src/app/GoogleNews-vectors-negative300.bin 当我在本地机器上构build并运行Docker时,一切正常。 但是,当我通过修补版本将这些更改通过Jenkins推送到生产服务器时,我的构build过程最终失败。 设置,构build和testing阶段工作正常。 但是,构build后阶段失败。 (构build过程推动更改回购,并根据日志,在docker文件中的所有命令也运行良好。)之后发生的事情,当我看到日志时,我得到以下错误。 18:49:27 654f45ecb7e3: […]

Docker:无法find用户root:在passwd文件中没有匹配的条目

我有多个Atlassian产品的容器; JIRA , Bitbucket和Confluence 。 当我试图访问我通常使用的正在运行的容器: docker exec -it -u root ${DOCKER_CONTAINER} bash 通过这个命令,我可以照常访问,但是在运行脚本来提取和压缩日志文件之后,我无法再访问这个容器。 摘自“清理脚本” 这是第一个失败点,脚本每周运行一次(Jenkins计划)。 docker cp ${CLEAN_UP_SCRIPT} ${DOCKER_CONTAINER}:/tmp/${CLEAN_UP_SCRIPT} if [ $? -eq 0 ]; then docker exec -it -u root ${DOCKER_CONTAINER} bash -c "cd ${LOG_DIR} && /tmp/compressOldLogs.sh ${ARCHIVE_FILE}" fi 当脚本执行这两行到Bitbucket容器的结果是: unable to find user root: no matching entries in passwd file 它在'docker cp'命令上失败,但是只对Bitbucket容器。 […]

如何使用BitBucketpipe道在推送后更新Google云计算引擎实例?

我已经看到了如何使用App Engine来完成这个任务的文档,但是在Compute Engine上没有任何内容。 谢谢!

从私人git仓库build立一个Docker镜像

我无法从专用bitbucket存储库构builddocker镜像。 我的bitbucket回购在Docker文档中有一个“Dockerfile”的根。 docker工人 – 版本 Docker version 1.3.1, build 4e9bbfa 我努力了… docker build –rm=true –tag="myorg/myimagename" git://bitbucket.org:myacct/myrepo.git 错误:致命:无法连接到bitbucket.org:bitbucket.org:服务名称不支持ai_socktype docker build –rm=true –tag="myorg/myimagename" git://git@bitbucket.org:myacct/myrepo.git 错误:致命:无法连接到bitbucket.org:bitbucket.org:服务名称不支持ai_socktype 我正在关注的文件… 我假设我的主机的密钥将被使用。 将Git存储库设置为URL时,将使用该存储库作为上下文。 Git仓库克隆了它的子模块(git clone -recursive)。 新的git克隆发生在本地主机的临时目录中,然后作为上下文发送到Docker守护进程。 这样,您的本地用户凭据和VPN等可以用来访问私人存储库。 https://docs.docker.com/reference/commandline/cli/#build 我也假设docker将拾取库中的Dockerfile&上下文。 这将克隆GitHub存储库并使用克隆的存储库作为上下文。 存储库根目录下的Dockerfile用作Dockerfile。 请注意,您可以使用git://模式来指定任意的Git存储库。 https://docs.docker.com/reference/commandline/cli/#examples_1 我已经… 在bitbucket和我的主机之间正确设置我的ssh密钥 在主机上通过ssh成功克隆了专用的bitbucket repo