Fix install dep and add Dockefiles
parent
4b888c3461
commit
14f8cb649a
@ -0,0 +1,5 @@
|
|||||||
|
*
|
||||||
|
!pyentrypoint
|
||||||
|
!setup.py
|
||||||
|
!README.md
|
||||||
|
!tests
|
@ -0,0 +1,17 @@
|
|||||||
|
# Testing with python 2
|
||||||
|
|
||||||
|
FROM python:2
|
||||||
|
|
||||||
|
RUN pip install pytest six pyyaml jinja2 colorlog watchdog pytest-mock
|
||||||
|
|
||||||
|
RUN adduser --uid 1009 --system testuser
|
||||||
|
RUN addgroup --gid 1010 testgroup
|
||||||
|
|
||||||
|
ENV PYTHONPATH /opt/
|
||||||
|
|
||||||
|
ADD tests/test_template.yml.tpl /tmp/test_template.yml
|
||||||
|
ADD tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
|
||||||
|
|
||||||
|
WORKDIR /opt/tests
|
||||||
|
|
||||||
|
CMD ["py.test", "--verbose", "-rw", "."]
|
@ -0,0 +1,17 @@
|
|||||||
|
# Testing with python 3
|
||||||
|
|
||||||
|
FROM python:3
|
||||||
|
|
||||||
|
RUN pip3 install pytest six pyyaml jinja2 colorlog watchdog pytest-mock
|
||||||
|
|
||||||
|
RUN adduser --uid 1009 --system testuser
|
||||||
|
RUN addgroup --gid 1010 testgroup
|
||||||
|
|
||||||
|
ENV PYTHONPATH /opt/
|
||||||
|
|
||||||
|
ADD tests/test_template.yml.tpl /tmp/test_template.yml
|
||||||
|
ADD tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
|
||||||
|
|
||||||
|
WORKDIR /opt/tests
|
||||||
|
|
||||||
|
CMD ["py.test", "--verbose", "-rw", "."]
|
@ -1,17 +1,12 @@
|
|||||||
# Testing with python 2
|
|
||||||
|
|
||||||
FROM python:2
|
FROM python:2
|
||||||
|
|
||||||
RUN pip install pytest six pyyaml jinja2 colorlog watchdog pytest-mock
|
ADD . /tmp/
|
||||||
|
|
||||||
RUN adduser --uid 1009 --system testuser
|
|
||||||
RUN addgroup --gid 1010 testgroup
|
|
||||||
|
|
||||||
ENV PYTHONPATH /opt/
|
|
||||||
|
|
||||||
ADD tests/test_template.yml.tpl /tmp/test_template.yml
|
RUN cd /tmp && \
|
||||||
ADD tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
|
pip install --upgrade pip && \
|
||||||
|
python setup.py install && \
|
||||||
|
rm -rf *
|
||||||
|
|
||||||
WORKDIR /opt/tests
|
ONBUILD ADD entrypoint-config.yml .
|
||||||
|
|
||||||
CMD ["py.test", "--verbose", "-rw", "."]
|
ENTRYPOINT ["pyentrypoint"]
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
FROM python:2-alpine
|
||||||
|
|
||||||
|
ADD . /tmp/
|
||||||
|
|
||||||
|
RUN cd /tmp && \
|
||||||
|
pip install --upgrade pip && \
|
||||||
|
python setup.py install && \
|
||||||
|
rm -rf *
|
||||||
|
|
||||||
|
ONBUILD ADD entrypoint-config.yml .
|
||||||
|
|
||||||
|
ENTRYPOINT ["pyentrypoint"]
|
@ -1,17 +1,12 @@
|
|||||||
# Testing with python 3
|
|
||||||
|
|
||||||
FROM python:3
|
FROM python:3
|
||||||
|
|
||||||
RUN pip3 install pytest six pyyaml jinja2 colorlog watchdog pytest-mock
|
ADD . /tmp/
|
||||||
|
|
||||||
RUN adduser --uid 1009 --system testuser
|
|
||||||
RUN addgroup --gid 1010 testgroup
|
|
||||||
|
|
||||||
ENV PYTHONPATH /opt/
|
|
||||||
|
|
||||||
ADD tests/test_template.yml.tpl /tmp/test_template.yml
|
RUN cd /tmp && \
|
||||||
ADD tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
|
pip install --upgrade pip && \
|
||||||
|
python setup.py install && \
|
||||||
|
rm -rf *
|
||||||
|
|
||||||
WORKDIR /opt/tests
|
ONBUILD ADD entrypoint-config.yml .
|
||||||
|
|
||||||
CMD ["py.test", "--verbose", "-rw", "."]
|
ENTRYPOINT ["pyentrypoint"]
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
FROM python:3-alpine
|
||||||
|
|
||||||
|
ADD . /tmp/
|
||||||
|
|
||||||
|
RUN cd /tmp && \
|
||||||
|
pip install --upgrade pip && \
|
||||||
|
python setup.py install && \
|
||||||
|
rm -rf *
|
||||||
|
|
||||||
|
ONBUILD ADD entrypoint-config.yml .
|
||||||
|
|
||||||
|
ENTRYPOINT ["pyentrypoint"]
|
Loading…
Reference in New Issue