Skip to content

Commit

Permalink
make: introduce makefile for testing/building
Browse files Browse the repository at this point in the history
All tests will be run locally in a docker container built/rebuilt on
demand.

All integration tests will be run locally in a cluster created by
DCOS E2E.
  • Loading branch information
jkoelker committed Dec 19, 2018
1 parent 513401e commit a417361
Show file tree
Hide file tree
Showing 8 changed files with 1,047 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.git
build.bash
tests
requirements-dev.txt
hooks
scripts
.*
Dockerfile
Makefile
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
templates/
__pycache__
.pytest_cache
*.pyc
.env
.cache
Expand Down
23 changes: 23 additions & 0 deletions Dockerfile.dcos-e2e
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM python:3-alpine

ARG DCOS_E2E_VERSION=2018.12.10.0

RUN apk add --no-cache --virtual .build \
git \
gcc \
libc-dev \
libffi-dev \
libressl-dev \
make \
&& apk add --no-cache \
bash \
jq \
docker \
openssh-client \
sed \
&& git -c advice.detachedHead=false \
clone --quiet --depth 1 --branch "${DCOS_E2E_VERSION}" \
https://github.com/dcos/dcos-e2e.git /usr/src/dcos-e2e \
&& pip3 install /usr/src/dcos-e2e \
&& rm -fr /usr/src/dcos-e2e \
&& apk del --purge .build
31 changes: 31 additions & 0 deletions Dockerfile.devkit
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM debian:buster

ENV LANG=C.UTF-8

RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
docker.io \
gcc \
git \
jq \
libcurl4-openssl-dev \
libssl-dev \
python3-dev \
python3-pip \
python3-setuptools

ADD requirements-dev.txt /marathon-lb/requirements-dev.txt

RUN set -x \
&& pip3 install \
--no-cache \
--upgrade \
--force-reinstall \
-r /marathon-lb/requirements-dev.txt

ADD . /marathon-lb
WORKDIR /marathon-lb

CMD ["/bin/bash"]
Loading

0 comments on commit a417361

Please sign in to comment.