Clever / ARCHIVED-oplog-replay

Replay mongodb oplogs at variable speed
Apache License 2.0
3 stars 1 forks source link

Dockerize oplog-replay as worker #15

Closed kvigen closed 10 years ago

kvigen commented 10 years ago

This change adds a dockerfile to run oplog-replay as a worker. It does this by using the baseworker-go/taskwrapper code. This listens to Gearman for requests to process the job.

This change also publishes the docker image to docker hub

kvigen commented 10 years ago

@d-sparks another

d-sparks commented 10 years ago

I can't build the Dockerfile, it fails on Step 6 : RUN /etc/go/bin/godeb install 1.2.1 ---> Running in c81a2c386109 error: Get https://code.google.com/p/go/downloads/list?can=1&q=linux: x509: certificate has expired or is not yet valid 2014/09/05 14:56:14 The command [/bin/sh -c /etc/go/bin/godeb install 1.2.1] returned a non-zero code: 1

Have you tested this by giving it jobs? If so, disregard this: The one thing I want to test is running 'docker run oplog-worker /usr/local/bin/oplogdump'. The reason is that taskwrapper will launch fine even if the cmd that it points to does not exist, and it isn't until it gets a job that it attempts to run that cmd (I think?).

d-sparks commented 10 years ago

lgtm