jamesmstone / dockerfiles

:whale: A collection of dockerfiles I have made
https://hub.docker.com/r/jamesmstone/
10 stars 0 forks source link

intellij Ultimate: getting error: env: ‘python’: No such file or directory #5

Open sant527 opened 3 years ago

sant527 commented 3 years ago
FROM    openjdk:15
MAINTAINER  James Stone
#COPY ./intelliJU/ideaIU-2021.1.2.tar.gz /tmp/intellij.tar.gz
ADD https://download.jetbrains.com/idea/ideaIU-2021.1.2.tar.gz   /tmp/intellij.tar.gz
RUN mkdir -p /config \
    && mkdir -p /opt/intellij \
    && tar -xf /tmp/intellij.tar.gz --strip-components=1 -C /opt/intellij \
    && rm /tmp/intellij.tar.gz
COPY    ./idea.properties   /opt/intellij/bin/idea.properties
COPY    ./idea  /usr/local/bin/idea
ENTRYPOINT  ["/usr/local/bin/idea"]

I have build the dockerfile and then run

docker run --rm -it \
           --net="host" \
           --privileged=true \
           -e DISPLAY=${DISPLAY} \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v ${HOME}/.config/idea:/config \
           -v "$(pwd)":/home/root \
           jamesmstone/idea-ultimate

I get

env: ‘python’: No such file or directory
sant527 commented 3 years ago

finally when i have to do microdnf install python36 and also microdnf install libXtst and microdnf install libXrender to make it run

#https://github.com/jamesmstone/dockerfiles/tree/master/idea-ultimate

FROM    openjdk:15
MAINTAINER  James Stone

RUN microdnf install python36

COPY ./intelliJU/ideaIU-2021.1.2.tar.gz /tmp/intellij.tar.gz
#ADD https://download.jetbrains.com/idea/ideaIU-2021.1.2.tar.gz  /tmp/intellij.tar.gz
RUN mkdir -p /config \
    && mkdir -p /opt/intellij \
    && tar -xf /tmp/intellij.tar.gz --strip-components=1 -C /opt/intellij \
    && rm /tmp/intellij.tar.gz

RUN microdnf install libXtst
RUN microdnf install libXrender

COPY    ./idea.properties   /opt/intellij/bin/idea.properties
COPY    ./idea  /usr/local/bin/idea

ENTRYPOINT  ["/usr/local/bin/idea"]
jamesmstone commented 3 years ago

Hi Santhosh, I must admit I no longer actively use this container, I use the official snap. Having said that, if you have got it working I would accept a PR

Cheers James