Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/for-mary' into for-mary
Browse files Browse the repository at this point in the history
  • Loading branch information
jj committed Mar 12, 2019
2 parents 609de06 + 15483e5 commit ce3d644
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package edu.internet2.tier.shibboleth.admin.ui
import jp.vmi.selenium.selenese.Main
import jp.vmi.selenium.selenese.Runner
import jp.vmi.selenium.selenese.config.DefaultConfig
import org.openqa.selenium.remote.DesiredCapabilities
import org.openqa.selenium.remote.RemoteWebDriver
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.annotation.DirtiesContext
Expand All @@ -28,6 +30,10 @@ class SeleniumSIDETest extends Specification {
def config = new DefaultConfig([] as String[]).with {
if (System.properties.getProperty('webdriver.driver')) {
it.driver = System.properties.getProperty('webdriver.driver')
} else {
it.driver = 'remote'
it.remoteUrl = 'http://localhost:4444/wd/hub'
it.remoteBrowser = 'firefox'
}
it.baseurl = "http://localhost:${this.randomPort}"
it
Expand Down
8 changes: 8 additions & 0 deletions misc/jenkins/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM jenkins/jenkins:lts

USER root
RUN apt update && apt install -y openjfx

RUN apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common && curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && apt update && apt install -y docker-ce

USER jenkins
3 changes: 3 additions & 0 deletions misc/jenkins/run-jenkins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

docker run -u root -d --restart always -p 9009:9009 -p 50000:50000 --env JAVA_OPTS=-Xmx2048m -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --name "jenkins" shibui/jenkins --httpPort=9009 --prefix=/jenkins
26 changes: 26 additions & 0 deletions misc/selenium/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.7"

services:
selenium-hub:
image: selenium/hub:3.141.59-krypton
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.141.59-krypton
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
firefox:
image: selenium/node-firefox:3.141.59-krypton
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444

0 comments on commit ce3d644

Please sign in to comment.