echo"WARN: Recommended minimum RAM available to Docker is $MIN_RAM_SOFT MB, found $RAM_AVAILABLE_IN_DOCKER MB"
fi
#SSE4.2 required by Clickhouse (https://clickhouse.yandex/docs/en/operations/requirements/)
# On KVM, cpuinfo could falsely not report SSE 4.2 support, so skip the check. https://github.com/ClickHouse/ClickHouse/issues/20#issuecomment-226849297
echo"FAIL: The CPU your machine is running on does not support the SSE 4.2 instruction set, which is required for one of the services Sentry uses (Clickhouse). See https://git.io/JvLDt for more info."
exit1
fi
fi
echo"${_endgroup}"
echo"${_group}Creating volumes for persistent storage ..."
echo"Migrated TSDB to Snuba. Old configuration file backed up to $SENTRY_CONFIG_PY.bak"
return
fi
echo"Failed to automatically migrate TSDB. Reverting..."
mv"$SENTRY_CONFIG_PY.bak""$SENTRY_CONFIG_PY"
echo"$SENTRY_CONFIG_PY restored from backup."
fi
echo"WARN: Your Sentry configuration uses a legacy data store for time-series data. Remove the options SENTRY_TSDB and SENTRY_TSDB_OPTIONS from $SENTRY_CONFIG_PY and add:"
echo""
echo"$tsdb_settings"
echo""
echo"For more information please refer to https://github.com/getsentry/onpremise/pull/430"
fi
}
replace_tsdb
echo"${_endgroup}"
echo"${_group}Fetching and updating Docker images ..."
# We tag locally built images with an '-onpremise-local' suffix. docker-compose pull tries to pull these too and
# shows a 404 error on the console which is confusing and unnecessary. To overcome this, we add the stderr>stdout
# redirection below and pass it through grep, ignoring all lines having this '-onpremise-local' suffix.