Open MattReimer opened 4 years ago
Exactly the same issue here. It complains if it can't access the S3 bucket, but when it can access the bucket it doesn't use it.
Also it doesn't seem to support using the Instance Profile on ECS, you have to supply an access key and secret.
FROM geonetwork:3.12-postgres
COPY conf/config-spring-geonetwork.xml /usr/local/tomcat/webapps/geonetwork/WEB-INF/config-spring-geonetwork.xml
Note that there is an implementation of JCLOUD that is not fully documented as it is still experimental. JCLOUD supports multiple cloud providers including AWS S3 (https://jclouds.apache.org/reference/providers/#blobstore-providers)
I was able to connect to Azure Blob storage during my testing however since I did not have access to S3 storage I did not test AWS however it should still be possible.
You can review the following for example connecting to Azure Blob storage.
Based on the docs here
and the #4248 It should now be possible to connect GeoNetwork to AWS S3 but I can't seem to do it.
I have a simple Dockerfile like so:
and the
config-spring-geonetwork.xml
specified has the followingAccording to the docs I can set all these values in environment variables:
And I've double-checked that they are being set but it's still creating the local data dir.
I'm not a Java / Tomcat expert so I'm hoping it's something I'm doing wrong.