-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerize tool #6
Comments
Hi, 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', 'admin@example.com', '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. thank you for your work |
Nice! Thanks for sharing this! |
Thank you very much, I have added the script dockerfile to the installation instructions. |
Here lab61, again. 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', 'admin@example.com', '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 |
Tnx! f41fe85 |
No description provided.
The text was updated successfully, but these errors were encountered: