-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1595 from RocketChat/even-faster-deploy
simplifying deploy scripts
- Loading branch information
Showing
11 changed files
with
85 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
# TRAVIS_TAG='v0.7' | ||
# TAG="v0.7" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
cd ../../build | ||
FILENAME=rocket.chat-"$TAG.$TRAVIS_BUILD_NUMBER.$TRAVIS_BRANCH".tgz | ||
mv Rocket.Chat.tar.gz "$FILENAME" | ||
ln -s "$FILENAME" "$TRAVIS_BRANCH.rocket.chat-v.latest.tgz" | ||
#!/bin/bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
#cd $TRAVIS_BUILD_DIR | ||
#export TAG=$(git describe --abbrev=0 --tags) | ||
ln -s /tmp/build/Rocket.Chat.tar.gz "/tmp/deploy/rocket.chat-$TRAVIS_BRANCH.tgz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
export SANDSTORM_VERSION=$(curl -f "https://install.sandstorm.io/dev?from=0&type=install") | ||
export PATH=$PATH:/tmp/sandstorm-$SANDSTORM_VERSION/bin | ||
|
||
cd /tmp | ||
curl https://dl.sandstorm.io/sandstorm-$SANDSTORM_VERSION.tar.xz | tar -xJf - | ||
|
||
sudo mkdir -p /opt | ||
sudo chown -R travis /opt | ||
cd /opt | ||
curl https://dl.sandstorm.io/meteor-spk-0.1.8.tar.xz | tar -xJf - | ||
ln -s meteor-spk-0.1.8 meteor-spk | ||
cp -a /bin/bash /opt/meteor-spk/meteor-spk.deps/bin/ | ||
cp -a /lib/x86_64-linux-gnu/libncurses.so.* /opt/meteor-spk/meteor-spk.deps/lib/x86_64-linux-gnu/ | ||
cp -a /lib/x86_64-linux-gnu/libtinfo.so.* /opt/meteor-spk/meteor-spk.deps/lib/x86_64-linux-gnu/ | ||
ln -s $TRAVIS_BUILD_DIR /opt/app | ||
|
||
cd /tmp | ||
spk init -p3000 -- nothing | ||
export SANDSTORM_ID="$(grep '\sid =' sandstorm-pkgdef.capnp)" | ||
|
||
cd $TRAVIS_BUILD_DIR | ||
export METEOR_WAREHOUSE_DIR="${METEOR_WAREHOUSE_DIR:-$HOME/.meteor}" | ||
export METEOR_DEV_BUNDLE=$(dirname $(readlink -f "$METEOR_WAREHOUSE_DIR/meteor"))/dev_bundle | ||
|
||
sudo mkdir -p /home/vagrant | ||
sudo chown -R travis /home/vagrant | ||
tar -zxf /tmp/build/Rocket.Chat.tar.gz --directory /home/vagrant/ | ||
cd /home/vagrant/bundle/programs/server && "$METEOR_DEV_BUNDLE/bin/npm" install | ||
cd $TRAVIS_BUILD_DIR/.sandstorm | ||
sed -i "s/\sid = .*/$SANDSTORM_ID/" sandstorm-pkgdef.capnp | ||
mkdir -p /home/vagrant/bundle/opt/app/.sandstorm/ | ||
cp /opt/app/.sandstorm/launcher.sh /home/vagrant/bundle/opt/app/.sandstorm/ | ||
sed -i "s/\spgp/#pgp/g" sandstorm-pkgdef.capnp | ||
spk pack /tmp/deploy/rocket.chat-$TRAVIS_BRANCH.spk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"version": "0.7.0" | ||
"version": "0.8.0" | ||
} |