Tag: circleci

在同一个Git仓库中为多个应用程序分离CI工作stream程

我使用下面的代码结构在一个Git仓库中创build一个Docker应用程序: git的 泊坞窗,compose.yml API Rails应用程序… pipe理 JS应用程序… AUTH 节点应用… 万维网 JS应用程序… 我也在学习CI的过程中,到目前为止我已经使用了一个非常基本的CircleCI设置。 我想做的是pipe理四个不同的子应用程序作为我的构build的一部分…例如,每个应用程序将有它自己的testing套件,我希望所有四个运行在每个版本。 我正在努力如何在自定义的构build中实现这一点。 任何build议,将不胜感激,包括如何实施这样的build设为不同的CI解决scheme,如果需要的话。

CircleCI 2.0的configuration问题 – json:不能将string解组成Gotypes的config.JobDescriptiontypes的值

我试图将我的circleciconfiguration从1.0迁移到2.0。 我检查configurationvalidation,它是有效的。 但是,我不知道为什么会抛出exception: Build-agent version 0.0.3610-dadc4d7 (2017-07-14T02:27:51+0000) Configuration errors: 1 error occurred: * json: cannot unmarshal string into Go value of type config.JobDescription 这是.circleci/config.yml文件的内容 version: 2 jobs: build: working_directory: ~/myproject environment: TZ: "/usr/share/zoneinfo/Asia/Ho_Chi_Minh" docker: – image: circleci/node:6.2.0 – image: circleci/java:openjdk8 steps: – run: name: Update $PATH variable command: echo 'export PATH=${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin' >> $BASH_ENV – run: […]

从CircleCi 2.0迁移后失败的规范

我已经通过Ruby on Rails项目进行迁移,以在CircleCi 2.0上运行testing。 这样做后,一些与file upload相关的规格失败。 我有以下型号: SlideAudio: class SlideAudio < ApplicationRecord # == Extensions ============================================================ Paperclip.interpolates :locale do |attachment, style| attachment.instance.locale end # Tell paperclip that :slide_id means SlideAudio#slide_id # This is used in the custom path and url below when we define the attachment Paperclip.interpolates :slide_id do |attachment, style| attachment.instance.slide_id end has_attached_file :audio, […]

在CircleCI中使用ECS存储库图像作为构build图像

我一直在CircleCI中使用我的Docker-hub帐户,现在由于某种原因,我试图在CircleCI(2.0)中的构build映像中使用我的ECR存储库映像, 但是我看到ECR不支持公众形象。 所以我不能像Dockerhub镜像那样提到我的镜像, version: 2 jobs: build: working-directory: ~/tmp docker: – image: <dockerhub-name>/<image> 如, version: 2 jobs: build: working-directory: ~/tmp docker: – image: aws-id.dkr.ecr.eu-central-1.amazonaws.com/image 它会抛出错误, no basic auth credentials 在一个简单的操作中,它需要通过命令进行validation, aws ecr get-login –region <region-name> 然后跑步, docker login -u AWS -p <password> -e none https://aws-id.dkr.ecr.eu-central-1.amazonaws.com 我试图把这个命令放在CircleCI计划设置的Pre-dependency命令部分,并没有工作。 想法?

Docker:尝试连接到本地CircleCI构build的Docker Daemon时拒绝了权限

我有一个非常简单的config.yml : version: 2 jobs: build: working_directory: ~/app docker: – image: circleci/node:8.4.0 steps: – checkout – run: node -e "console.log('Hello from NodeJS ' + process.version + '\!')" – run: yarn – setup_remote_docker – run: docker build . 它所做的一切:启动node映像,testing节点是否在运行,执行yarn install和docker build 。 我的dockerfile没有什么特别的; 它有一个COPY和ENTRYPOINT。 当我使用Docker Native在我的MacBook Air上运行circleci build ,出现以下错误: Got permission denied while trying to connect […]

Android Espresso:java.lang.IncompatibleClassChangeError:类“java.lang.Class”没有实现接口“java.util.Collection”

我有一个90套Espressotesting课程的Android项目。 在我的两个工作站中,一切运行良好,但是当我在CircleCI中的docker容器中运行testing时,我对所有testing都有以下错误: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IncompatibleClassChangeError: Class 'java.lang.Class' does not implement interface 'java.util.Collection' in call to 'java.lang.Object[] java.util.Collection.toArray()' (declaration of 'java.util.ArrayList' appears in /system/framework/core-oj.jar) at android.support.test.espresso.base.IdlingResourceRegistry.runSynchronouslyOnMainThread(IdlingResourceRegistry.java:314) 你可以在这里看到输出: https://circleci.com/gh/joaomneto/TitanCompanion/115 这个构build过去是有效的,但是我没有看到明显的差异来certificate这个问题是正确的。 一些时候,当我触发重build,一切正常。 这可能是由一个错误的图书馆造成的? 这是相关的configuration。 buildscript { ext.kotlin_version = '1.1.3-2' repositories { google() mavenCentral() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0-beta1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.github.triplet.gradle:play-publisher:1.1.5' } } […] dependencies { […]

如何在Circle CI中运行基于ARM的Docker容器?

我有一个包含所有ARM二进制文件的docker镜像,除了一个静态链接的x86 QEMU可执行文件。 它专门用于在x86硬件上进行ARM构build。 基本图像是show0k / miniconda-armv7 。 由于我不使用Conda,但是确实需要Python,所以我使用这个Dockerfile来构build它: FROM show0k/miniconda-armv7 MAINTAINER savanni@cloudcity.io RUN [ "cross-build-start" ] RUN apt-get update RUN apt-get -y upgrade RUN apt-get -y install python3 python3-pip python3-venv ssh git iputils-ping RUN [ "cross-build-end" ] 我可以在我的机器上完美地启动这个图像,甚至运行构build命令。 但是,当我转到Circle时,在“Spin up Environment”之后,我的容器会挂起队列,或者经常以此错误消息结束: Unexpected preparation error: Error response from daemon: Container d366de1282a32a79bca5265a8a97f573c8949f2838be231abcd234e5694d8d0b is not running (每次容器标识不同) 这是我的Circleconfiguration文件: […]

Laravel – Circle Ci使用容器作为容器?

我正在运行laravel项目和圈子ci进行持续集成,现在我现在的问题是我拉一个圆形的cidocker工具,不包含必要的工具,以便开始: version: 2 jobs: phpunit: working_directory: ~/test docker: – image: circleci/php:latest – image: circleci/mysql:latest 然后我必须下载PHP扩展,铬等,我想使用https://vessel.shippingdocker.com/而不是,这是否有可能将此船与cirle ci?

我如何构build一个Docker镜像,并使用CIRCLE 2.0将其推送到ECR?

我试图从CIRCLE 1.0升级到2.0,并且无法获得Docker映像来构build。 我有以下工作:| … There is another Job here which runs some tests deploy-aws: # machine: true docker: – image: ecrurl/backend aws_auth: aws_access_key_id: ID1 aws_secret_access_key: $ECR_AWS_SECRET_ACCESS_KEY # or project UI envar reference environment: TAG: $CIRCLE_BRANCH-$CIRCLE_SHA1 ECR_URL: ecrurl/backend DOCKER_IMAGE: $ECR_URL:$TAG STAGING_BUCKET: staging TESTING_BUCKET: testing PRODUCTION_BUCKET: production NPM_TOKEN: $NPM_TOKEN working_directory: ~/backend steps: – run: name: Install awscli […]

Docker :: Dockerfile问题 – 目标文件夹不可用

我有一个春季启动项目,并试图在circleci持续集成服务器上使用Docker文件构build项目。 问题是,我只有我的github回购我的源代码; 没有目标目录或jar文件。 我的Dockerfile无法获得最终的工件(将应用程序打包成jar)。 请检查Docker文件并提出一个前进的方向。 FROM java:8 EXPOSE 8090 VOLUME /tmp ADD target/spring-boot-rest-0.3.0.jar app.jar RUN bash -c 'touch /app.jar' ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=container","-jar","/app.jar"]