Sign inSign up

jenkinszh/mirror-proxy

By jenkinszh

Updated almost 6 years ago

Image
1

614

jenkinszh/mirror-proxy repository overview

Docker Pulls

Jenkins Update Center Mirror Proxy

The proxy is a HTTP server which serve for several different Jenkins Update Center sites.

Service

The Mirror Proxy server has deployed to here.

https://updates.jenkins-zh.cn/update-center.json

Get started

Run it as demo on MacOS, please follow this:

make run

On Linux, please follow this:

make run-linux

On windows, please follow this:

make run-win

Copy the binary file from docker image: mirror_proxy_id=$(docker create docker.pkg.github.com/jenkins-zh/mirror-proxy/mirror-proxy:v0.0.3) && sudo docker cp $mirror_proxy_id:/mirror-proxy . && docker rm -v $mirror_proxy_id

Run in Docker

Run the Jenkins Update Center mirror proxy in docker:

make run-image

Given the certificate file:

docker run -v rootCA:/rootCA docker.pkg.github.com/jenkins-zh/mirror-proxy/mirror-proxy:0.0.1 --cert /rootCA/demo.crt --key /rootCA/demo.key

API

The only API path is:

APIDescription
GET /update-center.json?version=2.190.2Get the update-center.json which allows you give different query conditions
GET /json-serversGet all JSON servers
GET /providersGet all mirror storage providers
GET /providers/defaultGet the default mirror storage provider
GET /plugins/list?year=2020Get the plugin list
GET /plugins?year=2020&name=TwilioNotifierGet the download data of a specific plugin
GET /statusGet the server status
Update Center

Below are the query ways for the update center of the mirror:

KeyDescription
versionThe version of current Jenkins
mirror-experimentalIndicate if you want to use the experimental of plugins
mirror-jsonServerSpecific the JSON server
mirror-providerSpecific the mirror storage provider

All keys come from query and header. Header value will override the query ones.

Tag summary

Content type

Image

Digest

Size

9.2 MB

Last updated

almost 6 years ago

docker pull jenkinszh/mirror-proxy