File: docker-compose-system-test.yml

package info (click to toggle)
ruby-bootstrap-form 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 512 kB
  • sloc: ruby: 1,350; makefile: 4
file content (45 lines) | stat: -rw-r--r-- 916 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.3'

services:
  app: &app
    build:
      context: .
      args:
        NODE_MAJOR: "12"
        YARN_VERSION: "1.22.4"
        RUBY_VERSION: ${RUBY_VERSION}
    image: bootstrap-form:latest-$RUBY_VERSION
    tmpfs:
      - /tmp

  shell:
    <<: *app
    stdin_open: true
    tty: true
    volumes:
      - .:/app:cached
    environment:
      - SSH_AUTH_SOCK=/ssh-agent
      - NODE_ENV=development
      - BOOTSNAP_CACHE_DIR=/usr/local/bundle/_bootsnap
      - WEB_CONCURRENCY=1
      - HISTFILE=/app/.bash_history
      - SELENIUM_HOST=selenium
      - SELENIUM_PORT=4444
      - TEST_APP_HOST=shell
      - TEST_APP_PORT=3001
    ports:
      - "3001:3001"
    command: /bin/bash

  selenium:
    image: selenium/standalone-chrome:118.0
    logging:
      driver: none
    stdin_open: true
    tty: true
    environment:
      - LANG=en_CA.UTF-8
    ports:
      - '4444:4444'
      - '5900:5900'