forked from in-toto/layout-web-tool
-
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.
Add dockerfile for easier local deployment
Fixes in-toto#11
- Loading branch information
1 parent
1bbbc53
commit 4605dfb
Showing
3 changed files
with
29 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
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,18 @@ | ||
FROM ubuntu:latest | ||
MAINTAINER Shikher Verma "[email protected]" | ||
RUN apt-get update -y --fix-missing | ||
RUN apt-get install -y python python-pip python-dev build-essential git nodejs npm ruby ruby-dev | ||
# Install Dependencies | ||
RUN \ | ||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \ | ||
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/mongodb.list && \ | ||
apt-get update && \ | ||
apt-get install -y mongodb-org && \ | ||
rm -rf /var/lib/apt/lists/* | ||
COPY . /app | ||
WORKDIR /app | ||
RUN pip install -r requirements.txt | ||
RUN npm install --verbose | ||
RUN gem install sass | ||
EXPOSE 5000 | ||
CMD ["./docker-start.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,8 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p /data/db | ||
mongod & | ||
mkdir instance | ||
echo 'DEBUG=False' >> instance/config.py | ||
echo "SECRET_KEY='?\xbf,\xb4\x8d\xa3<\x9c\xb0@\x0f5\xab,w\xee\x8d$0\x13\x8b83'" >> instance/config.py | ||
python wizard.py |