concourse

Terminate docker compose when test container finishes

余生长醉 提交于 2021-01-20 14:27:41
问题 I am currently running a docker-compose stack for basic integration tests with a protractor test runner, a nodejs server serving a web page and a wildfly server serving a java backend. The stack is run from a dind(docker in docker) container in my build server(concourse ci). But it appears that the containers does not terminate on finishing the protractor tests. So since the containers for wildfly, and nodejs are still running the build task never finishes... How can I make the compose end in

How to cache maven repository between builds?

孤人 提交于 2020-07-20 08:05:44
问题 My goal is to be able to build, package and test a java project that is built with maven using a councourse build pipeline. The setup as such is in place, and everything runs fine, but build times are much too long due to poor maven download rates from our nexus. My build job yml file uses the following resource as base for the maven build: # ... image_resource: type: docker-image source: repository: maven tag: '3.3-jdk-8' # ... I am aware of the fact that having a "blank slate" for every

How to cache maven repository between builds?

不问归期 提交于 2020-07-20 08:03:57
问题 My goal is to be able to build, package and test a java project that is built with maven using a councourse build pipeline. The setup as such is in place, and everything runs fine, but build times are much too long due to poor maven download rates from our nexus. My build job yml file uses the following resource as base for the maven build: # ... image_resource: type: docker-image source: repository: maven tag: '3.3-jdk-8' # ... I am aware of the fact that having a "blank slate" for every

Access Token for Dockerhub

我与影子孤独终老i 提交于 2020-07-06 08:15:24
问题 I created a repository on hub.docker.com and now want to push my image to the Dockerhub using my credentials. I am wondering whether I have to use my username and password or whether I can create some kind of access token to push the docker image. What I want to do is using the docker-image resource from Concourse to push an image to Dockerhub. Therefore I have to configure credentials like: type: docker-image source: email: {{docker-hub-email}} username: {{docker-hub-username}} password: {

How to use a local docker image as resource in concourse-docker

最后都变了- 提交于 2020-05-15 08:10:04
问题 I try to run a task in a docker image, which is not uploaded to docker hub, but instead installed locally (using docker build -t tagname/tagname .) So it exists on the (only) worker. image_resource: type: docker-image source: {repository: tagname/tagname} However, that approach fails with the following error: Is there an easy way to have concourse run a docker image without having to push it to docker hub nor to set up a local repository? 回答1: This is possible with the rootfs_uri task

How to use a local docker image as resource in concourse-docker

孤街浪徒 提交于 2020-05-15 08:08:46
问题 I try to run a task in a docker image, which is not uploaded to docker hub, but instead installed locally (using docker build -t tagname/tagname .) So it exists on the (only) worker. image_resource: type: docker-image source: {repository: tagname/tagname} However, that approach fails with the following error: Is there an easy way to have concourse run a docker image without having to push it to docker hub nor to set up a local repository? 回答1: This is possible with the rootfs_uri task

Concourse Can't Connect to Docker Repository

社会主义新天地 提交于 2020-04-18 03:49:32
问题 I'm new to concourse and trying to set it up in my environment. I'm running Ubuntu 18.04 on Virtualbox 6.1.4 r136177 on Windows machine. I managed to get the node running and concourse worker set up, and I was able to access my concourse dashboard successfully. The problem occurred when I was trying to run a simple hello world pipeline as outlined on this page : https://concourse-ci.org/hello-world-example.html The error says : [31mERRO [0m[0004] check failed: get remote image: Get https:/

Concourse github-release resource cannot find older versions or tags

旧时模样 提交于 2020-01-15 08:17:10
问题 I'm trying to pull an older version/tags of a git hub release in my Concourse pipeline using the github-release-resource, but it does not seem to be able to find releases other than the latest one though. Here is the simple test where we try to extract an older release of concourse itself. --- resources: - name: concourse-release type: github-release source: user: concourse repository: concourse access_token: YOUR-GITHUB-ACCESS-TOKEN-GOES-HERE jobs: - name: test-concourse-release plan: - do:

Trigger events in Concourse

一笑奈何 提交于 2020-01-07 04:07:51
问题 I'm trying to fire events when a task/resource is executed. Currently the idea is to trigger an event in the script of the task. As I need the metadata variables (BUILD_ID, BUILD_NAME) as part of the information to be sent in the event, I've created a resource (the only way to access to the metadata) and passed it to the task. But the problem is that I cannot access to theses variables in the tasks. Any idea o strategy to solve this? 回答1: If you want to access data within your resource, you