Skip to content

Instantly share code, notes, and snippets.

@mjhenkes
Last active May 27, 2020 15:16
Show Gist options
  • Select an option

  • Save mjhenkes/ebfedf6818e72ef0cf5ef1c92a119310 to your computer and use it in GitHub Desktop.

Select an option

Save mjhenkes/ebfedf6818e72ef0cf5ef1c92a119310 to your computer and use it in GitHub Desktop.
version: '3'

services:
  standalone-chrome:
    image: 'selenium/standalone-chrome:3.14.0-helium'
    ports:
      - '4444'
    # Necessary due to some issues with chrome in docker.  See https://github.com/SeleniumHQ/docker-selenium#running-the-images
    volumes:
      - '/dev/shm:/dev/shm'
    environment:
      TZ: 'America/Chicago'

  dev:
    image: cerner/terra-node-dev:1
    ports:
      - 8080:8080
    depends_on:
      - standalone-chrome
+    environment:
+      MODULE_DIR: 'terra-toolkit-boneyard'
    volumes:
-      - .:/opt/module
+     - .:/opt/module/terra-toolkit-boneyard
      - zsh_history:/root/zsh_history

  test-ci:
    build: ./
    image: "${DOCKER_IMAGE}-test:${TAG:-latest}"
    depends_on:
      - standalone-chrome

volumes:
  zsh_history:
version: '3'

services:
  standalone-chrome:
    image: 'selenium/standalone-chrome:3.14.0-helium'
    ports:
      - '4444'
    # Necessary due to some issues with chrome in docker.  See https://github.com/SeleniumHQ/docker-selenium#running-the-images
    volumes:
      - '/dev/shm:/dev/shm'
    environment:
      TZ: 'America/Chicago'

  dev:
    image: cerner/terra-node-dev:1
    ports:
      - 8080:8080
    depends_on:
      - standalone-chrome
    volumes:
-      - .:/opt/module
+     - .:/opt/module/terra-toolkit-boneyard
      - zsh_history:/root/zsh_history

  test-ci:
    build: ./
    image: "${DOCKER_IMAGE}-test:${TAG:-latest}"
    depends_on:
      - standalone-chrome

volumes:
  zsh_history:
version: '3'

services:
  standalone-chrome:
    image: 'selenium/standalone-chrome:3.14.0-helium'
    ports:
      - '4444'
    # Necessary due to some issues with chrome in docker.  See https://github.com/SeleniumHQ/docker-selenium#running-the-images
    volumes:
      - '/dev/shm:/dev/shm'
    environment:
      TZ: 'America/Chicago'

  dev:
-    image: cerner/terra-node-dev:1
+    build:
+      context: .
+      dockerfile: dev.Dockerfile
    ports:
      - 8080:8080
    depends_on:
      - standalone-chrome
    volumes:
-      - .:/opt/module
+     - .:/opt/terra-toolkit-boneyard
      - zsh_history:/root/zsh_history

  test-ci:
    build: ./
    image: "${DOCKER_IMAGE}-test:${TAG:-latest}"
    depends_on:
      - standalone-chrome

volumes:
  zsh_history:
FROM cerner/terra-node-dev:1
WORKDIR /opt/terra-toolkit-boneyard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment