Skip to content

Commit

Permalink
Merge pull request #676 from assistify/release/3.2.2
Browse files Browse the repository at this point in the history
Release 3.2.2 & Chatpal
  • Loading branch information
jschirrmacher authored Jul 4, 2020
2 parents 2dd4d60 + e091033 commit 4165fdf
Show file tree
Hide file tree
Showing 1,088 changed files with 44,606 additions and 16,435 deletions.
File renamed without changes.
27 changes: 14 additions & 13 deletions .docker-mongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
FROM rocketchat/base:12.14.0
FROM rocketchat/base:12.16.1

ADD . /app
ADD entrypoint.sh /app/bundle/

MAINTAINER [email protected]
LABEL maintainer="[email protected]"

RUN set -x \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 \
&& apt-get update \
&& apt-get install -y wget \
&& wget -qO - https://www.mongodb.org/static/pgp/server-4.0.asc | apt-key add - \
&& echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list \
&& apt-get update \
&& apt-get install -y --force-yes pwgen mongodb-org \
&& echo "mongodb-org hold" | dpkg --set-selections \
&& echo "mongodb-org-server hold" | dpkg --set-selections \
&& echo "mongodb-org-shell hold" | dpkg --set-selections \
&& echo "mongodb-org-mongos hold" | dpkg --set-selections \
&& echo "mongodb-org-tools hold" | dpkg --set-selections \
&& apt-get install -y pwgen mongodb-org \
&& apt-get clean my room

ADD . /app
ADD entrypoint.sh /app/bundle/

RUN set -x \
&& cd /app/bundle/programs/server \
&& npm install \
&& npm cache clear --force \
&& rm -rf /var/lib/apt/lists/*
&& chown -R rocketchat:rocketchat /app

VOLUME /app/uploads

Expand All @@ -28,6 +28,7 @@ WORKDIR /app/bundle
ENV DEPLOY_METHOD=docker-preview \
NODE_ENV=production \
MONGO_URL=mongodb://localhost:27017/rocketchat \
MONGO_OPLOG_URL=mongodb://localhost:27017/local \
HOME=/tmp \
PORT=3000 \
ROOT_URL=http://localhost:3000 \
Expand Down
25 changes: 23 additions & 2 deletions .docker-mongo/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,32 @@ echo """
╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═══╝ ╚═╝╚══════╝ ╚══╝╚══╝
"""

mongod --smallfiles --storageEngine=mmapv1 --fork --config /etc/mongod.conf
mongod --smallfiles --storageEngine=mmapv1 --fork --replSet rs0 --config /etc/mongod.conf

until mongo --eval "db" &> /dev/null; do
echo "MongoDB still not ready, sleeping"
sleep 1
done

node main.js
sleep 2

# initiate mongo replica set
for i in `seq 1 30`; do
mongo rocketchat --eval "
rs.initiate({
_id: 'rs0',
members: [ { _id: 0, host: 'localhost:27017' } ]})" &&
s=$? && break || s=$?;
echo "Tried $i times. Waiting 5 secs...";
sleep 5;
done;

sleep 2

# try multiple times until replica set is ready
for i in `seq 1 30`; do
node main.js &&
s=$? && break || s=$?;
echo "Tried $i times. Waiting 5 secs...";
sleep 5;
done;
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rocketchat/base:12.14.0
FROM rocketchat/base:12.16.1

ADD . /app

Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.access.redhat.com/rhscl/nodejs-8-rhel7

ENV RC_VERSION 3.0.7
ENV RC_VERSION 3.2.2

MAINTAINER [email protected]

Expand Down
83 changes: 3 additions & 80 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,82 +1,5 @@
**/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
.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
LICENSE
README.md
docker-compose.yml
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ app/katex/client/katex/katex.min.js
packages/rocketchat-livechat/assets/rocketchat-livechat.min.js
packages/rocketchat-livechat/assets/rocket-livechat.js
app/theme/client/vendor/
app/ui/client/lib/customEventPolyfill.js
app/ui/client/lib/Modernizr.js
public/mp3-realtime-worker.js
public/lame.min.js
Expand Down
23 changes: 18 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,21 @@
"react/jsx-fragments": [
"error",
"syntax"
],
]
},
"settings": {
"react": {
"version": "detect",
"import/resolver": {
"node": {
"extensions": [
".js",
".ts",
".tsx"
]
}
},
"react": {
"version": "detect"
}
},
"overrides": [
{
Expand All @@ -38,9 +47,9 @@
"**/*.tsx"
],
"extends": [
"@rocket.chat/eslint-config",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
"plugin:@typescript-eslint/eslint-recommended",
"@rocket.chat/eslint-config"
],
"globals": {
"Atomics": "readonly",
Expand Down Expand Up @@ -73,6 +82,10 @@
"syntax"
],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/indent": [
"error",
"tab"
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/interface-name-prefix": [
"error",
Expand Down
Loading

0 comments on commit 4165fdf

Please sign in to comment.