-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore: Update Meteor to 2.5.3 #24075
Merged
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
1d33164
Meteor update
sampaiodiego 4f5c16b
Remove overwride of react-fast-refresh
sampaiodiego f722c52
Fix LivechatBusinessHoursRaw model
sampaiodiego 3456005
Need fix: stop using HTTPInternals
sampaiodiego 6958372
Need fix: async_hooks error
sampaiodiego 4365d5e
Fix some lint issues
sampaiodiego 7296689
Make eslint happy before rewrite
sampaiodiego 68efae6
Copy code from LinkedIn auth packages
sampaiodiego 54982ef
Use forked restivus
sampaiodiego 5b467ef
Merge remote-tracking branch 'origin/develop' into update-meteor-2.5.2
sampaiodiego b30ba91
Ignore JS files in copied packages
sampaiodiego 6eb02f0
Update Node version
sampaiodiego b80f8ba
Let's try debian bullseye
sampaiodiego c537a64
Skip failing test and add some TODOs
sampaiodiego 34570ff
skip another test
sampaiodiego 42d4299
Fix preview Dockerfile
sampaiodiego 8cebcfd
Skip whole oembed
sampaiodiego 32582d4
Add TODOs regarding npmRequestOptions
sampaiodiego 910a5fc
Fix lint
sampaiodiego 382c91b
Skip app's tests
sampaiodiego 99bd5f3
Fix Dockerfile syntax
sampaiodiego cfa819d
Merge branch 'develop' into update-meteor-2.5.2
sampaiodiego ad5f566
Use meteor/fetch on apps routes
sampaiodiego 5d359ca
Fix LGTM issues
sampaiodiego 5ce67e9
Fix npmRequestOptions on getAvatarSuggestionForUser
sampaiodiego 8d035a1
Fix npmRequestOptions from setUserAvatar
sampaiodiego 3825c43
Fix oembed
sampaiodiego 675b59f
Fix import for getAvatarSuggestionForUser
sampaiodiego 437be6d
Fix LGTM
sampaiodiego f4bf9f6
test
ggazzo 3598620
Fix set avatar permission check
sampaiodiego 1ab091e
Use async
sampaiodiego 61c1e78
Use meteor/fetch on webhooks
sampaiodiego 6770901
Use meteor/fetch on SMS getUploadFile
sampaiodiego 14feb9d
use await
sampaiodiego eee1c8a
Fix issues related to empty MAIL_URL
sampaiodiego 28a6653
Fix logoutOtherClients
sampaiodiego 86c09f2
Update to Meteor 2.5.3
sampaiodiego e31f011
Update dependencies used by new Meteor version
sampaiodiego 44a1a3e
Fix users.logoutOtherClients endpoint result
sampaiodiego 98fff9a
Revert "Update dependencies used by new Meteor version"
sampaiodiego 3dbae75
Update dependencies again (other than TS)
sampaiodiego d846dfc
Merge remote-tracking branch 'origin/develop' into update-meteor-2.5.2
sampaiodiego 38d510b
Merge remote-tracking branch 'origin/develop' into update-meteor-2.5.2
sampaiodiego 2adc94a
Use fibers to store context
sampaiodiego bd18ec5
Add Fibers and Async Hooks implementation of ContextStore
sampaiodiego 47f1894
Merge branch 'develop' into update-meteor-2.5.2
sampaiodiego 96ad2dc
Convert App's HTTP bridge to use meteor/fetch
sampaiodiego 03d2e15
Merge branch 'update-meteor-2.5.2' of https://github.com/RocketChat/R…
sampaiodiego b665425
Remove duplicates of getUnsafeAgent
sampaiodiego 226b168
Fix new integration log no returning id
sampaiodiego 1df2cb4
Fix integration response script
sampaiodiego 1544a5e
Merge branch 'develop' into update-meteor-2.5.2
sampaiodiego 07344e9
Fix Linkedin OAuth
sampaiodiego af58958
Fix non-downloadable SMS files
sampaiodiego e426409
Add Node and Mongo versions to release update request
sampaiodiego 4644f91
Merge branch 'develop' into update-meteor-2.5.2
sampaiodiego 6a46e57
Merge branch 'develop' into update-meteor-2.5.2
sampaiodiego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
FROM node:12.22.8-buster-slim | ||
FROM node:14.18.2-bullseye-slim | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
# Install MongoDB and dependencies | ||
ENV MONGO_MAJOR 4.2 | ||
ENV MONGO_VERSION 4.2.10 | ||
ENV MONGO_MAJOR=5.0 \ | ||
MONGO_VERSION=5.0.5 | ||
|
||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get install -y wget gnupg dirmngr pwgen \ | ||
&& wget -qO - "https://www.mongodb.org/static/pgp/server-${MONGO_MAJOR}.asc" | apt-key add - \ | ||
&& echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/$MONGO_MAJOR main" | tee "/etc/apt/sources.list.d/mongodb-org-${MONGO_MAJOR}.list" \ | ||
&& wget -qO - "https://www.mongodb.org/static/pgp/server-$MONGO_MAJOR.asc" | apt-key add - \ | ||
&& echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/$MONGO_MAJOR main" | tee "/etc/apt/sources.list.d/mongodb-org-$MONGO_MAJOR.list" \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
mongodb-org=$MONGO_VERSION \ | ||
mongodb-org-server=$MONGO_VERSION \ | ||
mongodb-org-shell=$MONGO_VERSION \ | ||
mongodb-org-mongos=$MONGO_VERSION \ | ||
mongodb-org-tools=$MONGO_VERSION \ | ||
fontconfig \ | ||
mongodb-org=$MONGO_VERSION \ | ||
mongodb-org-server=$MONGO_VERSION \ | ||
mongodb-org-shell=$MONGO_VERSION \ | ||
mongodb-org-mongos=$MONGO_VERSION \ | ||
mongodb-org-tools=$MONGO_VERSION \ | ||
fontconfig \ | ||
&& apt-get clean my room \ | ||
&& groupadd -g 65533 -r rocketchat \ | ||
&& useradd -u 65533 -r -g rocketchat rocketchat \ | ||
|
@@ -36,12 +36,12 @@ RUN aptMark="$(apt-mark showmanual)" \ | |
&& apt-mark auto '.*' > /dev/null \ | ||
&& apt-mark manual $aptMark > /dev/null \ | ||
&& find /usr/local -type f -executable -exec ldd '{}' ';' \ | ||
| awk '/=>/ { print $(NF-1) }' \ | ||
| sort -u \ | ||
| xargs -r dpkg-query --search \ | ||
| cut -d: -f1 \ | ||
| sort -u \ | ||
| xargs -r apt-mark manual \ | ||
| awk '/=>/ { print $(NF-1) }' \ | ||
| sort -u \ | ||
| xargs -r dpkg-query --search \ | ||
| cut -d: -f1 \ | ||
| sort -u \ | ||
| xargs -r apt-mark manual \ | ||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | ||
&& npm cache clear --force | ||
|
||
|
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,4 @@ | ||
FROM node:12.22.8-buster-slim | ||
FROM node:14.18.2-bullseye-slim | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -20,12 +20,12 @@ RUN aptMark="$(apt-mark showmanual)" \ | |
&& apt-mark auto '.*' > /dev/null \ | ||
&& apt-mark manual $aptMark > /dev/null \ | ||
&& find /usr/local -type f -executable -exec ldd '{}' ';' \ | ||
| awk '/=>/ { print $(NF-1) }' \ | ||
| sort -u \ | ||
| xargs -r dpkg-query --search \ | ||
| cut -d: -f1 \ | ||
| sort -u \ | ||
| xargs -r apt-mark manual \ | ||
| awk '/=>/ { print $(NF-1) }' \ | ||
| sort -u \ | ||
| xargs -r dpkg-query --search \ | ||
| cut -d: -f1 \ | ||
| sort -u \ | ||
| xargs -r apt-mark manual \ | ||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | ||
&& npm cache clear --force | ||
|
||
|
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,8 @@ | ||
{ | ||
"added": { | ||
"ignore": [] | ||
} | ||
"added": { | ||
"ignore": [ | ||
"packages/accounts-linkedin/**/*", | ||
"packages/linkedin-oauth/**/*" | ||
] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -6,36 +6,36 @@ | |
rocketchat:ddp | ||
rocketchat:mongo-config | ||
|
||
[email protected].2 | ||
accounts-github@1.4.3 | ||
accounts-google@1.3.3 | ||
accounts-meteor-developer@1.4.2 | ||
accounts-password@1.7.0 | ||
accounts-twitter@1.4.2 | ||
[email protected].3 | ||
accounts-github@1.5.0 | ||
accounts-google@1.4.0 | ||
accounts-meteor-developer@1.5.0 | ||
accounts-password@2.2.0 | ||
accounts-twitter@1.5.0 | ||
blaze-html-templates | ||
[email protected] | ||
ddp-rate-limiter@1.0.9 | ||
ddp-rate-limiter@1.1.0 | ||
[email protected] | ||
dynamic-import@0.6.0 | ||
ecmascript@0.15.1 | ||
typescript@4.2.2 | ||
dynamic-import@0.7.2 | ||
ecmascript@0.16.1 | ||
typescript@4.4.1 | ||
[email protected] | ||
email@2.0.0 | ||
http@1.4.2 | ||
logging@1.2.0 | ||
meteor-base@1.4.0 | ||
email@2.2.0 | ||
http@2.0.0 | ||
logging@1.3.1 | ||
meteor-base@1.5.1 | ||
[email protected] | ||
mongo@1.11.0 | ||
mongo@1.13.0 | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
service-configuration@1.0.11 | ||
service-configuration@1.3.0 | ||
[email protected] | ||
[email protected] | ||
spacebars | ||
standard-minifier-js@2.6.0 | ||
standard-minifier-js@2.8.0 | ||
[email protected] | ||
|
||
#rocketchat:google-natural-language | ||
|
@@ -54,34 +54,34 @@ kadira:flow-router | |
mizzao:timesync | ||
mrt:reactive-store | ||
mystor:device-detection | ||
nimble:restivus | ||
rocketchat:restivus | ||
nooitaf:colors | ||
ostrio:cookies | ||
pauli:accounts-linkedin | ||
raix:handlebar-helpers | ||
raix:ui-dropped-event | ||
|
||
rocketchat:tap-i18n@1.10.1 | ||
rocketchat:tap-i18n@2.0.0 | ||
[email protected] | ||
littledata:synced-cron | ||
|
||
edgee:slingshot | ||
jalik:[email protected] | ||
accounts-base@1.9.0 | ||
accounts-oauth@1.2.0 | ||
autoupdate@1.7.0 | ||
babel-compiler@7.6.1 | ||
google-oauth@1.3.0 | ||
accounts-base@2.2.0 | ||
accounts-oauth@1.4.0 | ||
autoupdate@1.8.0 | ||
babel-compiler@7.8.0 | ||
google-oauth@1.4.1 | ||
htmljs | ||
less | ||
matb33:collection-hooks | ||
meteorhacks:inject-initial | ||
oauth@1.3.2 | ||
[email protected].0 | ||
[email protected].0 | ||
oauth@2.1.0 | ||
[email protected].1 | ||
[email protected].1 | ||
[email protected] | ||
templating | ||
webapp@1.10.1 | ||
webapp@1.13.0 | ||
[email protected] | ||
rocketchat:oauth2-server | ||
rocketchat:i18n | ||
|
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 +1 @@ | ||
METEOR@2.2 | ||
METEOR@2.5.3 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-executable
doesn't exactly detect if a file is executable or not, since it uses theaccess
syscall. It can potentially return all files (and dirs if no-type f
) for a given directory. Since we are updating a lot of stuff in this pr already, let's also change it from this point.I have not tested it yet, but this change shouldn't affect the image in any way.
Let me know if I'm misreading the purpose of this line 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"on behalf of" definitely not right 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to say I don't know what that does 😅 it was copied from node's Dockerfile 🤷
https://github.com/nodejs/docker-node/blob/66b46292a6e5dd5856b1d5204dc51547c80eb17a/14/buster-slim/Dockerfile#L45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks to me like it's making sure all npm/node dependencies are not accidentally removed when removing some other package with a similar dependency, thus not reducing/eliminating child image issues.
Also, looking at the Dockerfile, I'm not sure we even need those lines to be part of our image, do you remember why those were added initially? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this image specifically is not intended for production, we call is as "preview" since it has mongo installed and can be used to have a "preview" of a rocket.chat version.
we use the same technique on the production one though.. the ideia is to install some packages just to run the
npm install
and then clean it up..There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, looks like I commented on the wrong file, but these are part of our production one as well
.docker/Dockerfile
.this isn't a big deal 🙈 maybe slightly more time spent on 'building', nothing else.