seansummers / docker-jython

Jython on Docker
4 stars 0 forks source link

interested in alpine-jython #1

Open AlJohri opened 8 years ago

AlJohri commented 8 years ago

Dockerfile using alpine:

FROM gliderlabs/alpine:3.4
RUN apk add --no-cache curl bash openjdk7-jre
ENV JYTHON_VERSION 2.7.0
RUN curl -Lo jython-installer-${JYTHON_VERSION}.jar\
 "http://search.maven.org/remotecontent?filepath=org/python/jython-installer/${JYTHON_VERSION}/jython-installer-${JYTHON_VERSION}.jar"\
 && java -jar jython-installer-${JYTHON_VERSION}.jar -s -t minimum -i mod -i ensurepip -d /usr/local/jython-${JYTHON_VERSION}\
 &&  rm -f jython-installer-${JYTHON_VERSION}.jar\
 && ln -s /usr/local/jython-${JYTHON_VERSION}/bin/* /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/jython"]
AlJohri commented 8 years ago

I run into this error message from the Dockerfile above. http://bugs.jython.org/issue2333

NotImplementedError: passwd.pw_passwd unimplemented

Jython still works as expected.

AlJohri commented 8 years ago

Full Traceback:

Traceback (most recent call last):
  File "/usr/local/jython-2.7.0/Lib/runpy.py", line 161, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/jython-2.7.0/Lib/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__main__.py", line 4, in <module>
    ensurepip._main()
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__init__.py", line 220, in _main
    bootstrap(
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__init__.py", line 123, in bootstrap
    _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__init__.py", line 45, in _run_pip
    import pip
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/__init__.py", line 10, in <module>
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/util.py", line 17, in <module>
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 109, in <module>
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 71, in _get_build_prefix
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 66, in __get_username
  File "/usr/local/jython-2.7.0/Lib/pwd.py", line 60, in getpwuid
    return struct_passwd(entry)
  File "/usr/local/jython-2.7.0/Lib/pwd.py", line 36, in __new__
    pwd = (newStringOrUnicode(pwd.loginName), newStringOrUnicode(pwd.password), int(pwd.UID),
NotImplementedError: passwd.pw_passwd unimplemented
 100 %
Congratulations! You successfully installed Jython 2.7.0 to directory /usr/local/jython-2.7.0.
seansummers commented 8 years ago

There is a bug with certain versions of jython and java (some info here http://python.6.x6.nabble.com/Jython-compatibility-with-Java8-td5061189.html ).

It looks like you forked this repo, made some fundamental changes in the base docker images? This problem is not related to any branch in this repo.

I will bring my current Docker stack up to date, and see if the error occurs. I will not troubleshoot gliderlabs/alpine.

AlJohri commented 8 years ago

@seansummers I was just dropping a note since I saw the comment in the README

If there's an interest for alpine-jython, I'll update tags for it.

seansummers commented 8 years ago

Yes, I've queued up the updates. Just not going to have gliderlabs/alpine in them.