"Fossies" - the Fresh Open Source Software Archive

Member "apache-pulsar-2.6.0/dashboard/Dockerfile" (9 Jun 2020, 1835 Bytes) of package /linux/misc/apache-pulsar-2.6.0-src.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. See also the latest Fossies "Diffs" side-by-side code changes report for "Dockerfile": 2.5.2_vs_2.6.0.

    1 #
    2 # Licensed to the Apache Software Foundation (ASF) under one
    3 # or more contributor license agreements.  See the NOTICE file
    4 # distributed with this work for additional information
    5 # regarding copyright ownership.  The ASF licenses this file
    6 # to you under the Apache License, Version 2.0 (the
    7 # "License"); you may not use this file except in compliance
    8 # with the License.  You may obtain a copy of the License at
    9 #
   10 #   http://www.apache.org/licenses/LICENSE-2.0
   11 #
   12 # Unless required by applicable law or agreed to in writing,
   13 # software distributed under the License is distributed on an
   14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   15 # KIND, either express or implied.  See the License for the
   16 # specific language governing permissions and limitations
   17 # under the License.
   18 #
   19 
   20 FROM python:3.7-stretch
   21 
   22 LABEL maintainer="Apache Pulsar <dev@pulsar.apache.org>"
   23 
   24 RUN bash -c "echo deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main >> /etc/apt/sources.list.d/pgdg.list"
   25 RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
   26 
   27 RUN apt-get update
   28 RUN apt-get -y install postgresql-11 postgresql-contrib libpq-dev python sudo nginx supervisor
   29 
   30 # Postgres configuration
   31 COPY conf/postgresql.conf /etc/postgresql/11/main/
   32 
   33 # Configure nginx and supervisor
   34 RUN echo "daemon off;" >> /etc/nginx/nginx.conf
   35 COPY conf/nginx-app.conf /etc/nginx/sites-available/default
   36 COPY conf/supervisor-app.conf /etc/supervisor/conf.d/
   37 
   38 # Copy web-app sources
   39 RUN mkdir /pulsar
   40 COPY . /pulsar/
   41 
   42 # Python dependencies
   43 RUN pip install -r /pulsar/requirements.txt
   44 
   45 # Collect all static files needed by Django in a
   46 # single place. Needed to run the app outside the
   47 # Django test web server
   48 RUN cd /pulsar/django && ./manage.py collectstatic --no-input
   49 
   50 RUN mkdir /data
   51 
   52 EXPOSE 80
   53 
   54 CMD ["/pulsar/start.sh"]