Skip to content
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

Netlify Deployment Instructions No Longer Work #2258

Open
sopa301 opened this issue Dec 23, 2024 · 1 comment · May be fixed by reposense/publish-RepoSense#15
Open

Netlify Deployment Instructions No Longer Work #2258

sopa301 opened this issue Dec 23, 2024 · 1 comment · May be fixed by reposense/publish-RepoSense#15
Assignees

Comments

@sopa301
Copy link
Contributor

sopa301 commented Dec 23, 2024

The problem

With the move to Java 11, the current instructions to deploy to Netlify no longer work as the default build image only has Java 8.

If possible, describe the solution

Add code to install Java 11 manually if the build system does not currently support it.

If applicable, describe alternatives you've considered

Discontinue support for Netlify deployments.

Additional context

A discussion on potential native Java 11 support

On a side note, the Netlify deployment for RepoSense has been down since March 2024.

@CYX22222003
Copy link
Contributor

CYX22222003 commented Jan 31, 2025

I have attempted to add a netlify.toml to the report-RepoSense repo to manually download the JDK for java 11. This seems to solve the issue and here is my deployed website and build log.
Here is the script

[build]
  command = """
  wget https://download.java.net/java/ga/jdk11/openjdk-11_linux-x64_bin.tar.gz &&
  tar -xvzf openjdk-11_linux-x64_bin.tar.gz &&
  mv jdk-11 ~/openjdk11 &&
  export JAVA_HOME=$HOME/openjdk11 &&
  export PATH=$JAVA_HOME/bin:$PATH &&
  pip install requests && ./run.sh
  """

  publish = "./reposense-report"
  base = "./"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants