Skip to content

florian-gauvin/Dockerfile-that-build-a-small-Docker-Image-with-Openjdk-and-Apache-Felix-in-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here you can find a Dockerfile that can create a small docker image with Openjdk8 Apache Felix. This Dockerfile is useful for this INAETICS project.

To use this dockerfile :
First, build the dockerfile by running the following command : docker build -t "name-of-the-felix-image-builder" .
This will create a builder image of Apache Felix

Then Run the following command : 
docker run -ti --privileged -v /var/run/docker.sock:/var/run/docker.sock name-of-the-celix-image-builder
This will launch the builder image of Apache Felix and create automatically the small image with Openjdk8 
and Apache Felix in it.

Finally you will have a docker image named inaetics/felix-agent on your 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
	-In this dockerfile I'm building the complete java runtime environment otherwise the image can not be integrated to the INAETICS project.
	-The configuration file of Buildroot is dependent of the version of buildroot your using. 
If you want to change Buildroot version you have to create a new configuration file with the new Buildroot. 
Put it into a git reposirtory, and change the git repository in the Dockerfile. 
	
If you want more information about the dockerfile, see the comments in the Dockerfile.

If you want to have the same image but faster, wihout all the steps, and a Dockerfile which size is lesser go here : 
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