-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local tests no longer need docker-compose and rely on "mini-marathon" #274
Local tests no longer need docker-compose and rely on "mini-marathon" #274
Conversation
@@ -1,11 +1,12 @@ | |||
ARG MARATHONVERSION=v1.6.322 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we still need it because of this https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
@@ -1,11 +1,12 @@ | |||
ARG MARATHONVERSION=v1.6.322 | |||
FROM mesosphere/marathon:$MARATHONVERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too bad we cant just use the upstream image directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried using it directly but your functional tests go deeper and we need mesos-master
and mesos-agent
for all tests to work.
BTW, having these tests is great, I would go as far as to say these are end-to-end <3
[[ -n $TRAVIS ]] || docker-compose build --build-arg "MARATHONVERSION=${MARATHONVERSION}" | ||
[[ -n $TRAVIS ]] || docker-compose pull | ||
[[ -n $TRAVIS ]] || docker-compose up -d | ||
[[ -n $TRAVIS ]] || docker pull "missingcharacter/marathon-python:${MARATHONVERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good optimization. Your docker hub account is as good as any.
Thanks for getting rid of compose. KISS |
Works here: https://travis-ci.org/github/missingcharacter/marathon-python/builds/690125304