Skip to content

Commit

Permalink
Merge pull request #45 from p2m2/develop
Browse files Browse the repository at this point in the history
prepare 1.0.10
  • Loading branch information
ofilangi authored Dec 22, 2021
2 parents 4f9ba48 + 837dc5e commit 937d456
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion msd-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cache:
TXT_CLEAR: "\e[0m"
TXT_YELLOW: "\e[33m"

image: inraep2m2/service-rdf-database-deployment:1.0.9
image: inraep2m2/service-rdf-database-deployment:1.0.10
tags: [docker]
before_script:
- '[ -z "$SSH_OPTS" ] && echo "SSH_OPTS is Empty" && exit 1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ case object ServiceRdfDatabaseDeployment extends App {
println("# == service database deployment / Metabolomics Semantic Data lake / MetaboHUB == ")
// if you want to access the command line args:
println("# -- args : ");
args.foreach(x => print(x+" "))
println("")
args.foreach(x => println(x+" "))

val script =
"""
hdfs dfs mkdir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ case object ProvenanceBuilder {
.add(DCTERMS.TITLE,release)
.add(DCTERMS.MODIFIED,literal(startDate,XSD.DATETIME) )
.add(PROV.WAS_GENERATED_BY, s"$ciPipelineUrl")
.add(DCAT.ACCESS_URL,s"hdfs://rdf/${category}/${database}/${release}")

val endString : String = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").format(new Date())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ object ServiceRdfDatabaseDeploymentTest extends TestSuite {
println("=============================================================================================")
// all mkdir should have -p option to avoid an error
assert(!lines.filter( x => x.contains("mkdir")).exists(x => !x.contains(" -p")))
assert(!lines.exists( x => x.contains("hdfs") && !x.contains("/usr/local/hadoop/bin") ),"Forgot /usr/local/hadoop/bin")
assert(!lines.exists( x => x.contains("hdfs ") && !x.contains("/usr/local/hadoop/bin") ),"Forgot /usr/local/hadoop/bin")
}

override def utestAfterAll(): Unit = {
Expand Down

0 comments on commit 937d456

Please sign in to comment.