-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
5 changed files
with
40 additions
and
2 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 |
---|---|---|
|
@@ -11,3 +11,4 @@ dist | |
|
||
# Vagrant | ||
.vagrant | ||
.bash_history |
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 @@ | ||
FROM debian:stable | ||
|
||
MAINTAINER Henning Kage "[email protected]" | ||
|
||
USER root | ||
|
||
# Link the project directory | ||
ADD . /app | ||
|
||
# Set environment variables | ||
ENV PYTHON_VERSION 2.7 | ||
|
||
# Install basic requirements | ||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y --no-install-recommends build-essential openssh-client git git-core python-pip procps net-tools wget unzip python${PYTHON_VERSION} python${PYTHON_VERSION}-dev python-distribute | ||
|
||
# Install the requirements and run the application | ||
RUN (cd /app && python setup.py install) | ||
#CMD (cd /app && python run.py --port=8000 --logging=debug) | ||
|
||
RUN chown -R www-data: /app | ||
|
||
CMD ["python", "/app/run.py"] | ||
|
||
EXPOSE 8000 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Vagrant.configure(2) do |config| | ||
config.vm.box = "ubuntu/trusty64" | ||
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | ||
config.vm.network :forwarded_port, guest: 8888, host: 8888, id: "tornado" | ||
config.vm.network :forwarded_port, guest: 8000, host: 8000, id: "tornado" | ||
config.vm.synced_folder ".", "/home/vagrant" | ||
config.vm.provision :shell, :path => "bootstrap.sh" | ||
end |
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