set_image localhost/{{PROJECT}}:latest

# mount app sources and data:
# - /var/app/rollback/volumes can be rolled back on failed
# upgrades, suitable for application sources and assets.
# - /var/app/volumes is not copied on updates and more suitable
# for volatile data such as logs and databases.
# - "/vol_app:ro" means to make "/vol_app" read-only.
# If this is inconvenient, please remove ":ro".
add_volumes /var/app/rollback/volumes/{{PROJECT}}:/vol_app:ro
add_volumes /var/app/volumes/{{PROJECT}}:/vol_data

# Allow LED to be written. This is application specific
# and should be changed depending on your needs.
add_volumes /sys:/sys

add_devices /dev/dri /dev/galcore /dev/tty7
add_devices /dev/input
add_volumes /run/udev:/run/udev:ro
add_volumes /opt/firmware:/opt/firmware:ro
add_volumes /tmp/xdg_home:/run/xdg_home
add_args --env=XDG_RUNTIME_DIR=/run/xdg_home
add_volumes weston_conf:/etc/xdg/weston_conf
add_args --cap-add=SYS_TTY_CONFIG

# Allow input to containers and see output from containers
add_args -it

# Add environment variables set by Atmark Techno.
add_armadillo_env

# launch app
set_command at-weston-launch --tty /dev/tty7 --user atmark
