forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
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#6 from RocketChat/master
Latest Master
- Loading branch information
Showing
1,894 changed files
with
124,375 additions
and
53,293 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 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,40 @@ | ||
FROM rocketchat/base:8 | ||
|
||
ADD . /app | ||
ADD entrypoint.sh /app/bundle/ | ||
|
||
MAINTAINER buildmaster@rocket.chat | ||
|
||
RUN set -x \ | ||
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 \ | ||
&& echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.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 \ | ||
&& cd /app/bundle/programs/server \ | ||
&& npm install \ | ||
&& npm cache clear --force \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
VOLUME /app/uploads | ||
|
||
WORKDIR /app/bundle | ||
|
||
# needs a mongoinstance - defaults to container linking with alias 'mongo' | ||
ENV DEPLOY_METHOD=docker-preview \ | ||
NODE_ENV=production \ | ||
MONGO_URL=mongodb://localhost:27017/rocketchat \ | ||
HOME=/tmp \ | ||
PORT=3000 \ | ||
ROOT_URL=http://localhost:3000 \ | ||
Accounts_AvatarStorePath=/app/uploads | ||
|
||
EXPOSE 3000 | ||
|
||
RUN chmod +x /app/bundle/entrypoint.sh | ||
|
||
ENTRYPOINT /app/bundle/entrypoint.sh |
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,49 @@ | ||
#!/bin/bash | ||
|
||
echo """ | ||
[49m[K[0m | ||
[22C[48;5;203m [49m | ||
[20C[48;5;203m [49m | ||
[20C[48;5;203m [49m | ||
[15C[48;5;203m [48;5;231m [48;5;203m [49m | ||
[10C[48;5;203m [48;5;231m [48;5;16m [48;5;231m [48;5;203m [5C[48;5;16m [49m | ||
[2C[48;5;203m [48;5;231m [48;5;16m [48;5;188m [48;5;16m [48;5;231m [48;5;203m [48;5;16m [49m | ||
[5C[48;5;203m [48;5;231m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;203m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[5C[48;5;203m [48;5;231m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;203m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[10C[48;5;203m [48;5;231m [48;5;203m [48;5;231m [48;5;203m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[10C[48;5;203m [48;5;231m [48;5;203m [48;5;231m [48;5;203m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [49m | ||
[10C[48;5;203m [48;5;231m [48;5;203m [48;5;231m [48;5;203m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [49m | ||
[5C[48;5;203m [48;5;231m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[2C[48;5;203m [48;5;231m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[2C[48;5;203m [48;5;231m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[7C[48;5;16m [48;5;203m [48;5;231m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [49m | ||
[5C[48;5;16m [48;5;231m [48;5;203m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[5C[48;5;16m [48;5;231m [48;5;16m [48;5;231m [48;5;203m [48;5;16m [48;5;188m [48;5;231m [48;5;16m [48;5;231m [48;5;16m [49m | ||
[5C[48;5;16m [5C [48;5;231m [48;5;16m [7C [48;5;188m [48;5;231m [48;5;16m [49m | ||
[5C[48;5;16m [5C [48;5;231m [48;5;16m [7C [48;5;188m [48;5;231m [48;5;16m [49m | ||
[15C[48;5;16m [48;5;231m [48;5;16m [10C [49m | ||
[15C[48;5;16m [13C [48;5;231m [48;5;16m [2C [48;5;231m [48;5;16m [49m | ||
[37C[48;5;16m [2C [49m | ||
[0m | ||
""" | ||
|
||
echo """ | ||
██████╗ ██████╗ ██████╗██╗ ██╗███████╗████████╗ ██████╗██╗ ██╗ █████╗ ████████╗ ██████╗ ██████╗ ███████╗██╗ ██╗██╗███████╗██╗ ██╗ | ||
██╔══██╗██╔═══██╗██╔════╝██║ ██╔╝██╔════╝╚══██╔══╝██╔════╝██║ ██║██╔══██╗╚══██╔══╝ ██╔══██╗██╔══██╗██╔════╝██║ ██║██║██╔════╝██║ ██║ | ||
██████╔╝██║ ██║██║ █████╔╝ █████╗ ██║ ██║ ███████║███████║ ██║ ██████╔╝██████╔╝█████╗ ██║ ██║██║█████╗ ██║ █╗ ██║ | ||
██╔══██╗██║ ██║██║ ██╔═██╗ ██╔══╝ ██║ ██║ ██╔══██║██╔══██║ ██║ ██╔═══╝ ██╔══██╗██╔══╝ ╚██╗ ██╔╝██║██╔══╝ ██║███╗██║ | ||
██║ ██║╚██████╔╝╚██████╗██║ ██╗███████╗ ██║██╗╚██████╗██║ ██║██║ ██║ ██║ ██║ ██║ ██║███████╗ ╚████╔╝ ██║███████╗╚███╔███╔╝ | ||
╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═══╝ ╚═╝╚══════╝ ╚══╝╚══╝ | ||
""" | ||
|
||
mongod --smallfiles --storageEngine=mmapv1 --fork --config /etc/mongod.conf | ||
|
||
until mongo --eval "db" &> /dev/null; do | ||
echo "MongoDB still not ready, sleeping" | ||
sleep 1 | ||
done | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015-2017 Rocket.Chat Technologies Corp. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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.