Ticket #29105: Dockerfile-sage_gentoo

File Dockerfile-sage_gentoo, 3.0 KB (added by mkoeppe, 22 months ago)
Line 
1# -*- Dockerfile -*-
2# sage on gentoo prefix
3## Bootstrapping from alpine fails b/c wget is nonstandard
4## FROM alpine:latest
5## RUN apk add --no-cache bash gcc make
6## Bootstrapping from ubuntu:
7FROM ubuntu:latest
8## Need xz and patch because otherwise, after bootstrapping its own xz&patch, it still complains:
9## * Bootstrapping Python * Unpacking Python
10## ./bootstrap-prefix.sh: line 959: xz: command not found
11RUN apt-get update && apt-get -y install --no-install-recommends gcc make wget ca-certificates libc6-dev file m4 xz-utils patch
12# From https://wiki.gentoo.org/wiki/Project:Prefix/Bootstrap
13RUN mkdir /gentoo
14WORKDIR /gentoo
15ENV EPREFIX=/gentoo
16RUN wget https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/bootstrap-prefix.sh
17RUN env MAKEOPTS="-j16" bash ./bootstrap-prefix.sh $EPREFIX stage1 || (find . -name "*.log" -exec cat {} +; exit 1)
18##                 $ensurepip --root=/ ; \
19## fi
20## Traceback (most recent call last):
21##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/runpy.py", line 193, in _run_module_as_main
22##     "__main__", mod_spec)
23##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/runpy.py", line 85, in _run_code
24##     exec(code, run_globals)
25##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/ensurepip/__main__.py", line 5, in <module>
26##     sys.exit(ensurepip._main())
27##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/ensurepip/__init__.py", line 204, in _main
28##     default_pip=args.default_pip,
29##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/ensurepip/__init__.py", line 117, in _bootstrap
30##     return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
31##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/ensurepip/__init__.py", line 27, in _run_pip
32##     import pip._internal
33##   File "/tmp/tmpgps53vrh/pip-18.1-py2.py3-none-any.whl/pip/_internal/__init__.py", line 40, in <module>
34##   File "/tmp/tmpgps53vrh/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/autocompletion.py", line 8, in <module>
35##   File "/tmp/tmpgps53vrh/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/main_parser.py", line 8, in <module>
36##   File "/tmp/tmpgps53vrh/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/cmdoptions.py", line 20, in <module>
37##   File "/tmp/tmpgps53vrh/pip-18.1-py2.py3-none-any.whl/pip/_internal/utils/hashes.py", line 10, in <module>
38##   File "/tmp/tmpgps53vrh/pip-18.1-py2.py3-none-any.whl/pip/_internal/utils/misc.py", line 21, in <module>
39##   File "/tmp/tmpgps53vrh/pip-18.1-py2.py3-none-any.whl/pip/_vendor/pkg_resources/__init__.py", line 35, in <module>
40##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/plistlib.py", line 65, in <module>
41##     from xml.parsers.expat import ParserCreate
42##   File "/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/xml/parsers/expat.py", line 4, in <module>
43##     from pyexpat import *
44## ModuleNotFoundError: No module named 'pyexpat'
45## Makefile:1102: recipe for target 'install' failed
46## make: *** [install] Error 1
47## ??? Python failed to install *sigh* continuing anyway
48## * Python bootstrapped
49## http://distfiles.gentoo.org/snapshots