Tag: bitbucket pipeline

Bitbucketpipe道耙testing需要20分钟

我们已经计算出来了,bitbucketstream水线里的raketesting比我们在本地运行时要长50倍。 我们正在使用Docker。 有没有人经历过这个呢?

Bitbucketpipe道:将cakephp图像与mysql图像链接在一起

我正在使用Bitbucket piplines。 我有两个图像:cakephp图像和mysql图像。 所以我想指定mysql映像作为服务,所以我可以在我的cakephp映像中使用它。 但问题是:cakephp容器没有看到这个服务。 这里是我使用https://confluence.atlassian.com/bitbucket/test-with-databases-in-bitbucket-pipelines-856697462.html创build的bitbucket-pipelines.yml文件: image: handkock/cakephptests:1.0 pipelines: default: – step: script: – mysql -u root -e "use db; source /opt/atlassian/pipelines/agent/build/db_dump.sql;" – mysql -u root -e "CREATE DATABASE DB2; use DB2; source /opt/atlassian/pipelines/agent/build/db2.sql;" services: -mysql custom: # Pipelines that are triggered manually test: # The name that is displayed in the list in the […]

Bitbucketpipe道可以运行与Windowsdocker文件?

正如标题所要求的,bitbucketpipe道可以和windows docker一起运行吗? 一些背景 – 我一直在做一些关于竹子pipe道的研究。 我遇到的许多文章是pipe道还处于testing阶段,只支持linux docker文件。 我似乎无法find有关pipe道是否能与Windows一起工作的任何信息。 奖金的问题! 对于较大规模的网站,针对部署竹的pipe道,你有什么看法?

来自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

集成testing与Docker和Bitbucketstream水线

我想运行我的集成testing作为Bitbucketpipe线 CI的一部分。 我的集成testingtesting了一个运行在空MongoDB数据库上的NodeJS后端。 为了实现这个function,我想创build一个Docker镜像,Bitbucketpipe道可以从Docker镜像库中获取。 我的bitbucket-pipelines.yml将是这样的: image: <my image with nodejs and a mongodb linked to it> pipelines: default: – step: script: – npm test 现在我只需要创build一个configuration正确的nodejs和mongodb nodejs 。 我可以通过创build以下docker-compose.yml文件来构build环境: version: "2" services: web: build: . volumes: – ./:/app ports: – "3000:3000" – "9090:8080" links: – mongo mongo: image: mongo ports: – "27018:27017" 我的Dockerfile: FROM node:7.9 RUN […]

使用Bitbucket pipelane和Docker进行Android仪器testing

我是Docker中的新成员,在仪器testing中需要帮助。 我创build一个Dockerfile(从这里得到它,并做一些修饰符) FROM ubuntu:14.04 # Install java7 RUN apt-get update && \ apt-get install -y software-properties-common && \ add-apt-repository -y ppa:webupd8team/java && \ (echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections) && \ apt-get update && \ apt-get install -y oracle-java7-installer && \ apt-get clean && \ rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* ENV JAVA7_HOME /usr/lib/jvm/java-8-oracle # […]

Docker内存限制在pipe道中

我使用atlassianpipe道 。 有时候pipe道会因为这个消息而失败 build立内存限制超出。 我也在本地运行相同的泊坞窗图像,因为我在pipe道中运行。 (我在本地运行相同的图像,我在图像中声明: bitbucket-pipelines.yml ) 我想要一种方法来在本地运行我们的docker镜像,这与pipe道执行的相同的限制(4GB): https : //confluence.atlassian.com/bitbucket/limitations-of-bitbucket-pipelines-827106051.html#LimitationsofBitbucketPipelines-Buildlimits 我想这样做,以确保我保持在pipe道限制的90%以内。 (所以3.6GB) 这是实现这一目标的一种方式吗? docker run –rm –memory=3600M –memory-swap=3600M docker-image-same-as-we-run-in-pipelines

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 […]