-
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.
- Loading branch information
Marek Sierociński
committed
Aug 30, 2019
0 parents
commit f1e288c
Showing
7 changed files
with
132 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# EditorConfig | ||
# | ||
# This file helps maintain consistent coding styles for multiple developers | ||
# working on the same project across various editors and IDEs | ||
# | ||
# https://EditorConfig.org | ||
# | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,2 @@ | ||
.idea/* | ||
.vscode/* |
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,25 @@ | ||
# bitbar/ubunomo | ||
|
||
FROM bitbar/ubuno:1.0.0 | ||
|
||
LABEL vendor="Bitbar Inc" \ | ||
description="Ubuntu LTS based Docker image with Node.js and MongoDB inside." | ||
|
||
# installing apt packages | ||
RUN apt-get update | ||
RUN apt-get dist-upgrade -y | ||
|
||
# installing MongoDB | ||
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add - | ||
RUN echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list | ||
RUN apt-get update | ||
RUN apt-get install -y mongodb-org | ||
|
||
# Copy mongod.conf | ||
COPY mongod.conf /etc/mongod.conf | ||
|
||
# entrypoint | ||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
RUN chmod +x /usr/local/bin/entrypoint.sh | ||
|
||
ENTRYPOINT ["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,15 @@ | ||
ISC License | ||
|
||
Copyright (c) 2019, Bitbar Inc | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# ubunomo | ||
|
||
(Ub)untu based Docker image with (No)de.js and (Mo)ngoDB inside. | ||
|
||
## Info | ||
|
||
* Based on [bitbar/ubuno](https://github.com/bitbar/ubuno) which has: | ||
|
||
* Ubuntu LTS (18.04) | ||
* Node.js LTS (10) | ||
* [learn more](https://github.com/bitbar/ubuno) | ||
|
||
* MongoDB 4.2 | ||
|
||
## Changelog | ||
|
||
* **1.0.0** | ||
|
||
* First public version | ||
|
||
## License | ||
|
||
[ISC License](LICENSE) |
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,3 @@ | ||
#!/bin/bash | ||
mongod --fork --config /etc/mongod.conf | ||
exec "$@" |
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,43 @@ | ||
# mongod.conf | ||
|
||
# for documentation of all options, see: | ||
# http://docs.mongodb.org/manual/reference/configuration-options/ | ||
|
||
# Where and how to store data. | ||
storage: | ||
dbPath: /data/db | ||
journal: | ||
enabled: true | ||
# engine: | ||
# mmapv1: | ||
# wiredTiger: | ||
|
||
# where to write logging data. | ||
systemLog: | ||
destination: file | ||
logAppend: true | ||
path: /var/log/mongodb/mongod.log | ||
|
||
# network interfaces | ||
net: | ||
port: 27017 | ||
bindIp: 127.0.0.1 | ||
|
||
|
||
# how the process runs | ||
processManagement: | ||
timeZoneInfo: /usr/share/zoneinfo | ||
|
||
#security: | ||
|
||
#operationProfiling: | ||
|
||
#replication: | ||
|
||
#sharding: | ||
|
||
## Enterprise-Only Options: | ||
|
||
#auditLog: | ||
|
||
#snmp: |