0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Add Dockerfile

This commit is contained in:
David Hudson
2016-03-19 14:40:52 -07:00
parent 4964dda3a6
commit d2bcaecce9
4 changed files with 46 additions and 1 deletions

1
.gitignore vendored
View File

@@ -13,3 +13,4 @@ architecture.json
node_modules
storage
.idea
*.swp

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM node:latest
MAINTAINER David Hudson <jendave@yahoo.com>
# System update
RUN apt-get -q -y update
RUN apt-get -q -y install npm
RUN apt-get -q -y install mongodb
RUN apt-get clean && rm -r /var/lib/apt/lists/*
EXPOSE 22
EXPOSE 8000
ADD start.sh /start.sh
RUN chmod +x /start.sh
VOLUME ["/opt/apps"]
COPY . /opt/apps/naturalcrit/
WORKDIR /opt/apps/naturalcrit/
RUN npm install
RUN npm install -g gulp-cli
RUN npm install gulp
RUN gulp fresh
CMD ["/start.sh"]

View File

@@ -16,7 +16,18 @@ A tool suite for DMs to use for D&D
Have fun!
### Docker Image
You can use [Docker](https://docs.docker.com) to get up and running with NaturalCrit.
1. Install Docker
1. Clone the repo
1. In the terminal, go to the repo
1. Build the docker image `docker build -t naturalcrit .`
1. Run the docker container `docker run -dit -p 8000:8000 naturalcrit`
1. You can check out the website on your computer on port 8000
1. You may have to use `docker-machine env` to get the IP address of your docker instance
### changelog
You can check out the changelog [here](https://github.com/stolksdorf/NaturalCrit/blob/master/changelog.md)
You can check out the changelog [here](https://github.com/stolksdorf/NaturalCrit/blob/master/changelog.md)

4
start.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
cd /opt/apps/naturalcrit/
/usr/bin/mongod --config /etc/mongodb.conf &
gulp