forked from mrsimpson/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 1
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 RocketChat#541 from assistify/release/0.68.5-0.9.2
Release 0.68.5-0.9.2
- Loading branch information
Showing
49 changed files
with
1,279 additions
and
291 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,55 @@ | ||
FROM node:8 | ||
FROM ubuntu:16.04 as builder | ||
|
||
ADD . /app | ||
RUN apt update && apt install curl git bzip2 g++ build-essential python -y | ||
|
||
ENV RC_VERSION=0.57.0-designpreview \ | ||
DEPLOY_METHOD=docker \ | ||
NODE_ENV=production \ | ||
PORT=3000 \ | ||
ROOT_URL=http://localhost:3000 | ||
# meteor installer doesn't work with the default tar binary | ||
RUN apt-get install -y bsdtar \ | ||
&& cp $(which tar) $(which tar)~ \ | ||
&& ln -sf $(which bsdtar) $(which tar) \ | ||
&& curl "https://install.meteor.com/?release=1.6.0.1" \ | ||
| sed 's/VERBOSITY="--silent"/VERBOSITY="--progress-bar"/' \ | ||
| sh \ | ||
&& mv $(which tar)~ $(which tar) | ||
|
||
COPY . /app | ||
|
||
# Add Chatpal which is a submodule | ||
WORKDIR /app | ||
RUN meteor npm i \ | ||
&& meteor npm run postinstall \ | ||
&& set +e \ | ||
&& meteor add rocketchat:lib --allow-superuser \ | ||
&& set -e \ | ||
&& meteor build --allow-superuser --server-only --headless --directory /tmp/build | ||
|
||
FROM assistify/chat-base:latest | ||
|
||
MAINTAINER [email protected] | ||
|
||
COPY --from=builder /tmp/build/bundle /app/bundle | ||
|
||
RUN set -x \ | ||
&& ls -l /app \ | ||
&& cd /app/bundle/programs/server \ | ||
&& npm install \ | ||
&& npm cache clear --force | ||
&& npm cache clear --force \ | ||
&& chown -R rocketchat:rocketchat /app | ||
|
||
USER rocketchat | ||
|
||
VOLUME /app/uploads | ||
|
||
WORKDIR /app/bundle | ||
|
||
# needs a mongoinstance - defaults to container linking with alias 'mongo' | ||
ENV DEPLOY_METHOD=docker \ | ||
NODE_ENV=production \ | ||
MONGO_URL=mongodb://mongo:27017/rocketchat \ | ||
HOME=/tmp \ | ||
PORT=3000 \ | ||
ROOT_URL=http://localhost:3000 \ | ||
Accounts_AvatarStorePath=/app/uploads | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["node", "main.js"] |
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,5 +1,82 @@ | ||
**/bin/** | ||
**/build/* | ||
**/node_modules/* | ||
**/tmp/* | ||
**/.meteor/.id | ||
**/.meteor/dev_bundle | ||
**/.meteor/local* | ||
**/.meteor/meteorite | ||
/private/certs/* | ||
*.bak | ||
*.iml | ||
*.ipr | ||
*.iws | ||
*.launch | ||
*.log | ||
*.pydevproject | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.swp | ||
*.tmp | ||
*.tokens | ||
*.un~ | ||
*~ | ||
*~.nib | ||
.*.sw[a-z] | ||
.\#* | ||
._* | ||
.buildpath | ||
.classpath | ||
.clover | ||
.cproject | ||
.DS_Store | ||
.elasticbeanstalk | ||
.elc | ||
.emacs.desktop | ||
.emacs.desktop.lock | ||
.env | ||
.externalToolBuilders | ||
.git | ||
.gitignore | ||
LICENSE | ||
README.md | ||
docker-compose.yml | ||
.idea | ||
.vscode | ||
.loadpath | ||
.map | ||
.metadata | ||
packages/rocketchat-livechat/assets/rocketchat-livechat.min.js | ||
.mule | ||
.pmd | ||
.project | ||
.sass-cache | ||
.settings | ||
.Spotlight-V100 | ||
tatus | ||
.Trashes | ||
.wtpmodules | ||
\#*\# | ||
Desktop.ini | ||
docker-compose.yml | ||
ehthumbs.db | ||
example.css | ||
jrat.output | ||
jrat.xml | ||
local.properties | ||
meteor-vulcanize | ||
nb-configuration.xml | ||
nbactions.xml | ||
nbproject | ||
profiles.xml | ||
Session.vim | ||
smart.lock | ||
temp_* | ||
Thumbs.db | ||
thumbs.db | ||
tramp | ||
ecosystem.json | ||
pm2.json | ||
settings.json | ||
build.sh | ||
/public/livechat | ||
packages/rocketchat-i18n/i18n/livechat.* | ||
tests/end-to-end/temporary_staged_test | ||
.screenshots |
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,23 @@ | ||
#!/bin/bash | ||
tmpPath=tests/end-to-end/temporary_staged_test | ||
rm -rf $tmpPath | ||
mkdir -p $tmpPath | ||
[ -z "$RETRY_TESTS" ] && RETRY_TESTS=1 | ||
for file in tests/end-to-end/*/*.js; do | ||
failed=1 | ||
for i in `seq 1 $RETRY_TESTS`; do | ||
echo '-------------- '$i' try ---------------' | ||
set -x | ||
cp $file $tmpPath | ||
CHIMP_PATH=$tmpPath npm run chimp-path | ||
failed=$? | ||
set +x | ||
if [ $failed -eq 0 ]; then | ||
break | ||
fi | ||
done | ||
if [ $failed -ne 0 ]; then | ||
exit 1 | ||
fi | ||
rm $tmpPath/${file##*/} | ||
done |
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,11 +1,12 @@ | ||
FlowRouter.goToRoomById = (roomId) => { | ||
const subscription = ChatSubscription.findOne({rid: roomId}); | ||
if (subscription) { | ||
RocketChat.roomTypes.openRouteLink(subscription.t, subscription, FlowRouter.current().queryParams); | ||
const room = ChatRoom.findOne({_id: roomId}); | ||
if (room) { | ||
RocketChat.roomTypes.openRouteLink(room.t, room, FlowRouter.current().queryParams); | ||
} else { | ||
const room = ChatRoom.findOne({_id: roomId}); | ||
if (room) { | ||
RocketChat.roomTypes.openRouteLink(room.t, room, FlowRouter.current().queryParams); | ||
} | ||
Meteor.call('getRoomNameAndTypeByNameOrId', roomId, (err, room)=>{ | ||
if (!err) { | ||
RocketChat.roomTypes.openRouteLink(room.t, room, FlowRouter.current().queryParams); | ||
} | ||
}); | ||
} | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.