Skip to content

Dockerfile won't build #83

@ivanperez-keera

Description

@ivanperez-keera

The dockerfile doesn't currently build. Here's the bottom of the log:

#18 14.18   Attempting uninstall: setuptools
#18 14.18     Found existing installation: setuptools 45.2.0
#18 14.18     Not uninstalling setuptools at /usr/lib/python3/dist-packages, outside environment /usr
#18 14.18     Can't uninstall 'setuptools'. No files were found to uninstall.
#18 14.53   Attempting uninstall: wheel
#18 14.53     Found existing installation: wheel 0.34.2
#18 14.53     Not uninstalling wheel at /usr/lib/python3/dist-packages, outside environment /usr
#18 14.53     Can't uninstall 'wheel'. No files were found to uninstall.
#18 15.85 Successfully installed Jinja2-2.11.2 MarkupSafe-2.0.1 PyYAML-5.3.1 attrs-25.3.0 bitarray-3.8.0 cerberus-1.3.2 certifi-2026.1.4 charset-normalizer-3.4.4 click-8.1.8 click-default-group-1.2.4 coverage-5.2.1 coveralls-4.0.1 docopt-0.6.2 idna-3.11 iniconfig-2.1.0 lxml-6.0.2 numpy-1.23.4 packaging-26.0 pluggy-0.13.1 py-1.11.0 pytest-6.1.1 pytest-cov-5.0.0 pytest-repeat-0.9.3 python-dateutil-2.9.0.post0 requests-2.32.4 ruamel.yaml-0.17.21 ruamel.yaml.clib-0.2.8 setuptools-50.3.2 six-1.15.0 sqlite-utils-2.21 tabulate-0.9.0 toml-0.10.2 urllib3-2.2.3 wheel-0.35.1 xtce-generator-1.2.5 yamlpath-3.8.2
#18 DONE 16.1s

#19 [15/16] RUN cd  /home/docker/auto-yamcs/juicer && make clean
#19 0.302 make: *** No rule to make target 'clean'.  Stop.
#19 ERROR: process "/bin/sh -c cd  /home/docker/auto-yamcs/juicer && make clean" did not complete successfully: exit code: 2
------
 > [15/16] RUN cd  /home/docker/auto-yamcs/juicer && make clean:
0.302 make: *** No rule to make target 'clean'.  Stop.
------
Dockerfile:19
--------------------
  17 |     COPY . /home/docker/auto-yamcs
  18 |     RUN cd  /home/docker/auto-yamcs && pip3 install -r src/requirements.txt
  19 | >>> RUN cd  /home/docker/auto-yamcs/juicer && make clean
  20 |     RUN cd  /home/docker/auto-yamcs && pytest --count=10
  21 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cd  /home/docker/auto-yamcs/juicer && make clean" did not complete successfully: exit code: 2

I don't know why make clean would not work. I see a clean target in the Makefile in the juicer project for the commit that the submodule is pinning.

If I remove that line, then I get:

#20 [16/16] RUN cd  /home/docker/auto-yamcs && pytest --count=10
#20 0.800 ============================= test session starts ==============================
#20 0.800 platform linux -- Python 3.8.10, pytest-6.1.1, py-1.11.0, pluggy-0.13.1
#20 0.800 rootdir: /home/docker/auto-yamcs
#20 0.800 plugins: cov-5.0.0, repeat-0.9.3
#20 0.800 collected 20 items / 3 errors / 17 selected
#20 0.800 
#20 0.800 ==================================== ERRORS ====================================
#20 0.800 ___________________ ERROR collecting tests/test_squeezer.py ____________________
#20 0.800 ImportError while importing test module '/home/docker/auto-yamcs/tests/test_squeezer.py'.
#20 0.800 Hint: make sure your test modules/packages have valid Python names.
#20 0.800 Traceback:
#20 0.800 /usr/lib/python3.8/importlib/__init__.py:127: in import_module
#20 0.800     return _bootstrap._gcd_import(name[level:], package, level)
#20 0.800 tests/test_squeezer.py:11: in <module>
#20 0.800     import src.squeezer as squeezer
#20 0.800 src/squeezer.py:18: in <module>
#20 0.800     from xtce_generator.src.xtce import xtce_generator
#20 0.800 E   ModuleNotFoundError: No module named 'xtce_generator.src'
#20 0.800 _____________________ ERROR collecting tests/test_xtce.py ______________________
#20 0.800 ImportError while importing test module '/home/docker/auto-yamcs/tests/test_xtce.py'.
#20 0.800 Hint: make sure your test modules/packages have valid Python names.
#20 0.800 Traceback:
#20 0.800 /usr/lib/python3.8/importlib/__init__.py:127: in import_module
#20 0.800     return _bootstrap._gcd_import(name[level:], package, level)
#20 0.800 tests/test_xtce.py:9: in <module>
#20 0.800     from xtce_generator.src.xtce.xtce_msg_parser import XTCEParser
#20 0.800 E   ModuleNotFoundError: No module named 'xtce_generator.src'
#20 0.800 __________________ ERROR collecting tests/test_xtce_parser.py __________________
#20 0.800 ImportError while importing test module '/home/docker/auto-yamcs/tests/test_xtce_parser.py'.
#20 0.800 Hint: make sure your test modules/packages have valid Python names.
#20 0.800 Traceback:
#20 0.800 /usr/lib/python3.8/importlib/__init__.py:127: in import_module
#20 0.800     return _bootstrap._gcd_import(name[level:], package, level)
#20 0.800 tests/test_xtce_parser.py:12: in <module>
#20 0.800     from xtce_generator.src.xtce.xtce_msg_parser import XTCEParser
#20 0.800 E   ModuleNotFoundError: No module named 'xtce_generator.src'
#20 0.800 =========================== short test summary info ============================
#20 0.800 ERROR tests/test_squeezer.py
#20 0.800 ERROR tests/test_xtce.py
#20 0.800 ERROR tests/test_xtce_parser.py
#20 0.800 !!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
#20 0.800 ============================== 3 errors in 0.25s ===============================
#20 ERROR: process "/bin/sh -c cd  /home/docker/auto-yamcs && pytest --count=10" did not complete successfully: exit code: 2
------
 > [16/16] RUN cd  /home/docker/auto-yamcs && pytest --count=10:
0.800     return _bootstrap._gcd_import(name[level:], package, level)
0.800 tests/test_xtce_parser.py:12: in <module>
0.800     from xtce_generator.src.xtce.xtce_msg_parser import XTCEParser
0.800 E   ModuleNotFoundError: No module named 'xtce_generator.src'
0.800 =========================== short test summary info ============================
0.800 ERROR tests/test_squeezer.py
0.800 ERROR tests/test_xtce.py
0.800 ERROR tests/test_xtce_parser.py
0.800 !!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
0.800 ============================== 3 errors in 0.25s ===============================
------
Dockerfile:20
--------------------
  18 |     RUN cd  /home/docker/auto-yamcs && pip3 install -r src/requirements.txt
  19 |     RUN cd  /home/docker/auto-yamcs/juicer
  20 | >>> RUN cd  /home/docker/auto-yamcs && pytest --count=10
  21 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cd  /home/docker/auto-yamcs && pytest --count=10" did not complete successfully: exit code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions