從另一個大廳到達一個大廳任務的容器 (Reach one concourse task's container from another one)


問題描述

從另一個大廳到達一個大廳任務的容器 (Reach one concourse task's container from another one)

  ‑ aggregate:
    ‑ task: run‑frontend‑server # Serve the frontend
      file: devops‑repo/pipeline/tasks/serve‑client‑dist.yml
      image: client‑dist‑image
    ‑ task: test‑frontend # Fire tests at the frontend
      pull: run‑frontend‑server
      file: devops‑repo/pipeline/tasks/test‑e2e.yml
      image: docker‑registry‑protractor

在這裡,我想在一個容器中運行量角器測試,該容器啟動 chrome 和 firefox 進行前端測試,並在另一個容器中運行 SUT,即我要測試的頁面。

在任務文件一切都設置為指向本地主機,但正如您所見,我想連接到為網頁提供服務的外部容器(第一個任務的容器)。這可以在不使用 docker‑compose 的情況下從大廳完成嗎?


參考解法

方法 1:

In concourse, your system under test isn't meant to be run in a task container. Task/build containers are temporary containers spun up with arbitrary networking and file systems, so there's no way to definitively talk between containers.

Further, your task containers could be run on completely different workers, which don't necessarily have the ability to talk to one another.

Instead, you should be talking to some kind of external, permanent integration system, or running your SUT in the same task container as is running the tests.

(by David Karlssonmaterialdesigner)

參考文件

  1. Reach one concourse task's container from another one (CC BY‑SA 2.5/3.0/4.0)

#concourse #docker






相關問題

進行飛行同步時的未知目標 (unknown target when doing a fly sync)

從另一個大廳到達一個大廳任務的容器 (Reach one concourse task's container from another one)

從 Concourse 克隆 Bitbucket 上的 git 存儲庫的問題 (Issues cloning a git repo on Bitbucket from Concourse)

如果作業被取消,Concourse 會阻止後台進程停止 (Concourse prevent background processes from being stopped if job is canceled)

Concourse 流水線:如何讓嵌入式腳本使流水線失敗 (Concourse Pipeline: How to have an Embedded Script Fail the Pipeline)

將構建目錄 (/dist) 從一個作業傳遞到大廳中的下一個作業 (Pass build directory (/dist) from a job to next job in concourse)

Concourse CI 找不到 kubernetes 機密 (Concourse CI can't find kubernetes secrets)

大廳工作人員“找不到文件” (Concourse Worker "file not found")

windows系統需要安裝Concourse(CI/CD) (Need to Install Concourse(CI/CD) on windows system)

在管道任務中指定運行時參數 (Specify runtime parameter in a pipeline task)

如何遍歷大廳中的數組 (How to iterate through an array in concourse)







留言討論