Skip to content

Commit

Permalink
docker/entrypoint.sh: Set $CORES based on how many processors it fi…
Browse files Browse the repository at this point in the history
…nds unless it is already set.
  • Loading branch information
jakirkham committed Jan 12, 2016
1 parent e3620c0 commit e966d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e
#ulimit -s unlimited

# Get system specs
export CORES=$(grep -c '^processor' /proc/cpuinfo)
export CORES=$([[ -z "${CORES+x}" ]] && echo $(grep -c '^processor' /proc/cpuinfo) || echo "${CORES}")
export HOSTNAME=$(hostname)
export USER=$(whoami)

Expand Down

0 comments on commit e966d85

Please sign in to comment.