github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/caas/jujud-operator-dockerfile (about)

     1  FROM ubuntu:18.04
     2  
     3  # Some Python dependencies.
     4  RUN apt-get update && apt-get install -y --no-install-recommends \
     5      python3-yaml \
     6      python3-pip \
     7      python3-distutils \
     8   && pip3 install --upgrade pip setuptools \
     9   && rm -rf /var/lib/apt/lists/* \
    10   && rm -rf /root/.cache
    11  
    12  # Install the standard charm dependencies.
    13  ENV WHEELHOUSE=/tmp/wheelhouse
    14  ENV PIP_WHEEL_DIR=/tmp/wheelhouse
    15  ENV PIP_FIND_LINKS=/tmp/wheelhouse
    16  
    17  COPY jujud-operator-requirements.txt /tmp/wheelhouse/jujud-operator-requirements.txt
    18  RUN pip3 install -r /tmp/wheelhouse/jujud-operator-requirements.txt
    19  
    20  # Finally jujud
    21  ARG JUJUD_DIR=/var/lib/juju/tools
    22  WORKDIR $JUJUD_DIR
    23  COPY jujud $JUJUD_DIR
    24  
    25  ENTRYPOINT ["sh", "-c"]
    26  CMD ["./jujud caasoperator --debug --application-name ${JUJU_APPLICATION}"]