Creating local mirror of all required packages for ubuntu

14 views
Skip to first unread message

chintan thakar

unread,
May 12, 2015, 2:13:00 AM5/12/15
to vg...@googlegroups.com
Hi Folks,


I am trying to set up local mirror of all required packages for ubuntu with docker container. here is the repo which I am following. https://github.com/ekino/docker-images


Now while creating a docker images with docker file its stuck at some points please find attached screen shot. Its downloading all the packages locally and its of 21 gbs I am having enough speed but still it seems to be in infinite loop. My system is powered on since 48hrs once it was stopped due to Internet was down just for a while and then I re-connected it. It is taking too much time in downloading.

Is there any other way to accomplish this ? How do I can create local mirror inside my docker container and than it will serve to all the other nodes without Internet?


Thank you so much in advance !


Regards,
Chintan Thakar
http://about.me/chintan.thakar

 
Screenshot from 2015-05-12 10:37:47.png

Nirmal Pathak

unread,
May 12, 2015, 2:17:05 AM5/12/15
to VGLUG
On 11 May 2015 at 22:19, chintan thakar <chintant...@gmail.com> wrote:
Hi Folks,


I am trying to set up local mirror of all required packages for ubuntu with docker container. here is the repo which I am following. https://github.com/ekino/docker-images


Now while creating a docker images with docker file its stuck at some points please find attached screen shot. Its downloading all the packages locally and its of 21 gbs I am having enough speed but still it seems to be in infinite loop. My system is powered on since 48hrs once it was stopped due to Internet was down just for a while and then I re-connected it. It is taking too much time in downloading.

Is there any other way to accomplish this ? How do I can create local mirror inside my docker container and than it will serve to all the other nodes without Internet?

Why do you need Docker container to setup a local repository?

You can set that up without container too. Check this out: http://www.unixmen.com/setup-local-repository-ubuntu-14-0413-1013-04-server/
 

Thank you so much in advance !


Regards,
Chintan Thakar
http://about.me/chintan.thakar
 

Have FuN!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let me help my fellow beings; that is all I seek.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

chintan thakar

unread,
May 12, 2015, 11:35:31 AM5/12/15
to vg...@googlegroups.com
Thank you for assisting ! But as per my requirement this should be inside docker container and the procedure that is given in the link you provided is same thing I am doing in my docker file. so if I will go with your links than time consumption will be same I think.

Even I have divided its in part like main,restricted and universe and currently I am just creating docker image for main only. here is the docker file https://github.com/ekino/docker-images/blob/master/apt-mirror/main/Dockerfile

Using command for creating docker image : docker build --rm --tag=ekino/apt-mirror:main .


Output of my terminal :

Sending build context to Docker daemon 4.608 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:14.04
 ---> 07f8e8c5e660
Step 1 : MAINTAINER Matthieu Fronton <fro...@ekino.com>
 ---> Using cache
 ---> e68da7241dd1
Step 2 : ADD mirror.list-trusty-main /etc/apt/mirror.list
 ---> Using cache
 ---> 292937de26ba
Step 3 : ADD nginx.site-available.mirror-local /etc/nginx/sites-available/mirror.local
 ---> Using cache
 ---> 0ee784b76484
Step 4 : RUN apt-get update
 ---> Using cache
 ---> 71b6fd3a56b2
Step 5 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y -o DPkg::Options::=--force-confold install apt-mirror nginx
 ---> Using cache
 ---> 399cc4d6ac25
Step 6 : RUN mkdir -p /var/www/mirror.local
 ---> Using cache
 ---> 5da2959a32e2
Step 7 : RUN mkdir -p /mirrors
 ---> Using cache
 ---> 25d89fb23674
Step 8 : RUN apt-mirror
 ---> Running in a77e1bcaa33c
Downloading 56 index files using 20 threads...
Begin time: Tue May 12 05:29:35 2015
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 12 06:22:00 2015

Processing tranlation indexes: [TTTT]

Downloading 60 translation files using 20 threads...
Begin time: Tue May 12 06:22:00 2015
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 12 06:23:18 2015

Processing indexes: [PPPP]

22.5 GiB will be downloaded into archive.
Downloading 12194 archive files using 20 threads...
Begin time: Tue May 12 06:23:19 2015


Regards,
Chintan Thakar
http://about.me/chintan.thakar




 

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages