Use python3
This commit is contained in:
parent
e364a943af
commit
0e6196a49f
3 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ EXPOSE 27017
|
|||
ENTRYPOINT ["container-entrypoint"]
|
||||
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 && \
|
||||
rpm -V $INSTALL_PKGS && \
|
||||
dnf clean all
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
"""
|
||||
Script for parsing cgroup information
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ function setup_wiredtiger_cache() {
|
|||
return 0;
|
||||
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}
|
||||
|
||||
info "wiredTiger cacheSizeGB set to ${cache_size}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue