sedici / docker-dspace Goto Github PK
View Code? Open in Web Editor NEWDocker images for dspace (experimental)
Docker images for dspace (experimental)
Por default (https://github.com/docker-library/tomcat/blob/master/8.0/jre8/Dockerfile) tomcat está ejecutando como root, lo cual es desaconsejado por tomcat (https://tomcat.apache.org/tomcat-8.0-doc/security-howto.html#Non-Tomcat_settings)
En el https://github.com/iammyr/docs/blob/3e99a347971cfa337a1a175bf24ad792342b86be/tomcat/content.md#hardening-tomcat-security se muestra cómo asegurar la instalación de tomcat de acuerdo a las recomendaciones de tomcat.
Mas info:
Encontrar una manera de cambiar los contenidos del direcotorio source sin tener que hacer un sudo <editor>
o tener permisos de root sobre el contenido.
@PabloDeAlbu estuvo viendo distintas alternativas de alternativas para solucionar ésto en el artículo
https://medium.com/redbubble/running-a-docker-container-as-a-non-root-user-7d2e00f8ee15.
Cuando data y m2 se montan como path-bind se mezclan los permiso de root que ejecuta dentro de docker con el 1000 que ejecuta desde afuera.
Unificar o enmascarar permisos en modo dev para evitar que esto pase.
En el caso de data fuerza a usar sudo desde afuera.
En el caso de m2 impide que se use el mismo repo desde otro usuario ya que mvn no puede crear los archivos que precisa. Ej
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project dspace-services: Unable to generate classpath: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information for org.apache.maven.surefire:surefire-junit4:jar:2.19.1: Failed to retrieve POM for org.apache.maven.surefire:surefire-junit4:jar:2.19.1: Could not transfer artifact org.apache.maven.surefire:surefire-junit4:pom:2.19.1 from/to libs-release /home/ariel/.m2/repository/org/apache/maven/surefire/surefire-junit4/2.19.1/surefire-junit4-2.19.1.pom.part.lock (No existe el archivo o el directorio)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.