Skip to main content

PyPI version License

About

A distribution tool of a selection of temurin17-binaries, as the GFW behavior is weird while downloading jre etc., with Python scripts.

How To

    JRE-Mirror requires Python 3.9 and above.

The sub-folders in temurin17-binaries can be deployed as a website root path. In the sub-folders, run the Python module, jre-mirror to download the selected binary distributions, with proxy configured in proxy.json.

Download the JRE-Mirror-jdk17.zip from the release section. Configure the list.json, which is the download tasks configuration, where

    mirroring: a list of target binaries to bo downloaded from temurin17
    resources: a list of target binaries completed, and is locally available

Start the jre-mirror Python module to download the mirrors.

    # (Tested on Ubuntu 24.0.4)
    cd JRE-Mirror/temurin17-binaries/jdk-17.0.17+10
    python3 -m venv .env
    source .env/bin/activate # For windows: source .env/Scripts/activate
    pip install jre-mirror
    python3 -m jre_mirror

Now configure the resources a Nginx static site or, If you need more fine control, by starting a feature requirement, use the Html-service as the web service, with which a simple Windows service can be setup as a static web site.

A sample of html-service's configuration, WEB-INF/html-service.json, can be:

    { "type": "io.oz.srv.WebConfig",
      "port": 1984,
      "paths": [
        {"path": "/jre-17/*", "resource": "$HOME/JRE-Mirror/temurin17-binaries/jdk-17.0.17+10"}],
      "welcomepages": [],
      "startHandler": []
    }

Restart the service, if you followed the steps in the README of html-service. E.g.

    sudo systemctl restart html-service.service

Try

    http://127.0.0.1:1984/jre-17/list.json

The binaries and the json file can be available online now.

About Proxy

To configure the proxy, in list.json, specify the configuration file path:

    # list.json
    { ...
      "proxy": "proxy.json"
      ...
    }

And in proxy.json, configure the proxy string following the general proxy format of Python:

   { "type": "io.oz.edge.Proxy",
     "http": "http://user:passwd@127.0.0.1:port",
     "https":"http://user:passwd@127.0.0.1:port"
   }

Note: All the type fields in json files are necessary.

Credits:

temurin17-binaries

The home for releases and nightlies for all Temurin17 variants and platforms

OpenJDK Mirror Scripts

These scripts are run at https://ci.adoptopenjdk.net/view/git-mirrors/ and are responsible for updating the Eclipse Adoptium clones of the various OpenJDK Skara github repositories that we are interested in building.

jyksnw/install-jdk

Python package that simplifies the process of installing OpenJDK on Windows, macOS, Linux and other supported operating systems, saving time and effort.

So no equivolent?

Metadata

Release files for jre-mirror 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jre-mirror 0.1.2
File Size Uploaded Provenance Actions
jre_mirror-0.1.2.tar.gz 9.2 kB Without provenance Details for jre_mirror-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jre-mirror 0.1.2
File Interpreter ABI Platform Actions
jre_mirror-0.1.2-py3-none-any.whl Python 3 none any Details for jre_mirror-0.1.2-py3-none-any.whl

Total release size: 18.5 kB

Release files / jre_mirror-0.1.2.tar.gz

Download URL jre_mirror-0.1.2.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2c6601ce1c7d6c726c6a9db5325c85da96bc873d0abe0c4151e249888c4b1c72
BLAKE2b-256 checksum
How to use checksums
90b7dc37fb7f7f85112a74256a04e5c15696e032b8cacd11a40cec7e4703401b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.1

Release files / jre_mirror-0.1.2-py3-none-any.whl

Download URL jre_mirror-0.1.2-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ac6e1984f2f8be62a645527d602e8b94cb34c61cde775ec1ba8ea0c8cc51d5c
BLAKE2b-256 checksum
How to use checksums
89f1f55fe4f3cbbf94be0e0b025106411936152858cb1578d92f7322b75ccfa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.1

Security for jre-mirror 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page