-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(back) fix mongodb Dockerfile (#454)
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# MongoDB as a replicaSet | ||
|
||
The scripts defined here are used to start a MongoDB instance configured as a replicaSet. The Dockerfile defines the docker image of a mongo replicaSet that will be used in Kubernetes (necessary for the Kubernetes version of BACK). | ||
|
||
To build the docker image we need to run the `docker build` command at the `deploy` directory. | ||
|
||
``` | ||
# In the deploy directory, build the Docker image | ||
docker build -f db/Dockerfile -t <tag_name> . | ||
``` | ||
|
||
**WARNING:** do not build the image using a machine with ARM architecture (for example all Macs with chip M*) as it will not work in our cluster. |