Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 5e35a5b

Browse files
committed
minor changes in the conda readers
1 parent a94f0ae commit 5e35a5b

File tree

8 files changed

+27
-13
lines changed

8 files changed

+27
-13
lines changed

registries-readers/src/main/java/pro/biocontainers/readers/github/configs/GitHubConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class GitHubConfiguration {
1919
@Value("${github.docker-api-containers-urls}")
2020
String gitHubAPIDockerFiles;
2121

22-
@Value("${githug.conda-api-containers-urls}")
22+
@Value("${github.conda-api-containers-urls}")
2323
String gitHubAPICondaFiles;
2424

2525
}

registry-pipelines/src/main/java/pro/biocontainers/pipelines/jobs/registries/AnnotateToolFromContainerVersionsJob.java renamed to registry-pipelines/src/main/java/pro/biocontainers/pipelines/jobs/AnnotateToolFromContainerVersionsJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package pro.biocontainers.pipelines.jobs.registries;
1+
package pro.biocontainers.pipelines.jobs;
22

33
/**
44
* This code is licensed under the Apache License, Version 2.0 (the

registry-pipelines/src/main/java/pro/biocontainers/pipelines/jobs/registries/bioconda/ImportContainersFromCondaJob.java renamed to registry-pipelines/src/main/java/pro/biocontainers/pipelines/jobs/ImportContainersFromCondaJob.java

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package pro.biocontainers.pipelines.jobs.registries.bioconda;
1+
package pro.biocontainers.pipelines.jobs;
22

33
import lombok.extern.slf4j.Slf4j;
44
import org.springframework.batch.core.Job;
@@ -57,19 +57,35 @@ public RestTemplateBuilder restTemplateBuilder() {
5757
@Autowired
5858
GitHubConfiguration gitHubConfiguration;
5959

60-
final GitHubFileReader fileReaderService;
60+
GitHubFileReader fileReaderService;
6161

62-
final RestTemplateBuilder builder;
62+
RestTemplateBuilder builder;
6363

6464
@Value("${public-url.dockerhub}")
6565
String dockerHubRegistry;
6666

6767
@Value("${public-url.quay-io}")
6868
String quayIOHubRegistry;
6969

70-
public ImportContainersFromCondaJob(){
70+
@Value("${biocontainers-registry}")
71+
String bioContainersURL;
72+
73+
@Value("${biocontainers-registry-version}")
74+
String bioContainersVersionURL;
75+
76+
@Value("${biocontainers-registry-image}")
77+
String bioContainersImageURL;
78+
79+
@Bean
80+
public RestTemplateBuilder getRestTemplate() {
7181
builder = new RestTemplateBuilder();
82+
return builder;
83+
}
84+
85+
@Bean
86+
GitHubFileReader getFileReaderService(){
7287
fileReaderService = new GitHubFileReader(gitHubConfiguration, builder);
88+
return this.fileReaderService;
7389
}
7490

7591
/**
@@ -82,7 +98,6 @@ Step readContainersFromQUAYIO() {
8298
.get(PipelineConstants.StepNames.READ_QUAYIO_REGISTRY_LIST.name())
8399
.tasklet((stepContribution, chunkContext) -> {
84100

85-
86101
GitHubFileNameList condaFileList = fileReaderService.getCondaFiles();
87102
Map<String, Set<CondaRecipe>> toolNames = new ConcurrentHashMap<>();
88103

registry-pipelines/src/main/java/pro/biocontainers/pipelines/jobs/registries/dockerhub/ImportContainersFromDockerHubJob.java renamed to registry-pipelines/src/main/java/pro/biocontainers/pipelines/jobs/ImportContainersFromDockerHubJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package pro.biocontainers.pipelines.jobs.registries.dockerhub;
1+
package pro.biocontainers.pipelines.jobs;
22

33
import lombok.extern.slf4j.Slf4j;
44
import org.springframework.batch.core.Job;

registry-pipelines/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ github.docker-containers-recipes=https://github.com/BioContainers/containers/mas
2121
github.bioconda-containers-recipes=https://github.com/bioconda/bioconda-recipes/master/recipes/%%software_tool_version%%/meta.yaml
2222

2323
github.docker-api-containers-urls=https://api.github.com/repos/biocontainers/containers/git/trees/master?recursive=2
24-
githug.conda-api-containers-urls=https://api.github.com/repositories/42372094/git/trees/master?recursive=2
24+
github.conda-api-containers-urls=https://api.github.com/repositories/42372094/git/trees/master?recursive=2
2525

2626

2727

registry-pipelines/src/test/java/pro/biocontainers/pipelines/jobs/registries/AnnotateToolFromContainerVersionsJobTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
import org.springframework.test.context.TestPropertySource;
1313
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
1414
import pro.biocontainers.pipelines.configs.JobRunnerTestConfiguration;
15-
import pro.biocontainers.pipelines.jobs.registries.dockerhub.ImportContainersFromDockerHubJob;
16-
17-
import static org.junit.Assert.*;
18-
15+
import pro.biocontainers.pipelines.jobs.AnnotateToolFromContainerVersionsJob;
1916

2017

2118
@RunWith(SpringJUnit4ClassRunner.class)

registry-pipelines/src/test/java/pro/biocontainers/pipelines/jobs/registries/bioconda/ImportContainersFromCondaJobTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.springframework.test.context.TestPropertySource;
1313
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
1414
import pro.biocontainers.pipelines.configs.JobRunnerTestConfiguration;
15+
import pro.biocontainers.pipelines.jobs.ImportContainersFromCondaJob;
1516

1617
/**
1718
* This code is licensed under the Apache License, Version 2.0 (the

registry-pipelines/src/test/java/pro/biocontainers/pipelines/jobs/registries/dockerhub/ImportContainersFromDockerHubJobTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.springframework.test.context.TestPropertySource;
1313
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
1414
import pro.biocontainers.pipelines.configs.JobRunnerTestConfiguration;
15+
import pro.biocontainers.pipelines.jobs.ImportContainersFromDockerHubJob;
1516

1617
/**
1718
* This code is licensed under the Apache License, Version 2.0 (the

0 commit comments

Comments
 (0)