forked from maleck13/mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luigi Zuccarelli
authored and
Colum Foskin
committed
Aug 10, 2017
1 parent
c32f89b
commit 4e5634d
Showing
23 changed files
with
672 additions
and
1,825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM centos:centos7 | ||
|
||
LABEL io.k8s.description="MongoDB is a scalable, high-performance, open source NoSQL database." \ | ||
io.k8s.display-name="MongoDB 2.4" \ | ||
io.openshift.expose-services="27017:mongodb" \ | ||
io.openshift.tags="database,mongodb,mongodb24" | ||
|
||
ENV MONGODB_VERSION=2.4 \ | ||
# Set paths to avoid hard-coding them in scripts. | ||
HOME=/var/lib/mongodb \ | ||
CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/mongodb \ | ||
# Incantations to enable Software Collections on `bash` and `sh -i`. | ||
ENABLED_COLLECTIONS=mongodb24 \ | ||
BASH_ENV="\${CONTAINER_SCRIPTS_PATH}/scl_enable" \ | ||
ENV="\${CONTAINER_SCRIPTS_PATH}/scl_enable" \ | ||
PROMPT_COMMAND=". \${CONTAINER_SCRIPTS_PATH}/scl_enable" | ||
|
||
EXPOSE 27017 | ||
|
||
|
||
ENTRYPOINT ["container-entrypoint"] | ||
CMD ["run-mongod"] | ||
|
||
RUN yum install -y centos-release-scl && \ | ||
INSTALL_PKGS="bind-utils gettext iproute rsync tar v8314 mongodb24-mongodb mongodb24" && \ | ||
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \ | ||
rpm -V $INSTALL_PKGS && \ | ||
yum clean all && \ | ||
mkdir -p /var/lib/mongodb/data && chown -R mongodb.0 /var/lib/mongodb/ && \ | ||
# Loosen permission bits to avoid problems running container with arbitrary UID | ||
chmod -R a+rwx /opt/rh/mongodb24/root/var/lib/mongodb && \ | ||
chmod -R g+rwx /var/lib/mongodb | ||
|
||
VOLUME ["/var/lib/mongodb/data"] | ||
|
||
ADD root / | ||
|
||
# Container setup | ||
RUN touch /etc/mongod.conf && chown mongodb:0 /etc/mongod.conf && /usr/libexec/fix-permissions /etc/mongod.conf | ||
|
||
USER 184 | ||
LABEL io.openshift.builder-version="321f0e8" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 0 additions & 76 deletions
76
3.2/root/usr/share/container-scripts/mongodb/initiate_replica.sh
This file was deleted.
Oops, something went wrong.
Empty file modified
0
3.2/root/usr/share/container-scripts/mongodb/mongodb.conf.template
100644 → 100755
Empty file.
23 changes: 0 additions & 23 deletions
23
3.2/root/usr/share/container-scripts/mongodb/replica_supervisor.sh
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file modified
0
3.2/root/usr/share/container-scripts/mongodb/test-functions.sh
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
# Variables are documented in hack/build.sh. | ||
BASE_IMAGE_NAME = mongodb | ||
VERSIONS = 2.6 3.0-upg 3.2 | ||
OPENSHIFT_NAMESPACES = 2.4 | ||
VERSIONS = 3.2 | ||
|
||
# RHMAP adding all versions here to avoid images getting tagged with anything | ||
# other than rhmap/ in hack/build.sh | ||
OPENSHIFT_NAMESPACES = 3.2 | ||
|
||
# HACK: Ensure that 'git pull' for old clones doesn't cause confusion. | ||
# New clones should use '--recursive'. | ||
.PHONY: $(shell test -f common/common.mk || echo >&2 'Please do "git submodule update --init" first.') | ||
|
||
|
||
# Include common Makefile code. | ||
include common/common.mk |
Oops, something went wrong.