Automated OpenJDK+Maven(2.2.1) Image built from alpine-openjdk on a Raspberry Pi 3/Intel NUC.
415
This image serves as the base container for applications/services that require OpenJDK and Apache Maven.
Built from my alpine-openjdk image using latest available openjdk
andd currently maven:2.2.1, more versions soon.
Based on Alpine Linux.
The image is tagged respectively for the following architectures,
Pull the image for your architecture it's already available from Docker Hub.
# make pull
docker pull arpanpal010/alpine-maven:x86_64
# make
docker run --rm -it \
--name docker_maven --hostname maven \
-e PGID=100 -e PUID=1000 \
-c 512 -m 1024m \
-v /your/project:/home/abc/project \
-v /etc/hosts:/etc/hosts:ro \
-v /etc/localtime:/etc/localtime:ro \
-e TZ=Asia/Kolkata \
arpanpal010/alpine-maven:x86_64 \
<commands e.g -help>
# make stop
docker stop -t 2 docker_maven
# make rm
# stop first
docker rm -f docker_maven
# make restart
docker restart docker_maven
# make rshell
docker exec -u root -it docker_maven /bin/bash
# make shell
docker exec -it docker_maven /bin/bash
# make logs
docker logs -f docker_maven
If you have the repository access, you can clone and build the image yourself for your own system, and can push after.
Before you clone the repo, you must have Git, GNU make, and Docker setup on the machine.
git clone <repository url>
cd <repository>
You can always skip installing make but you will have to type the whole docker commands then instead of using the sweet make targets.
To locally build the image for your system.
# make build
docker build --rm --force-rm \
-t arpanpal010/alpine-maven:x86_64 \
--no-cache=true --pull .
# make push
docker push arpanpal010/alpine-maven:x86_64
Currently built daily on a RaspberryPi3 (armhf builds) or IntelNUC (x64 builds). Docker hub builds maintained by arpanpal010.
Content type
Image
Digest
Size
58.5 MB
Last updated
almost 9 years ago
docker pull arpanpal010/alpine-maven:x86_64