Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Added persistent storage for MongoDB on Podman (#210)
Browse files Browse the repository at this point in the history
* Added persistent storage

* Updated version in Makefile
  • Loading branch information
kiancross authored Feb 12, 2021
1 parent 5f4ed08 commit 5766c02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions configs/kube-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ spec:
volumeMounts:
- mountPath: /docker-entrypoint-initdb.d/mongo-init.js
name: mongo-init
- mountPath: /data/db
name: mongo-data
env:
- name: MONGO_INITDB_ROOT_USERNAME
value: ${MONGO_ADMIN_USERNAME}
Expand Down Expand Up @@ -199,3 +201,7 @@ spec:
hostpath:
path: ./configs/mongo-init.js
type: File

- name: mongo-data
persistentVolumeClaim:
claimName: unifed-mongo-data
4 changes: 2 additions & 2 deletions scripts/podman.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ POD_NAME:=unifed

PODMAN_COMMAND:=cd .. && podman

ifneq ($(shell podman --version | awk '{print $$3}'),2.1.1)
ifneq ($(shell podman --version | awk '{print $$3}'),3.0.0-rc3)
define n


endef
$(error $n Requires Podman version 2.1.1. See $n https://github.com/kiancross/unifed/wiki/Installation#step-3---setup-a-container-service $n)
$(error $n Requires Podman version 3.0.0-rc3. See $n https://github.com/kiancross/unifed/wiki/Installation#step-3---setup-a-container-service $n)
endif

.PHONY: start
Expand Down

0 comments on commit 5766c02

Please sign in to comment.