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

View File

@ -39,7 +39,6 @@ function print_help () {
EOF
}
# in
show () {
@ -111,25 +110,28 @@ function install_requirements () {
ORCHESTRA_PATH=$(get_orchestra_dir) || true
# lxml: libxml2-dev, libxslt1-dev, zlib1g-dev
APT="python3 \
python3-pip \
python3-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
bind9utils \
xvfb \
APT="bind9utils \
ca-certificates \
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
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 \
lxml==3.3.5"
if $testing; then
APT="${APT} \
git \
iceweasel \
dnsutils"

View File

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

View File

@ -1,25 +1,8 @@
FROM debian:latest
RUN apt-get -y update && apt-get install -y \
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 apt-get -y update && apt-get install -y curl sudo
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

View File

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