-
Notifications
You must be signed in to change notification settings - Fork 54
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
Periodically update image with pre-installed drivers #309
Comments
This makes a lot of sense, but we should also think about a few more things:
|
@vmarkovtsev wdyt about @dennwc 's comment, will it be useful for ML team? |
As long as there is a tag which includes both the bblfshd version and the drivers date, it should be fine. Speaking about us, we always install the drivers manually and choose only those which we need. We could switch to the full image if it is updated regularly. |
This PR contains changes to travis and Makefile configs for periodical docker image update using travis ci cron jobs Behavior 1) if TRAVIS_EVENT_TYPE is cron then a) try to get tag using `$( git describe --exact-match "$(git rev-parse HEAD)` b) if tag is not empty run make push-drivers c) in push-drivers: if TRAVIS_EVENT_TYPE is cron pull base bblfshd image instead of rebuilding it from the scratch 2) else build as always Changes to docker tags: - timestamp is added to the version tag, so the final image will look like bblfsh/bblfshd:v2.14.0-drivers-2019-10-04T14_11 Problems: - afaik deploy will not be triggered on cron job because tags are not accessible with this event type travis-ci/travis-ci#8146 ... cannot check it on practice thus 1.a) workaround has been implemented as suggested travis-ci/travis-ci#8146 (comment) closes #309 Signed-off-by: lwsanty <[email protected]>
This PR contains changes to travis and Makefile configs for periodical docker image update using travis ci cron jobs Behavior 1) if TRAVIS_EVENT_TYPE is cron then a) try to get tag using `$( git describe --exact-match "$(git rev-parse HEAD)` b) if tag is not empty run make push-drivers c) in push-drivers: if TRAVIS_EVENT_TYPE is cron pull base bblfshd image instead of rebuilding it from the scratch 2) else build as always Changes to docker tags: - timestamp is added to the version tag, so the final image will look like bblfsh/bblfshd:v2.14.0-drivers-2019-10-04 Problems: - afaik deploy will not be triggered on cron job because tags are not accessible with this event type travis-ci/travis-ci#8146 ... cannot check it on practice thus 1.a) workaround has been implemented as suggested travis-ci/travis-ci#8146 (comment) closes #309 Signed-off-by: lwsanty <[email protected]> change tag datetime to date only Signed-off-by: lwsanty <[email protected]>
This PR contains changes to travis and Makefile configs for periodical docker image update using travis ci cron jobs Behavior 1) if TRAVIS_EVENT_TYPE is cron then a) try to get tag using `$( git describe --exact-match "$(git rev-parse HEAD)` b) if tag is not empty run make push-drivers c) in push-drivers: if TRAVIS_EVENT_TYPE is cron pull base bblfshd image instead of rebuilding it from the scratch 2) else build as always Changes to docker tags: - timestamp is added to the version tag, so the final image will look like bblfsh/bblfshd:v2.14.0-drivers-2019-10-04 Problems: - afaik deploy will not be triggered on cron job because tags are not accessible with this event type travis-ci/travis-ci#8146 ... cannot check it on practice thus 1.a) workaround has been implemented as suggested travis-ci/travis-ci#8146 (comment) closes #309 Signed-off-by: lwsanty <[email protected]> change tag datetime to date only Signed-off-by: lwsanty <[email protected]>
need to wait for https://github.com/src-d/infrastructure/issues/1203 until changes start to work |
I know this is already closed, but found when bumping |
I think this is related: #329 |
Pre-history
Currently we build docker image with all pre-installed drivers only when travis ci is triggered(on per-commit to master basis)
Thus we skip new driver versions until the next ci trigger for
bblfshd
Proposal
Add cron job to
bblfshd
's travis ci so we will have an ability to update drivers once in a periodProblems
The text was updated successfully, but these errors were encountered: