google-code-export / camlistore

Automatically exported from code.google.com/p/camlistore
Apache License 2.0
0 stars 0 forks source link

Fix mongodb tests docker image #518

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The mongodb docker image used in tests in no longer available from the docker 
registry: https://index.docker.io/u/robinvdvleuten/mongo/ returns a 404.

We need to find one that provide a --nojournal options or build a new one.

Original issue reported on code.google.com by antonin....@gmail.com on 24 Sep 2014 at 8:40

GoogleCodeExporter commented 9 years ago
ugh, thanks. 

Let me know if you're interested in making such an image. Otherwise I'll get to 
it.

Then we'll keep it hosted within the camlistore github projects or something.

Original comment by mathieu....@gmail.com on 24 Sep 2014 at 1:35

GoogleCodeExporter commented 9 years ago
I'll try to build one, but if you find it urgent, I might not be able to 
deliver.

Original comment by antonin....@gmail.com on 24 Sep 2014 at 4:42

GoogleCodeExporter commented 9 years ago
We don't have the Dockerfile of the old one?

Original comment by bradfitz on 24 Sep 2014 at 4:46

GoogleCodeExporter commented 9 years ago
I did not explicitly save it anywhere, no. I should still have the image saved 
on my disk from the previous test runs though, if that helps?

Original comment by mathieu....@gmail.com on 24 Sep 2014 at 4:50

GoogleCodeExporter commented 9 years ago
https://github.com/RobinvdVleuten/docker-mongo/blob/master/Dockerfile

FROM ubuntu:latest

# Add 10gen official apt source to the sources list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 
10gen' | tee /etc/apt/sources.list.d/10gen.list

# Hack for initctl not being available in Ubuntu
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl

# Install MongoDB
RUN apt-get update
RUN apt-get install mongodb-10gen

# Create the MongoDB data directory
RUN mkdir -p /data/db

EXPOSE 27017
ENTRYPOINT ["usr/bin/mongod"]

Original comment by bradfitz on 24 Sep 2014 at 4:59

GoogleCodeExporter commented 9 years ago

Original comment by bradfitz on 21 Oct 2014 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by bradfitz on 21 Oct 2014 at 3:09

GoogleCodeExporter commented 9 years ago
https://camlistore-review.googlesource.com/3959

I suppose we could eventually host the image at 
https://hub.docker.com/u/camlistore/mongo and the Dockerfile on camlistore's 
github ?

Original comment by mathieu....@gmail.com on 28 Oct 2014 at 12:30

GoogleCodeExporter commented 9 years ago
5a05d25fb290fea389d8efe5b0a0f7c59890df7a

Original comment by mathieu....@gmail.com on 29 Oct 2014 at 3:37

GoogleCodeExporter commented 9 years ago
This issue has moved to https://camlistore.org/issue/518

Original comment by bradfitz on 14 Dec 2014 at 11:37