From 9b82f70aad03f60d06cc110e9af337ceac62f3a5 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 17 Jan 2018 18:25:47 +0200 Subject: [PATCH] Update notes --- content/post/2018-01.md | 20 +++++++++++++++++++- public/2018-01/index.html | 28 ++++++++++++++++++++++++---- public/sitemap.xml | 10 +++++----- 3 files changed, 48 insertions(+), 10 deletions(-) diff --git a/content/post/2018-01.md b/content/post/2018-01.md index 0f6fd5634..e9a232148 100644 --- a/content/post/2018-01.md +++ b/content/post/2018-01.md @@ -825,8 +825,26 @@ $ dspace import -a -e aorth@mjanja.ch -s /tmp/2018-01-16\ LIVES/SimpleArchiveFor ``` $ docker pull docker.bintray.io/jfrog/artifactory-oss:latest $ docker volume create --name artifactory5_data -$ docker run --name artifactory -d -v artifactory5_data:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest +$ docker network create dspace-build +$ docker run --network dspace-build --name artifactory -d -v artifactory5_data:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest ``` - Then configure the local maven to use it in settings.xml with the settings from "Set Me Up": https://www.jfrog.com/confluence/display/RTF/Using+Artifactory - This could be a game changer for testing and running the Docker DSpace image +- Wow, I even managed to add the Atmire repository as a remote and map it into the `libs-release` virtual repository, then tell maven to use it for `atmire.com-releases` in settings.xml! +- Hmm, some maven dependencies for the SWORDv2 web application in DSpace 5.5 are broken: + +``` +[ERROR] Failed to execute goal on project dspace-swordv2: Could not resolve dependencies for project org.dspace:dspace-swordv2:war:5.5: Failed to collect dependencies at org.swordapp:sword2-server:jar:classes:1.0 -> org.apache.abdera:abdera-client:jar:1.1.1 -> org.apache.abdera:abdera-core:jar:1.1.1 -> org.apache.abdera:abdera-i18n:jar:1.1.1 -> org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1: Failed to read artifact descriptor for org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1: Could not find artifact org.apache.geronimo.specs:specs:pom:1.1 in central (http://localhost:8081/artifactory/libs-release) -> [Help 1] +``` + +- I never noticed because I build with that web application disabled: + +``` +$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=localhost -P \!dspace-sword,\!dspace-swordv2 clean package +``` + +- UptimeRobot said CGSpace went down for a few minutes +- I didn't do anything but it came back up on its own +- I don't see anything unusual in the XMLUI or REST/OAI logs +- Now Linode alert says the CPU load is high, *sigh* diff --git a/public/2018-01/index.html b/public/2018-01/index.html index 162db4cfe..e63a969cf 100644 --- a/public/2018-01/index.html +++ b/public/2018-01/index.html @@ -92,7 +92,7 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv - + @@ -194,9 +194,9 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv "@type": "BlogPosting", "headline": "January, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-01/", - "wordCount": "4439", + "wordCount": "4600", "datePublished": "2018-01-02T08:35:54-08:00", - "dateModified": "2018-01-17T10:56:44+02:00", + "dateModified": "2018-01-17T14:05:55+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -1168,12 +1168,32 @@ Exception in thread "http-bio-127.0.0.1-8081-exec-627" java.lang.OutOf
$ docker pull docker.bintray.io/jfrog/artifactory-oss:latest
 $ docker volume create --name artifactory5_data
-$ docker run --name artifactory -d -v artifactory5_data:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest
+$ docker network create dspace-build
+$ docker run --network dspace-build --name artifactory -d -v artifactory5_data:/var/opt/jfrog/artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest
 
+ +
[ERROR] Failed to execute goal on project dspace-swordv2: Could not resolve dependencies for project org.dspace:dspace-swordv2:war:5.5: Failed to collect dependencies at org.swordapp:sword2-server:jar:classes:1.0 -> org.apache.abdera:abdera-client:jar:1.1.1 -> org.apache.abdera:abdera-core:jar:1.1.1 -> org.apache.abdera:abdera-i18n:jar:1.1.1 -> org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1: Failed to read artifact descriptor for org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1: Could not find artifact org.apache.geronimo.specs:specs:pom:1.1 in central (http://localhost:8081/artifactory/libs-release) -> [Help 1]
+
+ + + +
$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=localhost -P \!dspace-sword,\!dspace-swordv2 clean package
+
+ + diff --git a/public/sitemap.xml b/public/sitemap.xml index 3888a5d1a..610c2769f 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-01/ - 2018-01-17T10:56:44+02:00 + 2018-01-17T14:05:55+02:00 @@ -144,7 +144,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-01-17T10:56:44+02:00 + 2018-01-17T14:05:55+02:00 0 @@ -155,7 +155,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-01-17T10:56:44+02:00 + 2018-01-17T14:05:55+02:00 0 @@ -167,13 +167,13 @@ https://alanorth.github.io/cgspace-notes/post/ - 2018-01-17T10:56:44+02:00 + 2018-01-17T14:05:55+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-01-17T10:56:44+02:00 + 2018-01-17T14:05:55+02:00 0