question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failing docker tests locally on macOS (case 2)

See original GitHub issue

Bug 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

  1. On a macOS box, checkout a released version of repo2docker
  2. Setup the development environment.
  3. invoke pytest tests/
  4. observe failures.

Your personal set up

  • OS: macOS
  • Docker version: CE 2.2.0.5
  • repo2docker version: 0.11.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
betatimcommented, May 18, 2020

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” 😄

1reaction
manicscommented, May 18, 2020

That bug should’ve been fixed by https://github.com/jupyter/repo2docker/pull/804

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found