A declarative framework for resilient Kubernetes deployment.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 2017 AT&T Intellectual Property. All other rights reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ARG FROM=python:3.6
  15. FROM ${FROM}
  16. LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode'
  17. LABEL org.opencontainers.image.url='https://airshipit.org'
  18. LABEL org.opencontainers.image.documentation='https://airship-promenade.readthedocs.org'
  19. LABEL org.opencontainers.image.source='https://git.openstack.org/openstack/airship-promenade'
  20. LABEL org.opencontainers.image.vendor='The Airship Authors'
  21. LABEL org.opencontainers.image.licenses='Apache-2.0'
  22. VOLUME /etc/promenade
  23. VOLUME /target
  24. RUN mkdir /opt/promenade
  25. WORKDIR /opt/promenade
  26. ENV PORT 9000
  27. EXPOSE $PORT
  28. # Setting promenade version for BPR
  29. ENV PBR_VERSION 0.8.0
  30. ENTRYPOINT ["/opt/promenade/entrypoint.sh"]
  31. RUN set -ex \
  32. && curl -Lo /usr/local/bin/cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 \
  33. && chmod 555 /usr/local/bin/cfssl \
  34. && apt-get update -q \
  35. && apt-get install --no-install-recommends -y \
  36. libyaml-dev \
  37. rsync \
  38. && useradd -u 1000 -g users -d /opt/promenade promenade \
  39. && rm -rf /var/lib/apt/lists/*
  40. COPY requirements-frozen.txt /opt/promenade
  41. RUN pip install --no-cache-dir -r requirements-frozen.txt
  42. COPY . /opt/promenade
  43. RUN pip install -e /opt/promenade
  44. USER promenade