-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
43 lines (40 loc) · 1.17 KB
/
compose.yaml
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
version: 3
services:
# Launch with:
# podman-compose run pynucleus
pynucleus:
image: ghcr.io/sandialabs/pynucleus:latest
build: .
environment:
# host display server
- DISPLAY=${DISPLAY}
# expose host proxies
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTPS_PROXY}
volumes:
# The current directory on host gets mapped to /root in the container
- $PWD:/root
# map files to container to allow GUI windows
- /tmp/.X11-unix:/tmp/.X11-unix
- $XAUTHORITY:/root/.Xauthority
ports:
# Expose a Jupyter notebook server from the container
- 8889:8889
network_mode: host
user: root
hostname: pynucleus-container
command: bash
tests:
image: ghcr.io/sandialabs/pynucleus:latest
build: .
environment:
- MPIEXEC_FLAGS=--allow-run-as-root --oversubscribe
workdir: /pynucleus
volumes:
- $PWD:/root
entrypoint: python3 -m pytest --junit-xml /root/test-results.xml
quick-test:
image: ghcr.io/sandialabs/pynucleus:latest
entrypoint: mpiexec -n 4 /pynucleus/drivers/runFractional.py