Commit cd3ca135 authored by Johan Bloemberg's avatar Johan Bloemberg

wip

wip
parent 1423e2f8
Pipeline #26979636 failed with stage
in 28 minutes and 54 seconds
# pull in failmap image
FROM registry.gitlab.com/failmap/failmap:latest as build
# start with osaft image
FROM owasp/o-saft:latest
USER root
# install packages required by failmap
RUN apk --no-cache add \
zlib\
libjpeg \
libffi \
libressl \
libxml2 \
expat \
postgresql-libs \
postgresql-client \
sqlite \
mailcap \
libxslt
# python3 \
# libressl
# RUN python3 -m pip install --upgrade pip
COPY --from=build /usr/local /usr/local
# install build application
COPY --from=build /pyenv /pyenv
COPY --from=build /source /source
# copy all relevant files for python installation
COPY ./failmap/ /source/failmap/
# add wildcard to version file as it may not exists (eg: local development)
COPY setup.py setup.cfg MANIFEST.in requirements.dev.txt version* /source/
# Install app by linking source into virtualenv. This is against convention
# but allows the source to be overwritten by a volume during development.
RUN /pyenv/bin/pip install -e /source/ --no-deps
WORKDIR /
ENV TOOLS_DIR /usr/local/bin/
ENTRYPOINT [ "/usr/local/bin/failmap" ]
CMD [ "worker" ]
......@@ -22,7 +22,7 @@ extras =
setenv =
DJANGO_SETTINGS_MODULE = failmap.settings
# allow broker url to be overriden for development
passenv = BROKER C_FORCE_ROOT DOCKER_HOST SYSTEM_TEST_TIMEOUT
passenv = BROKER C_FORCE_ROOT DOCKER_HOST SYSTEM_TEST_TIMEOUT IMAGE
# test set runs test suite and fixture integrity checks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment