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

Added persistent storage for MongoDB on Podman #210

Merged
merged 4 commits into from
Feb 12, 2021
Merged
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
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