-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Modify che-server Dockerfile to run on OpenShift #6200
Conversation
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
dockerfiles/che/Dockerfile
Outdated
@@ -38,3 +38,5 @@ COPY entrypoint.sh /entrypoint.sh | |||
COPY open-jdk-source-file-location /open-jdk-source-file-location | |||
ENTRYPOINT ["/entrypoint.sh"] | |||
ADD eclipse-che.tar.gz /home/user/ | |||
RUN mkdir /logs /data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move these RUN instructions before the ADD eclipse-che.tar.gz instruction as it's mainly the only layer that is changing overt time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and merge the two RUN instructions into only one (merge it to the only one RUN instruction of the file)
dockerfiles/che/Dockerfile.centos
Outdated
RUN chmod -R 0777 /home/user/ | ||
RUN mkdir /data && chmod 0777 /data | ||
RUN mkdir /logs /data | ||
RUN chmod -R 0777 /logs /data /home/user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same remark that before
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
@benoitf good points. I've moved |
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
ADD eclipse-che.tar.gz /home/user/ | ||
RUN chmod -R 0777 /home/user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move it to the previous RUN instruction e.g.:
RUN mkdir -p /logs /data /home/user && \
chmod -R 0777 /logs /data /home/user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see that it won't help because you want to affect unpacked archive
hello, is this PR have increased the size of the image ?
|
@benoitf yes. We need to find a better solution to have the right permissions on the $ docker history eclipse/che-server:nightly
IMAGE CREATED CREATED BY SIZE COMMENT
07b53940dbd5 14 hours ago /bin/sh -c chmod -R 0777 /home/user 185MB
<missing> 14 hours ago /bin/sh -c #(nop) ADD file:297633b39f9900d... 185MB
<missing> 2 days ago /bin/sh -c mkdir /logs /data && chmod ... 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ENTRYPOINT ["/entrypoin... 0B
<missing> 2 weeks ago /bin/sh -c #(nop) COPY file:08ec4490bdad68... 20.6kB
<missing> 2 weeks ago /bin/sh -c #(nop) COPY file:e9b11779a19eda... 13.6kB
<missing> 2 weeks ago /bin/sh -c #(nop) EXPOSE 8000/tcp 8080/tcp 0B
<missing> 2 weeks ago /bin/sh -c echo "http://dl-4.alpinelinux.o... 21.4MB
<missing> 2 weeks ago /bin/sh -c #(nop) ENV LANG=C.UTF-8 DOCKER... 0B
<missing> 6 months ago /bin/sh -c set -x && apk add --no-cache ... 103MB
<missing> 6 months ago /bin/sh -c #(nop) ENV JAVA_ALPINE_VERSION... 0B
<missing> 6 months ago /bin/sh -c #(nop) ENV JAVA_VERSION=8u111 0B
<missing> 6 months ago /bin/sh -c #(nop) ENV PATH=/usr/local/sbi... 0B
<missing> 6 months ago /bin/sh -c #(nop) ENV JAVA_HOME=/usr/lib/... 0B
<missing> 6 months ago /bin/sh -c { echo '#!/bin/sh'; echo 's... 87B
<missing> 6 months ago /bin/sh -c #(nop) ENV LANG=C.UTF-8 0B
<missing> 6 months ago /bin/sh -c #(nop) ADD file:3df55c321c1c8d7... 4.81MB |
What does this PR do?
Modify Che alpine-based Dockerfile to make it OpenShift compatible.
What issues does this PR fix or reference?
The 6th task of #6097
Changelog
Image eclipse/che-server:nightly can now be run on OpenShift
Release Notes
Image eclipse/che-server:nightly can now be run on OpenShift