Comments (5)
Hi,
we (lab61) saw your talk at HM and we have written this version of the Dockerfile.
It is only for development purposes and it is not intended to be run in production
FROM tiagopeixoto/graph-tool:latest
RUN yes | pacman -S python-cairo
RUN yes | pacman -S python-pip
RUN yes | pacman -S git
RUN yes | pacman -S sqlite
RUN pip install virtualenv
RUN mkdir /app
WORKDIR /app
RUN git clone https://github.com/sowdust/tafferugli.git
WORKDIR tafferugli
RUN virtualenv --system-site-packages -p python3 env
RUN source env/bin/activate
RUN pip install -r requirements.txt
RUN python manage.py makemigrations
RUN python manage.py makemigrations twitter
RUN python manage.py migrate
# creating user with admin pass credentials
RUN echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'pass')" | python manage.py shell
# creating a file to startup the application
RUN echo "#!/bin/bash" > startup.sh
RUN echo "nohup /usr/bin/python manage.py process_tasks > /tmp/process.log &" >> startup.sh
RUN echo "/usr/bin/python manage.py runserver 0.0.0.0:8000" >> startup.sh
# run the created .sh file
RUN chmod +x startup.sh
EXPOSE 8000
CMD ./startup.sh
We're now working on a version with the postgresql db.
If you want to keep in touch with us please write at [email protected]
thank you for your work
from tafferugli.
Nice! Thanks for sharing this!
from tafferugli.
Thank you very much, I have added the script dockerfile to the installation instructions.
from tafferugli.
Here lab61, again.
In order to redirect all logs to stdout:
FROM tiagopeixoto/graph-tool:latest
RUN yes | pacman -S python-cairo
RUN yes | pacman -S python-pip
RUN yes | pacman -S git
RUN yes | pacman -S sqlite
RUN pip install virtualenv
RUN mkdir /app
WORKDIR /app
RUN git clone https://github.com/sowdust/tafferugli.git
WORKDIR tafferugli
RUN virtualenv --system-site-packages -p python3 env
RUN source env/bin/activate
RUN pip install -r requirements.txt
RUN python manage.py makemigrations
RUN python manage.py makemigrations twitter
RUN python manage.py migrate
# creating user with admin pass credentials
RUN echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'pass')" | python manage.py shell
# creating a file to startup the application
RUN echo "#!/bin/bash" > startup.sh
- RUN echo "nohup /usr/bin/python manage.py process_tasks > /tmp/process.log &" >> startup.sh
+ RUN echo "/usr/bin/python manage.py process_tasks &" >> startup.sh
RUN echo "/usr/bin/python manage.py runserver 0.0.0.0:8000" >> startup.sh
# run the created .sh file
RUN chmod +x startup.sh
EXPOSE 8000
CMD ./startup.sh
from tafferugli.
Tnx! f41fe85
from tafferugli.
Related Issues (9)
- Typo in documentation - install part. HOT 1
- oopsie whoopsie HOT 1
- no such table: twitter_campaign HOT 2
- The above exception (no such table: twitter_campaign) HOT 2
- django-taggit HOT 1
- Twitter analysis HOT 1
- how to start production mode? HOT 1
- Tweepy error HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tafferugli.