Skip to content

Instantly share code, notes, and snippets.

@elgalu
Last active March 9, 2016 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elgalu/72c3f1d997bb7b8078b0 to your computer and use it in GitHub Desktop.
Save elgalu/72c3f1d997bb7b8078b0 to your computer and use it in GitHub Desktop.
smaato jenkins setup ideas
# DDBB
docker run --name spx_db_$BUILD_ID -d \
-e MYSQL_ROOT_PASSWORD="password" \
-e MYSQL_DATABASE="our_mysql_ddbb" \
-e MYSQL_USER="user" \
-e MYSQL_PASSWORD="password" \
mysql
# SPX
docker run --name=spx_ui_$BUILD_ID -d --net=container:spx_db_$BUILD_ID \
-e CFG_CONFIG_SWITCH=linkeddb \
-e CFG_DB_USER=spx \
-e CFG_DB_PWD="password" \
-e CFG_DB_NAME="our_ddbb_name" \
-e CFG_SETUP_DB=yes \
spx
# Selenium
docker run --name=spx_selenium_$BUILD_ID -d \
--net=container:spx_db_$BUILD_ID \
-e VNC_PASSWORD=pancakes \
--privileged \
-v /dev/shm:/dev/shm \
elgalu/selenium
# Protractor
docker build -t spx-protractor:$BUILD_ID .
docker run --name=spx_protractor_$BUILD_ID \
-e E2E_SUITE \
--net=container:spx_db_$BUILD_ID \
-v /mnt/spx/e2e:/usr/local/test/config/output \
protractor
@ayxos
Copy link

ayxos commented Mar 9, 2016

Are those working as '-link' connector? Im using those '-links' connectors to declare

seleniumAddress: 'http://selenium:4444/wd/hub'
...
baseUrl: 'http://spx:8080/publisherportal/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment