-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GR-39204] Add support for GitHub dev containers.
PullRequest: graal/11994
- Loading branch information
Showing
5 changed files
with
42 additions
and
3 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,30 @@ | ||
# LICENSE UPL 1.0 | ||
# | ||
# Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
|
||
FROM container-registry.oracle.com/os/oraclelinux:7-slim | ||
|
||
RUN yum update -y oraclelinux-release-el7 \ | ||
&& yum install -y oraclelinux-developer-release-el7 oracle-softwarecollection-release-el7 \ | ||
&& yum-config-manager --enable ol7_developer \ | ||
&& yum-config-manager --enable ol7_developer_EPEL \ | ||
&& yum-config-manager --enable ol7_optional_latest \ | ||
&& yum install -y bzip2-devel ed gcc gcc-c++ gcc-gfortran gzip file fontconfig less libcurl-devel make openssl openssl-devel readline-devel tar vi which xz-devel zlib-devel \ | ||
&& yum install -y glibc-static libcxx libcxx-devel libstdc++-static zlib-static git \ | ||
&& rm -rf /var/cache/yum | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
PYENV_ROOT=/data/.pyenv/ \ | ||
MX_PATH=/data/mx/ \ | ||
JAVA_HOME=/data/jdk \ | ||
PATH="/data/mx/:/data/.pyenv/shims/:/data/.pyenv/bin:$PATH" | ||
|
||
RUN git clone https://github.com/pyenv/pyenv.git ${PYENV_ROOT} \ | ||
&& pyenv install 3.8.0 \ | ||
&& pyenv global 3.8.0 \ | ||
&& git clone https://github.com/graalvm/mx.git ${MX_PATH} \ | ||
&& cd /data \ | ||
&& mx --java-home= fetch-jdk --jdk-id labsjdk-ce-11 --to jdk-dl --alias ${JAVA_HOME} | ||
|
||
CMD mx --version |
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,8 @@ | ||
{ | ||
"name": "GraalVM CE dev environment", | ||
"dockerFile": "Dockerfile", | ||
|
||
"extensions": [ | ||
"vscjava.vscode-java-pack" | ||
] | ||
} |
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
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
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