-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ ooil executable in a docker image #3458
✨ ooil executable in a docker image #3458
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3458 +/- ##
========================================
- Coverage 83.4% 78.4% -5.0%
========================================
Files 828 792 -36
Lines 35183 33460 -1723
Branches 740 741 +1
========================================
- Hits 29363 26257 -3106
- Misses 5632 7026 +1394
+ Partials 188 177 -11
Flags with carried forward coverage won't be shown. Click here to find out more.
|
75b934c
to
604cb82
Compare
@GitHK @sanderegg any hints on how to solve any of these mypy issues appreciated :-)
|
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.
Skimmed the code, looking good, did not fully go through all codeflows tbh :) Thanks a lot for 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.
I've got a few questions:
- We already have ci-service-integration-library which is published to GitHub that already contains
ooil
. - Why is this an image that is not part of simcore released with simcore?
- Where it will be pushed, how it will be versioned?
- How would this be used?
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.
Great, a few comments
packages/service-integration/src/service_integration/osparc_image_specs.py
Outdated
Show resolved
Hide resolved
packages/service-integration/src/service_integration/osparc_image_specs.py
Outdated
Show resolved
Hide resolved
org.opencontainers.image.created: "${BUILD_DATE}" | ||
org.opencontainers.image.source: "${VCS_URL}" | ||
org.opencontainers.image.revision: "${VCS_REF}" |
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.
is that the new standard? shall we create an issue and change them all?
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. I will update the others in a separate maintenance PR. There are other entries I want to add.
@@ -31,3 +31,172 @@ dask*-space/ | |||
|
|||
# mypy cache | |||
**/.mypy_cache/ | |||
|
|||
|
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.
just a thought but: the idea with dockerignore files I think are:
- ignore everything
*
- then only add what is necessary as this is used in the docker build to set up the context and might make the build magnitudes faster. I guess I will review this one of these Fridays
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've got a few questions:
- We already have ci-service-integration-library which is published to GitHub that already contains
ooil
.- Why is this an image that is not part of simcore released with simcore?
- Where it will be pushed, how it will be versioned?
- How would this be used?
discussed offline
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.
just a thought but: the idea with dockerignore files I think are:
- ignore everything
*
- then only add what is necessary as this is used in the docker build to set up the context and might make the build magnitudes faster. I guess I will review this one of these Fridays
In principle I agree with this approach but IMO there is a flaw. Say that you want to include packages/servicelib
. Using your approach you exclude everything except whatever is in that folder. The problem is, what happens e.g. with all the artifacts produced for python development (i.e. __cache__
, eggs
, etc) inside of that folder? Shouldn't it make sense that the .dockerignore
includes as well the .gitignore
?
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.
Some questions below
@@ -2,10 +2,11 @@ | |||
# filename: https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json | |||
# timestamp: 2021-11-19T10:40:07+00:00 | |||
|
|||
from __future__ import annotations | |||
# type: ignore |
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.
why is this at the beginning of the file?
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.
to ignore the entire file from mypy. Thisi s auto-generated
packages/service-integration/src/service_integration/osparc_config.py
Outdated
Show resolved
Hide resolved
1b51983
to
5c8b065
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
service-integration
executableooil
is now released as an image. NOTE that this is NOT a new stack service!services/docker-compose-build.yml
so that the image is published and tagged analogous to the rest of the service stack imagesmake mypy
).gitginore
as part of.dockerignore
VCS_REF
takes now entire commit SHAsample/sleepers.py
Related issue/s
How to test
cd packages/service-integration make build make inspect docker run -it local/service-integration:production --version