Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

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 Feb 28, 2019
1 parent f29e85f commit 94c211f
Show file tree
Hide file tree
Showing 7 changed files with 975 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
37 changes: 37 additions & 0 deletions Dockerfile.devkit
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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

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

# NOTE(jkoelker) dcos-e2e has a large list of strict requrements (== vs >=)
# that creates conflicts preventing the command line from
# running. By installing it in its own pip transaction, then
# allowing subsequent pip to use the existing requirements
# (no --upgrade or --force-reinstall) the command line is
# available
RUN set -x \
&& pip3 install \
--no-cache \
--upgrade \
https://github.com/dcos/dcos-e2e/archive/2018.12.10.0.zip \
&& pip3 install \
--no-cache \
-r /marathon-lb/requirements-dev.txt

CMD ["/bin/bash"]
Loading

0 comments on commit 94c211f

Please sign in to comment.