"Fossies" - the Fresh Open Source Software Archive

Member "monasca-log-api-2.9.0/docker/Dockerfile" (1 Apr 2019, 2002 Bytes) of package /linux/misc/openstack/monasca-log-api-2.9.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ARG DOCKER_IMAGE=monasca/log-api
    2 ARG APP_REPO=https://git.openstack.org/openstack/monasca-log-api
    3 
    4 # Branch, tag or git hash to build from.
    5 ARG REPO_VERSION=master
    6 ARG CONSTRAINTS_BRANCH=master
    7 
    8 # Extra Python3 dependencies.
    9 ARG EXTRA_DEPS="gunicorn python-memcached gevent"
   10 
   11 # Always start from `monasca-base` image and use specific tag of it.
   12 ARG BASE_TAG=master
   13 FROM monasca/base:$BASE_TAG
   14 
   15 # Environment variables used for our service or wait scripts.
   16 ENV \
   17     KAFKA_URI=kafka:9092 \
   18     KAFKA_WAIT_FOR_TOPICS=log \
   19     MONASCA_CONTAINER_LOG_API_PORT=5607 \
   20     MEMCACHED_URI=memcached:11211 \
   21     AUTHORIZED_ROLES=admin,domainuser,domainadmin,monasca-user \
   22     AGENT_AUTHORIZED_ROLES=monasca-agent \
   23     KEYSTONE_IDENTITY_URI=http://keystone:35357 \
   24     KEYSTONE_AUTH_URI=http://keystone:5000 \
   25     KEYSTONE_ADMIN_USER=admin \
   26     KEYSTONE_ADMIN_PASSWORD=secretadmin \
   27     KEYSTONE_ADMIN_TENANT=admin \
   28     KEYSTONE_ADMIN_DOMAIN=default \
   29     GUNICORN_WORKERS=9 \
   30     GUNICORN_WORKER_CLASS=gevent \
   31     GUNICORN_WORKER_CONNECTIONS=2000 \
   32     GUNICORN_BACKLOG=1000 \
   33     GUNICORN_TIMEOUT=10 \
   34     PYTHONIOENCODING=utf-8 \
   35     ADD_ACCESS_LOG=false \
   36     ACCESS_LOG_FORMAT="%(asctime)s [%(process)d] gunicorn.access [%(levelname)s] %(message)s" \
   37     ACCESS_LOG_FIELDS='%(h)s %(l)s %(u)s %(t)s %(r)s %(s)s %(b)s "%(f)s" "%(a)s" %(L)s' \
   38     LOG_LEVEL_ROOT=INFO \
   39     LOG_LEVEL_CONSOLE=INFO \
   40     LOG_LEVEL_ACCESS=INFO \
   41     STAY_ALIVE_ON_FAILURE="false"
   42 
   43 # Copy all neccessary files to proper locations.
   44 COPY log-api* monasca-log-api* /etc/monasca/
   45 
   46 # Run here all additionals steps your service need post installation.
   47 # Stay with only one `RUN` and use `&& \` for next steps to don't create
   48 # unnecessary image layers. Clean at the end to conserve space.
   49 #RUN \
   50 #    echo "Some steps to do after main installation." && \
   51 #    echo "Hello when building."
   52 
   53 # Expose port for specific service.
   54 EXPOSE ${MONASCA_CONTAINER_LOG_API_PORT}
   55 
   56 # Implement start script in `start.sh` file.
   57 CMD ["/start.sh"]