Skip to content

Getting stuck on step 5 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jjtolton opened this issue Sep 2, 2022 · 9 comments
Closed

Getting stuck on step 5 #1

jjtolton opened this issue Sep 2, 2022 · 9 comments

Comments

@jjtolton
Copy link

jjtolton commented Sep 2, 2022

Unable to get past step 5.
This is what I'm seeing:

jay@CombinatusMk-X /tmp/libpython-require-error $ docker-compose up
Building libpython-test
Sending build context to Docker daemon  104.9MB
Step 1/22 : FROM clojure:openjdk-17-tools-deps
 ---> 013e97f71b27
Step 2/22 : EXPOSE 9876
 ---> Using cache
 ---> 3c3357e19a5a
Step 3/22 : RUN apt-get update && apt-get install -y gnupg2
 ---> Using cache
 ---> 8cad5700a324
Step 4/22 : RUN echo "deb http://fr.archive.ubuntu.com/ubuntu bionic main" >> /etc/apt/sources.list
 ---> Using cache
 ---> 5bf7e9367af8
Step 5/22 : RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
 ---> Running in 998631dde247
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.n4SZl86DHG/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
^CGracefully stopping... (press Ctrl+C again to force)

image

(see clj-python/libpython-clj#212)

@metasoarous
Copy link
Owner

Hi @jjtolton! Thanks for checking this out.

I get that same warning, but the following commands run without issue. It looks like maybe you hit Ctrl-C to kill; Did it hang for you there? If so I'm curious, for how long?

Thanks again!

@metasoarous
Copy link
Owner

Alternatively, if you can point me to a good Docker image I could use which sets up python3, jdk-17, and tools-deps, I'd be happy to start from there :-)

@metasoarous
Copy link
Owner

Just found the libpythonclj Dockerfiles: https://github.com/clj-python/libpython-clj/blob/master/dockerfiles/Py39Dockerfile

Let me give that a try.

@metasoarous
Copy link
Owner

I'll not though that there it's just setting up jdk-8, but will see if I can get 17 to work.

@metasoarous
Copy link
Owner

OK; I just pushed an update using the deadsnakes ppa to install python (as in libpythonclj's example Dockerfiles). That should get you past this particular error.

That having been said, the issue originally posted about (clj-python/libpython-clj#212) remains unresolved.

@jjtolton
Copy link
Author

jjtolton commented Sep 2, 2022 via email

@cnuernber
Copy link

I think the jvm-opts only works inside aliases. If you put jvm-opts inside an alias you will see upon startup:

WARNING: Using incubator modules: jdk.incubator.foreign
Clojure 1.11.1

If you don't see the warning you haven't loaded the module.

@jjtolton
Copy link
Author

jjtolton commented Sep 3, 2022

@metasoarous, is that Dockerfile working for you? I'm getting this now:

jay@CombinatusMk-X /tmp/libpython-require-error $ docker-compose up --build
Building libpython-test
Sending build context to Docker daemon  104.9MB
Step 1/9 : FROM clojure:openjdk-17-tools-deps
 ---> 013e97f71b27
Step 2/9 : EXPOSE 9876
 ---> Using cache
 ---> 3c3357e19a5a
Step 3/9 : RUN apt-get -qq update   && apt-get install -y software-properties-common   && add-apt-repository -y ppa:deadsnakes/ppa   && apt-get install -y python3.9 libpython3.9 python3-pip python3-distutils
 ---> Running in 9f702766c241
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package software-properties-common
The command '/bin/sh -c apt-get -qq update   && apt-get install -y software-properties-common   && add-apt-repository -y ppa:deadsnakes/ppa   && apt-get install -y python3.9 libpython3.9 python3-pip python3-distutils' returned a non-zero code: 100
ERROR: Service 'libpython-test' failed to build : Build failed

@jjtolton
Copy link
Author

jjtolton commented Sep 3, 2022

Disregard, networking error on my part

@jjtolton jjtolton closed this as completed Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants