Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
701c7fb37d | ||
|
|
c6fd373251 | ||
|
|
1140ed4c5d | ||
|
|
ae42558263 | ||
|
|
ab236445a8 | ||
|
|
366275c306 | ||
|
|
148ad6a236 | ||
|
|
92f6a3eb87 | ||
|
|
69e4f48c6a |
3 changed files with 5 additions and 8 deletions
|
|
@ -1,10 +1,7 @@
|
||||||
FROM registry.fedoraproject.org/fedora:25
|
FROM registry.fedoraproject.org/fedora:25
|
||||||
LABEL MAINTAINER SoftwareCollections.org <sclorg@redhat.com>
|
LABEL MAINTAINER SoftwareCollections.org <sclorg@redhat.com>
|
||||||
|
|
||||||
ENV NAME=mongodb \
|
ENV NAME=mongodb VERSION=0 RELEASE=8 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" \
|
||||||
|
|
@ -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