Comments (6)
Generally speaking it should be a volume, out of the union filesystem. If you run it as a volume then doesn't matter what you put in there in the image.
What can be done is a entrypoint script to copy files from another location in the image into the volume on startup the same way it is done in the jenkins image.
I don't recall if there is some other official image requirement to have it a volume in the image or letting people just mount at runtime, maybe @tianon can chime in
from docker-maven.
Added a script to copy /usr/share/maven/ref/ contents into .m2 dir on startup
The readme explains how to build images with a cached repo
from docker-maven.
awesome thanks :)
from docker-maven.
Sorry for the late response! In general, I agree that data bits should be in a volume, although with a "language" / "runtime support" image like this, it might make more sense to add that to the documentation. It's always a bit of a fine balance given that we can't "undo" a volume. 😞
from docker-maven.
When will the above changes be available in the official images on docker hub?
from docker-maven.
Hi
I have the dockerfile in same location as pom file building an image when I run the image it gives an error that there is no pom file in this directory (/). Do I need to put or copy the pom file or Dockerfile to a different directory
from docker-maven.
Related Issues (20)
- Maven 3.9, unauthorized 401 when reaching MS AZURE repo with PAT HOT 6
- Please update bash in Alpine image to avoid error message HOT 1
- Latest images don't have ssh causing maven-release-plugin to fail HOT 10
- Could not create local repository at /home/user/.m2/repository
- Please add amazoncorretto + al2023 images HOT 2
- How to get 3.9.4 released? HOT 1
- Wrong docer example for eclipse-temurin-17 version? HOT 1
- amazoncorretto-11-debian ignores environment variables with a period HOT 1
- ETA on JDK 21 compatible image
- Corretto 21 + AL2023 HOT 5
- Add Eclipse Temurin 21 HOT 1
- /usr/local/bin/mvn-entrypoint.sh: 50: exec: 1: not found HOT 2
- maven: 3.6.3-openjdk-21 HOT 1
- Add Apache Maven 3.9.6
- Image maven:3.8.8 missing
- Publish image with semeru jdk 21 HOT 1
- Image for maven 3.9.6 + azuluzulu-8 HOT 5
- 3.9.6-eclipse-temurin-21 and docker buildx
- Trouble with ${revision} in Docker builds HOT 1
- $JAVA_HOME is missing on amazoncorretto-8-debian HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-maven.