Derived as guiding principles
(no more deployment images)
How much of this file is *actually* configuration?
FROM python:2.7.11
MAINTAINER infrastructure-team@points.com
ENV GOSU_VERSION 1.9
ENV APP_GROUP=webgroup APP_USER=webuser
RUN DEBIAN_FRONTEND=noninteractive
# Install nscd
...
# Install dumb-init
...
# Install gosu
...
# Add webapp user and group
...
WORKDIR /content
COPY ./timezone /etc/timezone
COPY ./entrypoint.sh /content/entrypoint.sh
ONBUILD COPY . /content
ONBUILD RUN chown -R $APP_USER:$APP_GROUP /content
ONBUILD RUN for r in $(ls requirements); do pip install -r requirements/$r; done
ONBUILD ARG service_name
ONBUILD ARG git_commit_hash
ONBUILD LABEL com.points.service_name=$service_name com.points.git_commit_hash=$git_commit_hash
ENTRYPOINT ["dumb-init", "/content/entrypoint.sh"]
CMD ["-l"]
FROM base-docker.points.com/python_service_onbuild
library
Provides a consistent interface and reusable components for entrypoints of dockerized mciroservices at Points
tasks common to all microservices
Still in Early Stage...
fab run_server:port=9090,check=1
inv run_server --port=9090 --check