-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
added localkube devshell container tests to jenkins #1999
added localkube devshell container tests to jenkins #1999
Conversation
7219c7f
to
109dfaa
Compare
|
||
docker stop devshell | ||
docker rm devshell | ||
exit $RET |
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.
newline
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.
done
|
||
RET=0 | ||
|
||
docker run --name devshell -p 127.0.0.1:8080:4321 --privileged gcr.io/k8s-minikube/localkube-dind-image-devshell:$COMMIT /start.sh & |
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.
A nice-to-have here would be to let docker use a random name and port so we can run these tests in parallel.
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.
done
@@ -0,0 +1,50 @@ | |||
#!/bin/bash |
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 you need to add this job to the "set-pending" script?
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.
done
32e52cd
to
7772ed2
Compare
result=0 | ||
JOB_NAME="Linux-Container" | ||
|
||
NAME=devshell-"$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 32)" |
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.
You don't need to use the --name parameter, it might be a bit more robust to grab the generated container id like:
cid=$(docker run -d ...) and avoid passing in --name everywhere.
|
||
# Upload containers for the PR: | ||
make localkube-image | ||
gcloud docker -- push gcr.io/k8s-minikube/localkube-image:$ghprbActualCommit |
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.
It looks like the tag we use is based on the localkube version, not on the commit ID:
https://github.com/kubernetes/minikube/blob/master/Makefile#L45
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 am planning on using a COMMIT based tag for the jenkins CI testing and a LOCALKUBE_VERSION tag for releases. When building the image for CI I set the TAG=COMMIT
a5a29f2
to
3e5fc7e
Compare
Codecov Report
@@ Coverage Diff @@
## master #1999 +/- ##
======================================
Coverage 29.6% 29.6%
======================================
Files 77 77
Lines 4810 4810
======================================
Hits 1424 1424
Misses 3204 3204
Partials 182 182 Continue to review full report at Codecov.
|
3e5fc7e
to
da4db2c
Compare
da4db2c
to
959720f
Compare
No description provided.