@@ -20,19 +20,19 @@ SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd) | |||||
NO_BUILD="${1}" | NO_BUILD="${1}" | ||||
BASE=$(cd $(dirname $0)/.. && pwd) | |||||
cd ${BASE} | |||||
BASE="$(cd "$(dirname "${0}")"/.. && pwd)" | |||||
cd "${BASE}" || die "Error changing to ${BASE} directory" | |||||
if [[ -z "${NO_BUILD}" || "${NO_BUILD}" != "no-build" ]] ; then | if [[ -z "${NO_BUILD}" || "${NO_BUILD}" != "no-build" ]] ; then | ||||
echo "Building bubble jar..." | echo "Building bubble jar..." | ||||
${BASE}/bin/git_update_bubble.sh || die "Error building bubble jar file" | |||||
"${BASE}"/bin/git_update_bubble.sh || die "Error building bubble jar file" | |||||
else | else | ||||
echo "Not building bubble jar: no-build was set" | echo "Not building bubble jar: no-build was set" | ||||
fi | fi | ||||
DIST_BASE="${BASE}/dist" | DIST_BASE="${BASE}/dist" | ||||
rm -rf "${DIST_BASE}" || die "Error removing "${DIST_BASE}" directory" | |||||
mkdir -p "${DIST_BASE}" || die "Error creating "${DIST_BASE}" directory" | |||||
rm -rf "${DIST_BASE}" || die "Error removing ${DIST_BASE} directory" | |||||
mkdir -p "${DIST_BASE}" || die "Error creating ${DIST_BASE} directory" | |||||
JAR_DIR="${BASE}/bubble-server/target" | JAR_DIR="${BASE}/bubble-server/target" | ||||
FULL_JAR="$(find "${JAR_DIR}" -type f -name "bubble-server-*-full.jar" | head -1)" | FULL_JAR="$(find "${JAR_DIR}" -type f -name "bubble-server-*-full.jar" | head -1)" | ||||
@@ -80,9 +80,9 @@ if [[ -n "${BUBBLE_DIST_HOME}" ]] ; then | |||||
if [[ ! -d "${BUBBLE_DIST_DIR}" ]] ; then | if [[ ! -d "${BUBBLE_DIST_DIR}" ]] ; then | ||||
mkdir -p ${BUBBLE_DIST_DIR} | mkdir -p ${BUBBLE_DIST_DIR} | ||||
fi | fi | ||||
cp "${ZIP}" "${BUBBLE_DIST}" && cat "${ZIP}" | sha256sum | cut -f1 -d' ' | tr -d '\n' > "${BUBBLE_DIST}.sha256" || die "Error copying bubble zip distribution ${ZIP} to dist or creating shasum" | |||||
cp "${JAR}" "${BUBBLE_JAR_DIST}" && cat "${JAR}" | sha256sum | cut -f1 -d' ' | tr -d '\n' > "${BUBBLE_JAR_DIST}.sha256" || die "Error copying bubble jar ${JAR} to dist or creating shasum" | |||||
cp "${FULL_JAR}" "${BUBBLE_FULL_JAR_DIST}" && cat "${FULL_JAR}" | sha256sum | cut -f1 -d' ' | tr -d '\n' > "${BUBBLE_FULL_JAR_DIST}.sha256" || die "Error copying full bubble jar ${FULL_JAR} to dist or creating shasum" | |||||
cp "${ZIP}" "${BUBBLE_DIST}" && cat "${ZIP}" | shasum -a 256 | cut -f1 -d' ' | tr -d '\n' > "${BUBBLE_DIST}.sha256" || die "Error copying bubble zip distribution ${ZIP} to dist or creating shasum" | |||||
cp "${JAR}" "${BUBBLE_JAR_DIST}" && cat "${JAR}" | shasum -a 256 | cut -f1 -d' ' | tr -d '\n' > "${BUBBLE_JAR_DIST}.sha256" || die "Error copying bubble jar ${JAR} to dist or creating shasum" | |||||
cp "${FULL_JAR}" "${BUBBLE_FULL_JAR_DIST}" && cat "${FULL_JAR}" | shasum -a 256 | cut -f1 -d' ' | tr -d '\n' > "${BUBBLE_FULL_JAR_DIST}.sha256" || die "Error copying full bubble jar ${FULL_JAR} to dist or creating shasum" | |||||
if [[ ${IS_DEV} -eq 0 ]] ; then | if [[ ${IS_DEV} -eq 0 ]] ; then | ||||
cd ${BUBBLE_DIST_TOP} && rm -f latest && ln -sf ${BUBBLE_VERSION} latest | cd ${BUBBLE_DIST_TOP} && rm -f latest && ln -sf ${BUBBLE_VERSION} latest | ||||
echo "${BUBBLE_VERSION}" > latest.txt | echo "${BUBBLE_VERSION}" > latest.txt | ||||
@@ -15,7 +15,7 @@ function redis_port() { | |||||
if [[ -z "${BUBBLE_REDIS_PORT}" ]] ; then | if [[ -z "${BUBBLE_REDIS_PORT}" ]] ; then | ||||
# pick port based on hash of workspace name; there is a 1-in-4096 chance of collision | # pick port based on hash of workspace name; there is a 1-in-4096 chance of collision | ||||
# if you get a collision, just define BUBBLE_REDIS_PORT in jenkins to be < 6800 or > 10895 in the job's build config | # if you get a collision, just define BUBBLE_REDIS_PORT in jenkins to be < 6800 or > 10895 in the job's build config | ||||
BUBBLE_REDIS_PORT=$(expr 6800 + $(echo $((16#$(echo -n ${WORKSPACE_NAME} | sha256sum | awk '{print $1}' | tail -c 4))))) | |||||
BUBBLE_REDIS_PORT=$(expr 6800 + $(echo $((16#$(echo -n ${WORKSPACE_NAME} | shasum -a 256 | awk '{print $1}' | tail -c 4))))) | |||||
fi | fi | ||||
echo ${BUBBLE_REDIS_PORT} | echo ${BUBBLE_REDIS_PORT} | ||||
} | } | ||||
@@ -11,12 +11,12 @@ | |||||
<groupId>bubble</groupId> | <groupId>bubble</groupId> | ||||
<artifactId>bubble</artifactId> | <artifactId>bubble</artifactId> | ||||
<!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | <!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | ||||
<version>1.5.9</version> | |||||
<version>1.5.10</version> | |||||
</parent> | </parent> | ||||
<artifactId>bubble-server</artifactId> | <artifactId>bubble-server</artifactId> | ||||
<!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | <!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | ||||
<version>1.5.9</version> | |||||
<version>1.5.10</version> | |||||
<repositories> | <repositories> | ||||
<repository> | <repository> | ||||
@@ -1,3 +1,3 @@ | |||||
# Do not edit this file directly | # Do not edit this file directly | ||||
# Use _set_version to update the Bubble version in all files | # Use _set_version to update the Bubble version in all files | ||||
bubble.version=Adventure 1.5.9 | |||||
bubble.version=Adventure 1.5.10 |
@@ -1 +1 @@ | |||||
Subproject commit 061267a01e8f0cf59ba25b3bd848d2999b119c93 | |||||
Subproject commit 38eaeee454724452f59cf7f11724ec7f67d5884f |
@@ -41,7 +41,7 @@ The important things to install: | |||||
* Redis | * Redis | ||||
* Python 3.8+ | * Python 3.8+ | ||||
* Packer (try `bin/install_packer.sh` first, it might work fine) | * Packer (try `bin/install_packer.sh` first, it might work fine) | ||||
* Required tools: curl, jq, uuid, sha256sum, openssl, ssh, scp, rsync, npm, webpack, zip, unzip | |||||
* Required tools: curl, jq, uuid, shasum, openssl, ssh, scp, rsync, npm, webpack, zip, unzip | |||||
Look at the `first_time_ubuntu.sh` script and ensure you've basically done all that it does, | Look at the `first_time_ubuntu.sh` script and ensure you've basically done all that it does, | ||||
including creating PostgreSQL users/databases. | including creating PostgreSQL users/databases. | ||||
@@ -14,7 +14,7 @@ | |||||
<groupId>bubble</groupId> | <groupId>bubble</groupId> | ||||
<artifactId>bubble</artifactId> | <artifactId>bubble</artifactId> | ||||
<!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | <!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | ||||
<version>1.5.9</version> | |||||
<version>1.5.10</version> | |||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
<licenses> | <licenses> | ||||
@@ -10,7 +10,7 @@ This code is available under the GNU Affero General Public License, version 3: h | |||||
<groupId>bubble</groupId> | <groupId>bubble</groupId> | ||||
<artifactId>utils</artifactId> | <artifactId>utils</artifactId> | ||||
<!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | <!-- @@BUBBLE_VERSION@@ this comment must remain above the version tag so that _set_version can update it --> | ||||
<version>1.5.9</version> | |||||
<version>1.5.10</version> | |||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
<licenses> | <licenses> | ||||