-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to use che server by using Eclipse OpenJ9 JVM now that Che is s…
…upporting Java9 runtime Change-Id: I309e6eb1af4d0166758481bfd462c074de384ad6 Signed-off-by: Florent BENOIT <[email protected]>
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) 2017 Red Hat, Inc. | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License v1.0 | ||
# which accompanies this distribution, and is available at | ||
# http://www.eclipse.org/legal/epl-v10.html | ||
# | ||
# Contributors: | ||
# Florent Benoit - Initial Implementation | ||
# | ||
# To build it, run in the repository root: | ||
# `docker build -t eclipse/che-server:openj9 -f Dockerfile.openj9 .` | ||
# | ||
# To run it: | ||
# docker run -e IMAGE_CHE=eclipse/che-server:openj9 \ | ||
# -it \ | ||
# --rm \ | ||
# -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/data:/data \ | ||
# eclipse/che:nightly start --fast | ||
# | ||
|
||
FROM adoptopenjdk/openjdk9-openj9:x86_64-alpine-jdk-9.181 | ||
|
||
ENV LANG=C.UTF-8 \ | ||
DOCKER_VERSION=1.6.0 \ | ||
DOCKER_BUCKET=get.docker.com \ | ||
CHE_IN_CONTAINER=true | ||
|
||
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ | ||
apk add --update curl openssl sudo bash && \ | ||
curl -sSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-${DOCKER_VERSION}" -o /usr/bin/docker && \ | ||
chmod +x /usr/bin/docker && \ | ||
echo "%root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ | ||
rm -rf /tmp/* /var/cache/apk/* | ||
|
||
EXPOSE 8000 8080 | ||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
RUN mkdir /logs /data && \ | ||
chmod 0777 /logs /data | ||
ADD eclipse-che /home/user/eclipse-che | ||
RUN find /home/user -type d -exec chmod 777 {} \; |