pga-create docker image #114
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR add two things:
.travis.ymlto do a push of the pga-create docker imageHow pga-create image works
The pga-create image will generate the list of repositories to be included in the PGA and the index in two separated steps through two different commands:
select-reposandindex-repos. The download of the repositories is done in other step using borges.Step 1: select-repos
select reposneeds a volume mounted on/pga/data. This step will leave the processed data necessary in that volume.$ docker run --rm --name pga-create_1 \ -v /home/manu/pga-docker/data:/pga/data \ -e "STARS=1000" \ pga-create:test select-reposThe environment variable
STARSconfigures the number of stars to filter repositories that will be included in the PGA list.Under the mounted volume, the data needed for the next steps is placed in:
Step 2: borges
Using borges and the generated list in the previous step
/home/manu/pga-docker/data/pga.listdownload the repositories. It's important that the bucket-size here and in the next step are the same.Step 3: index-repos
To generate the pga-index:
It's important to note two things:
"BUCKET_SIZE=2"should be the same used by borges and-v /home/manu/pga-docker/root-repositories:/pga/root-repositoriesit's where we have the repositories downloaded by borges.After this step we will have two sets of data under the mounted volumes:
So under
XXX/root-repositoriesis left all the data (siva-files and the index.tar.gz) needed by the web server.The addition of the docker-hub credentials and the creation of the
srcd/pga-createon docker-hub is still pending until this is merged, I'll do it then.