Skip to content

pnoltes/Dockerfile-that-build-3-small-Docker-Images-of-Apache-Celix-Felix-and-Ace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here you can find a Dockerfile that can create 3 small docker images, one with Apache Celix, one with Openjdk8 and Apache Felix and one with Openjdk8 and Apache Ace.
To use this dockerfile :
First, build the dockerfile by running the following command : docker build -t "name-of-the-docker-image-builder" .
This will create a builder image of the three images.

Then Run the following command : docker run -ti --privileged -v /var/run/docker.sock:/var/run/docker.sock name-of-the-docker-image-builder
This will launch the builder image of the three images and create automatically the small images. The image with Celix is about 33MB, the one with openjdk8 and Felix is about 140MB and the one with Openjdk8 and Ace is about 140MB.

Finally you will have the three docker images on the host, you can check by running the following command : "docker images".

BE CAREFUL : 
	-You need to have the same docker version than there is in the image, in the image I'm using the latest version of docker by running the following command : wget -qO- https://get.docker.com/ | sh
	-For the image with Apache Ace, in this dockerfile I'm building the 3 compact profiles of openjdk8 but I'm using only the compact profiles 2. You can change of compact profile by replacing "j2re-compact2-image" by "j2re-compact1-image" or "j2re-compact3-image" in the Dockerfile. For more information about the compact profiles, see this link : http://openjdk.java.net/jeps/161

If you want more information about the dockerfile, see the comments in the Dockerfile.

If you want to build these images with all the steps separately, you can go to these reposotories : 
https://github.com/florian-gauvin/Dockerfile-that-build-a-small-Docker-Image-with-Openjdk8-and-Apache-Ace-in-it
https://github.com/florian-gauvin/Dockerfile-that-build-a-small-Docker-Image-with-Apache-Celix-in-it/tree/celix-built-outside-of-buildroot
https://github.com/florian-gauvin/Dockerfile-that-build-a-small-Docker-Image-with-Openjdk-and-Apache-Felix-in-it

If you want to build these images faster without carrying about doing all the steps separately, you can go to these reposotories :
https://github.com/florian-gauvin/Small-Dockerfile-Ace
https://github.com/florian-gauvin/Small-Dockerfile-Celix
https://github.com/florian-gauvin/Small-Dockerfile-Felix




About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%