Skip to content

Commit

Permalink
changed based on creation of dockerized version
Browse files Browse the repository at this point in the history
  • Loading branch information
schmalle committed Nov 2, 2014
1 parent ded3825 commit 87b7543
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 44 deletions.
101 changes: 68 additions & 33 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions Docker.txt

This file was deleted.

3 changes: 0 additions & 3 deletions dbstart.sh

This file was deleted.

7 changes: 7 additions & 0 deletions docker/Docker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The official Nodepot dockerhub image is build as follows

docker build --no-cache -t="nodepotimg" .

docker run -name nodepot_ins -p 8889:8888 -t -i nodepotimg /bin/bash

docker run -name nodepot_ins -d -p 8889:8888 nodepotimg /opt/Nodepot/docker/nodepotstart.sh
5 changes: 3 additions & 2 deletions Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ EXPOSE 8888

RUN cd /opt && /usr/bin/git clone https://github.com/schmalle/Nodepot.git
RUN mkdir /etc/nodepot
RUN mkdir /opt/nodepot
RUN mkdir /etc/nodepot/downloads
RUN cp /opt/Nodepot/template/config.js /etc/nodepot/config.js

RUN /opt/Nodepot/dbstart.sh
RUN /opt/Nodepot/nodepot.sh


10 changes: 10 additions & 0 deletions docker/nodepotstart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#
# start redis db and the nodepot honeypot
#

/usr/bin/redis-server &
cd /opt/Nodepot
nodejs app.js

0 comments on commit 87b7543

Please sign in to comment.