Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Artifactory: download github release using remote repository

I have created my own artifactory in docker:

$ docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-pro:latest

I can access my artifactory on http://192.168.140.xx:8081/artifactory I have some free trial license for 30 days (after doing some registration). I've skipped the proxy part

I've created a remote repository which configuration looks like this:

enter image description here

Now I try to visit:

http://192.168.140.xxx:8081/artifactory/yarn-test/v0.23.4/yarn-v0.23.4.tar.gz

In which I want to access:

https://github.com/yarnpkg/yarn/releases/download/v0.23.4/yarn-v0.23.4.tar.gz

(So accessing my artifactory and go to my yarn-test repo and I provide the path to the release I want to download: But I receive: enter image description here

What is the reason? What am I doing wrong? I know I can use VCS to get a GitHub repo and use the API to access a release but I really need the v0.23.4/yarn-v0.23.4.tar.gz at the end of my URL .

like image 361
DenCowboy Avatar asked Sep 05 '17 17:09

DenCowboy


People also ask

How do I add a remote repository to Jfrog?

To configure a remote repository, in the Administrator module, go to Repositories | Repositories select the Remote tab, click Add Repository and select Remote Repository.

What is remote repository in Artifactory?

Remote Repositories A remote repository serves as a caching proxy for a repository managed at a remote URL (which may itself be another Artifactory remote repository). Artifacts are stored and updated in remote repositories according to various configuration parameters that control the caching and proxying behavior.


1 Answers

This comment helped me to get it working.

The problem causing this is documented here

The Repository configuration should look like this:

Generic Repository Basic configuration

Basic Configuration:

Repository Type: Remote
Packages Type: Generic
URL: https://github.com/
Repository Layout: simple-default
List remote folder items: false (unchecked)

Note: there is no remote layout mapping needed

Generic Repository Advanced configuration

Advanced configuration:

Bypass HEAD Requests: true (checked)

Note that you need artifyctory version 5.5.2 or higher.

like image 148
Nekator Avatar answered Oct 05 '22 16:10

Nekator