version: '2'
services:
  dtk_dev:
    image: dalg24/dtk-stack:latest
    volumes:
      - ..:/scratch/source/trilinos/release/DataTransferKit:rw,z
    working_dir: /scratch/source/trilinos/release/DataTransferKit
    environment:
      - TERM=xterm
    command: tail -f /dev/null
    # Turn off seccomp confinement to work with gdb.
    #
    # Without passing the `--security-option` flag to docker, running gdb would
    # yield this:
    # warning: Error disabling address space randomization: Operation not permitted
    #
    # NOTE: At this time not sure if it wouldn't be possible to alter the
    # default seccomp security profile for Docker rather than fully turning it
    # off.  See https://github.com/docker/docker/blob/master/docs/security/seccomp.md
    # for reference.
    security_opt:
      - seccomp:unconfined
    # With this option, the container uses the host network stack instead of its
    # own. Without this option, Ubuntu machine cannot connect to internet when
    # they are behind ORNL firewall.
    network_mode: host

version: '2.3'
services:
  dtk_dev:
    image: dalg24/dtk-stack:latest
    volumes:
      - ..:/scratch/source/trilinos/release/DataTransferKit:rw,z
    working_dir: /scratch/source/trilinos/release/DataTransferKit
    environment:
      - TERM=xterm
    command: tail -f /dev/null
    # Turn off seccomp confinement to work with gdb.
    #
    # Without passing the `--security-option` flag to docker, running gdb would
    # yield this:
    # warning: Error disabling address space randomization: Operation not permitted
    #
    # NOTE: At this time not sure if it wouldn't be possible to alter the
    # default seccomp security profile for Docker rather than fully turning it
    # off.  See https://github.com/docker/docker/blob/master/docs/security/seccomp.md
    # for reference.
    security_opt:
      - seccomp:unconfined
    # With this option, the container uses the host network stack instead of its
    # own. Without this option, Ubuntu machine cannot connect to internet when
    # they are behind ORNL firewall.
    network_mode: host

Use Docker Compose format 2.3 in dev container
Use Docker Compose format 2.3 in dev container
