airavata-courses / VignyaanDwaarNirman

Micro-service Architecture based Radar Data Visualization Web Application. Tools and Technologies: Jetstream, Kubernetes, Docker, RabbitMQ, Jenkins, RESTful, JAVA, Node JS, MongoDB
http://149.165.168.66:30012
0 stars 2 forks source link

size of docker images #19

Open devanshjain14 opened 4 years ago

devanshjain14 commented 4 years ago

The size of the docker images built is crazy large. For each microservice, the size is ~1.5Gb. This is probably due to layering inside the docker images built. I am trying to remove the layers. Haven't found any useful yet. Do post anything you feel might be useful.

devanshjain14 commented 4 years ago
REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE
user_management          latest              0a3fd0d89d97        16 hours ago        1.27GB
<none>                   <none>              fac8eee9a5e6        16 hours ago        1.27GB
data_retrival            latest              ed29ef29a0ed        16 hours ago        3.28GB
rabbitmq                 latest              4c8cb17c3ab5        4 days ago          151MB
mongo                    latest              bcef5fd2979d        4 days ago          386MB
node                     latest              448d0873ea84        6 days ago          942MB
python                   latest              efdecc2e377a        2 weeks ago         933MB
nginx                    latest              2073e0bcb60e        3 weeks ago         127MB
openjdk                  latest              6adc576f6a58        4 weeks ago         491MB
xinu_image               latest              84cb6401cfb4        5 weeks ago         3.09GB
debian                   latest              b5d2d9b1597b        2 months ago        114MB
continuumio/miniconda3   latest              406f2b43ea59        4 months ago        430MB
continuumio/miniconda    latest              b8ea69b5c41c        4 months ago        410MB
hello-world              latest              fce289e99eb9        14 months ago       1.84kB
ViralPrajapati commented 4 years ago

Try using alpine version, I tried node:alpine for session management and got image size reduced from 982 MB to 158 MB. But I am still struggling to reduce the DataRetrival image because it uses anaconda base image Capture

devanshjain14 commented 4 years ago

I am building the user_management image, which is still 445 Mb using the alpine image of node.

REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE
user_management          latest              e1f11d220724        2 minutes ago       445MB