failing docker tests locally on macOS (case 2)
See original GitHub issueBug description
With the latest versions of macOS (Catalina 10.15.4) and Docker CE (2.2.0.5), many of the tests fail to run locally. (This issue was split from #881 after the approach in #882 did not seem to apply to these failures.)
Expected behaviour
Running the test suite locally on a released version of repo2docker
should have no errors or failures.
Actual behaviour
A number of tests which require running docker fail. There appear to be a number of different failure messages, many appear to be related to failures using conda
or pip
to install packages inside the docker container during self.build()
invocations. Typical message:
> raise docker.errors.BuildError(l["error"], build_log="")
E docker.errors.BuildError: The command '/bin/sh -c apt-get -qq update && apt-get -qq install --yes libapparmo
r1 lsb-release psmisc sudo > /dev/null && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lis
ts/*' returned a non-zero code: 100
repo2docker/app.py:729: BuildError
__________________________________________________________________ test session ___________________________________________________________________
def test():
app = make_r2d(args)
app.initialize()
if app.run_cmd:
# verify test, run it
app.start()
return
# no run_cmd given, starting notebook server
app.run = False
> app.start() # This just build the image and does not run it.
tests/conftest.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
repo2docker/app.py:743: in start
self.build()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Step 1 will be to enumerate and categorized those messages.
How to reproduce
- On a macOS box, checkout a released version of
repo2docker
- Setup the development environment.
- invoke
pytest tests/
- observe failures.
Your personal set up
- OS: macOS
- Docker version: CE 2.2.0.5
- repo2docker version: 0.11.4
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Known issues for Docker Desktop on Mac
The Mac Activity Monitor reports that Docker is using twice the amount of memory than it is actually using. This is due to...
Read more >gradlew check is failing locally using mac os #128 - GitHub
The problem is that this test checks functionality with HOST networking that is working differently on Linux and MacOS. That's the reason why ......
Read more >Why new Macs break your Docker build, and how to fix it
Solution #2: Run x86_64 Docker images instead The other option is to run x86_64 Docker images on your ARM64 Mac machine, using emulation....
Read more >Why does Mac OSX still exhibit case insensitivity when using ...
However, the obvious reason for using Docker is to avoid these differing behaviours in local and prod environments. Is it definitely the case...
Read more >Install Elasticsearch with Docker - Elastic
Install Elasticsearch from archive on Linux or MacOS · Install Elasticsearch with .zip on Windows ... Run Elasticsearch locally · Configuring Elasticsearch.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I vote for “leave as is”. Seems like our time is better spent doing other things than tracking down differences in storage usage, especially if the likely outcome is that we continue to recommend “YMMV, but try making the disk bigger” 😄
That bug should’ve been fixed by https://github.com/jupyter/repo2docker/pull/804