Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79c95b7a4e | ||
| eb5f1a7c92 | |||
| 1e9d64c43c | |||
| f7e4d6c5e1 | |||
| b4d2bf8a71 | |||
|
|
0e6196a49f | ||
|
|
e364a943af |
3 changed files with 8 additions and 11 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -1,12 +1,9 @@
|
||||||
FROM registry.fedoraproject.org/fedora:25
|
FROM registry.fedoraproject.org/fedora:26
|
||||||
LABEL MAINTAINER SoftwareCollections.org <sclorg@redhat.com>
|
LABEL MAINTAINER SoftwareCollections.org <sclorg@redhat.com>
|
||||||
|
|
||||||
ENV NAME=mongodb \
|
ENV NAME=mongodb VERSION=0 RELEASE=6 ARCH=x86_64
|
||||||
VERSION=0 \
|
|
||||||
RELEASE=1 \
|
|
||||||
ARCH=x86_64
|
|
||||||
|
|
||||||
LABEL com.redhat.component = "$NAME" \
|
LABEL com.redhat.component="$NAME" \
|
||||||
name="$FGC/$NAME" \
|
name="$FGC/$NAME" \
|
||||||
version="$VERSION" \
|
version="$VERSION" \
|
||||||
release="$RELEASE.$DISTTAG" \
|
release="$RELEASE.$DISTTAG" \
|
||||||
|
|
@ -15,11 +12,11 @@ LABEL com.redhat.component = "$NAME" \
|
||||||
help="help.1"
|
help="help.1"
|
||||||
|
|
||||||
LABEL io.k8s.description="MongoDB is a scalable, high-performance, open source NoSQL database." \
|
LABEL io.k8s.description="MongoDB is a scalable, high-performance, open source NoSQL database." \
|
||||||
io.k8s.display-name="MongoDB 3.2" \
|
io.k8s.display-name="MongoDB 3.4" \
|
||||||
io.openshift.expose-services="27017:mongodb" \
|
io.openshift.expose-services="27017:mongodb" \
|
||||||
io.openshift.tags="database,mongodb"
|
io.openshift.tags="database,mongodb"
|
||||||
|
|
||||||
ENV MONGODB_VERSION=3.2 \
|
ENV MONGODB_VERSION=3.4 \
|
||||||
# Set paths to avoid hard-coding them in scripts.
|
# Set paths to avoid hard-coding them in scripts.
|
||||||
HOME=/var/lib/mongodb \
|
HOME=/var/lib/mongodb \
|
||||||
CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/mongodb
|
CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/mongodb
|
||||||
|
|
@ -29,7 +26,7 @@ EXPOSE 27017
|
||||||
ENTRYPOINT ["container-entrypoint"]
|
ENTRYPOINT ["container-entrypoint"]
|
||||||
CMD ["run-mongod"]
|
CMD ["run-mongod"]
|
||||||
|
|
||||||
RUN INSTALL_PKGS="bind-utils gettext iproute rsync tar findutils python mongodb mongodb-server mongo-tools" && \
|
RUN INSTALL_PKGS="bind-utils gettext iproute rsync tar findutils python3 mongodb mongodb-server mongo-tools" && \
|
||||||
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
|
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
|
||||||
rpm -V $INSTALL_PKGS && \
|
rpm -V $INSTALL_PKGS && \
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Script for parsing cgroup information
|
Script for parsing cgroup information
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ function setup_wiredtiger_cache() {
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cache_size=$(python -c "min=1; limit=int(($MEMORY_LIMIT_IN_BYTES / pow(2,30) - 1) * 0.6); print( min if limit < min else limit)")
|
cache_size=$(python3 -c "min=1; limit=int(($MEMORY_LIMIT_IN_BYTES / pow(2,30) - 1) * 0.6); print( min if limit < min else limit)")
|
||||||
echo "storage.wiredTiger.engineConfig.cacheSizeGB: ${cache_size}" >> ${config_file}
|
echo "storage.wiredTiger.engineConfig.cacheSizeGB: ${cache_size}" >> ${config_file}
|
||||||
|
|
||||||
info "wiredTiger cacheSizeGB set to ${cache_size}"
|
info "wiredTiger cacheSizeGB set to ${cache_size}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue