Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidecar fix #131

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:alpine
MAINTAINER Charles Vallance <[email protected]>

WORKDIR /opt/cvallance/mongo-k8s-sidecar
WORKDIR /

COPY package.json /opt/cvallance/mongo-k8s-sidecar/package.json
COPY package.json package.json

RUN npm install

COPY ./src /opt/cvallance/mongo-k8s-sidecar/src
COPY .foreverignore /opt/cvallance/.foreverignore
COPY ./src /src
COPY .foreverignore .foreverignore

CMD ["npm", "start"]
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
IMG_URL ?= shantanubansal/mongo-k8s-sidecar
IMG_TAG ?= latest
MONGOK8SSIDECAR_IMG ?= ${IMG_URL}:${IMG_TAG}


MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CURRENT_DIR := $(dir $(MAKEFILE_PATH))

docker:
@echo "Generating the docker build for mongo-k8s-sidecar server"
@docker build . -t ${MONGOK8SSIDECAR_IMG} -f Dockerfile --no-cache
@echo "Generated the docker image for mongo-k8s-sidecar server"
docker push ${MONGOK8SSIDECAR_IMG}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ resilient to the various conditions both mongo and kubernetes can find themselve
## How to use it

The docker image is hosted on docker hub and can be found here:
https://hub.docker.com/r/cvallance/mongo-k8s-sidecar/
https://hub.docker.com/r/shantanuabansal/mongo-k8s-sidecar/

An example kubernetes replication controller can be found in the examples directory on github here:
https://github.com/cvallance/mongo-k8s-sidecar
https://github.com/shantanuabansal/mongo-k8s-sidecar

There you will also find some helper scripts to test out creating the replica set and resizing it.

Expand Down Expand Up @@ -131,7 +131,7 @@ Volume & Volume Mount
- name: mongo-ssl
mountPath: /data/ssl
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar:latest
image: shantanuabansal/mongo-k8s-sidecar:latest
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=prod"
Expand Down
2 changes: 1 addition & 1 deletion example/StatefulSet/mongo-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
- name: mongo-persistent-storage
mountPath: /data/db
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar
image: shantanuabansal/mongo-k8s-sidecar
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=test"
Expand Down
2 changes: 1 addition & 1 deletion example/emptydir_pod_examples/mongo-rc-emptydir-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- name: mongo-persistent-storage
mountPath: /data/db
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar
image: shantanuabansal/mongo-k8s-sidecar
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=test"
Expand Down
2 changes: 1 addition & 1 deletion example/emptydir_pod_examples/mongo-rc-emptydir-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- name: mongo-persistent-storage
mountPath: /data/db
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar
image: shantanuabansal/mongo-k8s-sidecar
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=test"
Expand Down
2 changes: 1 addition & 1 deletion example/emptydir_pod_examples/mongo-rc-emptydir-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- name: mongo-persistent-storage
mountPath: /data/db
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar
image: shantanuabansal/mongo-k8s-sidecar
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=test"
Expand Down
2 changes: 1 addition & 1 deletion example/emptydir_pod_examples/mongo-rc-emptydir-4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: mongo-persistent-storage
mountPath: /data/db
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar
image: shantanuabansal/mongo-k8s-sidecar
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=test"
Expand Down
2 changes: 1 addition & 1 deletion example/mongo-controller-flocker-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- name: mongo-persistent-storage
mountPath: /data/db
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar
image: shantanuabansal/mongo-k8s-sidecar
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=test"
Expand Down
2 changes: 1 addition & 1 deletion example/mongo-controller-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: mongo-persistent-storage
mountPath: /data/db
- name: mongo-sidecar
image: cvallance/mongo-k8s-sidecar
image: shantanuabansal/mongo-k8s-sidecar
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "role=mongo,environment=test"
Expand Down
Loading