Skip to content

Commit

Permalink
[GR-39204] Add support for GitHub dev containers.
Browse files Browse the repository at this point in the history
PullRequest: graal/11994
  • Loading branch information
fniephaus committed Jun 20, 2022
2 parents 9922836 + b8f837e commit d5fae29
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .devcontainer/Dockerfile
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
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
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"
]
}
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
branches-ignore:
- 'github/**'
paths-ignore:
- '.travis.yml'
- '.devcontainer/**'
- '.github/workflows/quarkus.yml'
- '**.md'
pull_request:
paths-ignore:
- '.travis.yml'
- '.devcontainer/**'
- '.github/workflows/quarkus.yml'
- '**.md'
# Enable manual dispatch of the workflow
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This source repository is the main repository for GraalVM and includes the follo

Directory | Description
------------ | -------------
[`.devcontainer/`](.devcontainer/) | Configuration files for GitHub dev containers.
[`.github/`](.github/) | Configuration files for GitHub issues, workflows, ….
[`compiler/`](compiler/) | [Graal compiler][reference-compiler], a modern, versatile compiler written in Java.
[`espresso/`](espresso/) | [Espresso][java-on-truffle], a meta-circular Java bytecode interpreter for the GraalVM.
Expand Down
2 changes: 1 addition & 1 deletion ci.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ local vm = import 'vm/ci_includes/vm.jsonnet';
# for a PR that only touches *.md files, the docs, are config files for GitHub
local add_excludes_guard(build) = build + {
guard+: {
excludes+: ["**.md", "docs/**", ".github/**"]
excludes+: ["**.md", "docs/**", ".devcontainer/**", ".github/**"]
}
};

Expand Down

0 comments on commit d5fae29

Please sign in to comment.