view docker/primitivus/Dockerfile @ 103:e69883c1ec30

docker (libervia_cont): added a "status" command: - if libervia container is not running, it exits with error code 1 - if libervia container is running but no server is launched, it exits with error code 2 - if libervia container is running and server is launcher, it exits with error code 0 (success) server detection is done by doing a simple grep on logs, that's not perfectly reliable (ports can be changed in configuration, even if that doesn't really make sense in Docker context) but should be good enough for this purpose.
author Goffi <goffi@goffi.org>
date Sat, 27 Feb 2016 00:45:40 +0100
parents 0e78c8a4626e
children b69056368901
line wrap: on
line source

#####################################################################
#                                                                   #
#                      Salut à Toi/Primitivus                       #
# This Dockerfile build Primitivus console frontend for Salut à Toi #
#    Salut à Toi is a multi-frontends multi-purposes XMPP client    #
#                                                                   #
#####################################################################

FROM salutatoi/base:latest

MAINTAINER Goffi <goffi@goffi.org>

#########
# D-Bus #
#########

# we create a wrapper to set the session bus address
RUN cp /usr/local/bin/dbus_wrap /usr/local/bin/primitivus && chmod 555 /usr/local/bin/primitivus

##########
# LAUNCH #
##########

USER sat

ENTRYPOINT ["primitivus"]