From 06c625c6860662204bccfffe9f9e0d309f1b19f8 Mon Sep 17 00:00:00 2001 From: Ana Gelez Date: Mon, 10 Aug 2020 15:59:06 +0200 Subject: [PATCH] Add a shared volume for WebDriver's socket --- .drone.jsonnet | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.drone.jsonnet b/.drone.jsonnet index 4f150887..e735c7a3 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -141,6 +141,9 @@ local Unit(db) = cachedPipeline( // It installs a local instance an run integration test with Python scripts // that use Selenium (located in scripts/browser_test). local Integration(db) = { + volumes: [ + name: 'webdriver-socket', temp: {}, + ] } + basePipeline( "integration-" + db, [ @@ -150,6 +153,9 @@ local Integration(db) = { name: 'selenium', image: 'elgalu/selenium:latest', detach: true, + volumes: [ + { name: 'webdriver-socket', path: '/wd' }, + ] }, { name: "integration-" + db, @@ -158,6 +164,9 @@ local Integration(db) = { BROWSER: "firefox", DATABASE_URL: if db == "postgres" then "postgres://plume:password@start-db/plume" else "plume.db", }, + volumes: [ + { name: 'webdriver-socket', path: '/wd' }, + ], commands: [ // Install the front-end "cargo web deploy -p plume-front",