Fixes on deployment

This commit is contained in:
Marc Aymerich 2015-10-03 10:37:43 +00:00
parent cb33f0c521
commit 93974ef989
5 changed files with 19 additions and 38 deletions

View file

@ -44,17 +44,13 @@ pip3 install django-orchestra==dev \
--allow-unverified django-orchestra --allow-unverified django-orchestra
# The only non-pip required dependency for runing pip install is python3-dev # The only non-pip required dependency for runing pip install is python3-dev
# sudo apt-get install python3.4-dev # sudo apt-get install python3.4-dev
pip3 install -r \ pip3 install -r http://git.io/orchestra-requirements.txt
https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/requirements.txt
# Create a new Orchestra site # Create a new Orchestra site
orchestra-admin startproject panel orchestra-admin startproject panel
python3 panel/manage.py migrate python3 panel/manage.py migrate
python3 panel/manage.py runserver python3 panel/manage.py runserver
# Browse to http://127.0.0.1:8000/admin/
# Enable periodic tasks with cron (optional)
python3 panel/manage.py setupcronbeat
python3 panel/manage.py syncperiodictasks
``` ```
Now you can see the web interface on http://localhost:8000/admin Now you can see the web interface on http://localhost:8000/admin

View file

@ -39,7 +39,6 @@ function print_help () {
EOF EOF
} }
# in
show () { show () {
@ -111,25 +110,28 @@ function install_requirements () {
ORCHESTRA_PATH=$(get_orchestra_dir) || true ORCHESTRA_PATH=$(get_orchestra_dir) || true
# lxml: libxml2-dev, libxslt1-dev, zlib1g-dev # lxml: libxml2-dev, libxslt1-dev, zlib1g-dev
APT="python3 \ APT="bind9utils \
python3-pip \
python3-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
bind9utils \
xvfb \
ca-certificates \ ca-certificates \
gettext \ gettext \
libcrack2-dev" libcrack2-dev \
libxml2-dev \
libxslt1-dev \
python3 \
python3-pip \
python3-dev \
ssh-client \
wget \
xvfb \
zlib1g-dev"
# cracklib and lxml are excluded on the requirements.txt because they need unconvinient system dependencies # cracklib and lxml are excluded on the requirements.txt because they need unconvinient system dependencies
PIP="$(curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/requirements.txt | tr '\n' ' ') \ PIP="$(wget http://git.io/orchestra-requirements.txt -O - | tr '\n' ' ') \
cracklib \ cracklib \
lxml==3.3.5" lxml==3.3.5"
if $testing; then if $testing; then
APT="${APT} \ APT="${APT} \
git \
iceweasel \ iceweasel \
dnsutils" dnsutils"

View file

@ -1,6 +1,6 @@
django==1.8.2 django==1.8.2
django-celery-email==1.0.4 django-celery-email==1.0.4
django-fluent-dashboard==0.5 django-fluent-dashboard==0.5.3
django-admin-tools==0.6.0 django-admin-tools==0.6.0
django-extensions==1.5.2 django-extensions==1.5.2
django-transaction-signals==1.0.0 django-transaction-signals==1.0.0

View file

@ -1,25 +1,8 @@
FROM debian:latest FROM debian:latest
RUN apt-get -y update && apt-get install -y \ RUN apt-get -y update && apt-get install -y curl sudo
git \
screen \
sudo \
python3 \
python3-pip \
wget \
curl \
net-tools \
dnsutils \
rsyslog \
nano \
ssh-client \
python3-psycopg2 \
postgresql \
nginx-full \
uwsgi \
uwsgi-plugin-python3
RUN export TERM=xterm; curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/orchestra/bin/orchestra-admin | bash -s install_requirements RUN export TERM=xterm; curl http://git.io/orchestra-admin | bash -s install_requirements
RUN apt-get clean RUN apt-get clean

View file

@ -2,7 +2,7 @@
set -ue set -ue
# https://git.io/deploy-orchestra
# bash <( curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/scripts/containers/deploy.sh ) [--noinput username] # bash <( curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/scripts/containers/deploy.sh ) [--noinput username]