8000 fix: container runtime on mac by maximilianwerk · Pull Request #2821 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: container runtime on mac #2821

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

Merged
merged 17 commits into from
Jul 1, 2021
Merged

fix: container runtime on mac #2821

merged 17 commits into from
Jul 1, 2021

Conversation

maximilianwerk
Copy link
Member

This should enable container runtime on Mac again.

@maximilianwerk maximilianwerk requested a review from a team as a code owner July 1, 2021 07:34
@jina-bot jina-bot added size/S area/core This issue/PR affects the core codebase area/network This issue/PR affects network functionality component/peapod labels Jul 1, 2021
@codecov
Copy link
codecov bot commented Jul 1, 2021

Codecov Report

Merging #2821 (479cbb2) into master (74c7341) will increase coverage by 0.56%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2821      +/-   ##
==========================================
+ Coverage   88.48%   89.05%   +0.56%     
==========================================
  Files         138      138              
  Lines        9351     9352       +1     
==========================================
+ Hits         8274     8328      +54     
+ Misses       1077     1024      -53     
Flag Coverage Δ
daemon 47.21% <50.00%> (+8.14%) ⬆️
jina 88.46% <80.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/peapods/peas/__init__.py 94.96% <50.00%> (-1.19%) ⬇️
jina/parsers/peapods/pea.py 100.00% <100.00%> (ø)
jina/peapods/networking.py 100.00% <100.00%> (+2.50%) ⬆️
jina/peapods/runtimes/container/__init__.py 84.00% <100.00%> (+0.32%) ⬆️
jina/flow/base.py 89.25% <0.00%> (+0.19%) ⬆️
jina/peapods/zmq/__init__.py 85.88% <0.00%> (+0.72%) ⬆️
jina/peapods/runtimes/zmq/asyncio.py 92.30% <0.00%> (+2.56%) ⬆️
jina/peapods/runtimes/jinad/client.py 90.53% <0.00%> (+13.60%) ⬆️
jina/peapods/runtimes/jinad/__init__.py 94.73% <0.00%> (+45.61%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74c7341...479cbb2. Read the comment docs.

@jina-bot jina-bot added area/cicd This issue/PR affects the cicd pipeline area/housekeeping This issue/PR is housekeeping labels Jul 1, 2021
@jina-bot jina-bot added the area/testing This issue/PR affects testing label Jul 1, 2021
"""Checks is current process is running inside docker."""
import subprocess

result = subprocess.run(['cat', '/proc/self/cgroup'], capture_output=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not so sure cat is present in every image

@jina-bot jina-bot added the area/cli This issue/PR affects the command line interface label Jul 1, 2021
@JoanFM JoanFM force-pushed the fix-container-on-mac branch from 2308597 to 22c5be5 Compare July 1, 2021 09:10
@JoanFM JoanFM force-pushed the fix-container-on-mac branch from 57b1c60 to 181f015 Compare July 1, 2021 09:28
@JoanFM JoanFM force-pushed the fix-container-on-mac branch from 940cf0e to 323a146 Compare July 1, 2021 10:40
@JoanFM JoanFM linked an issue Jul 1, 2021 that may be closed by this pull request
@hanxiao hanxiao merged commit faebe06 into master Jul 1, 2021
@hanxiao hanxiao deleted the fix-container-on-mac branch July 1, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cicd This issue/PR affects the cicd pipeline area/cli This issue/PR affects the command line interface area/core This issue/PR affects the core codebase area/housekeeping This issue/PR is housekeeping area/network This issue/PR affects network functionality area/testing This issue/PR affects testing component/peapod size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ContainerRuntime does not work on MacOS
5 participants
0