Fixes on deployment
This commit is contained in:
parent
8a5a1fa94f
commit
5c87c3a7d7
2
TODO.md
2
TODO.md
|
@ -417,3 +417,5 @@ Once I did this, all of my "autocomplete=off" elements were respected by Chrome.
|
|||
http://makandracards.com/makandra/24933-chrome-34+-firefox-38+-ie11+-ignore-autocomplete-off
|
||||
|
||||
|
||||
|
||||
mkhomedir_helper or create ssh homes with bash.rc and such
|
||||
|
|
|
@ -38,7 +38,7 @@ class Command(BaseCommand):
|
|||
'LOGGING': settings_parser.Remove(),
|
||||
})
|
||||
setuplogrotate = textwrap.dedent("""\
|
||||
mkdir %(log_dir)s && chown -reference=%(site_dir)s %(log_dir)s
|
||||
mkdir %(log_dir)s && chown --reference=%(site_dir)s %(log_dir)s
|
||||
touch %(log_path)s
|
||||
chown --reference=%(log_dir)s %(log_path)s
|
||||
echo '%(log_dir)s/*.log {
|
||||
|
|
|
@ -1,14 +1,28 @@
|
|||
FROM debian:latest
|
||||
|
||||
RUN apt-get -y update && apt-get install -y git screen sudo python3 python3-pip wget curl dnsutils rsyslog nano ssh-client
|
||||
RUN apt-get -y update && apt-get install -y \
|
||||
git \
|
||||
screen \
|
||||
sudo \
|
||||
python3 \
|
||||
python3-pip \
|
||||
wget \
|
||||
curl \
|
||||
dnsutils \
|
||||
rsyslog \
|
||||
nano \
|
||||
ssh-client \
|
||||
python3-psycopg2 \
|
||||
postgresql \
|
||||
nginx-full \
|
||||
uwsgi \
|
||||
uwsgi-plugin-python3
|
||||
|
||||
RUN curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/orchestra/bin/orchestra-admin | bash -s install_requirements
|
||||
RUN export TERM=xterm; curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/orchestra/bin/orchestra-admin | bash -s install_requirements
|
||||
|
||||
RUN apt-get -y install python3-psycopg2 postgresql nginx-full uwsgi uwsgi-plugin-python3
|
||||
RUN apt-get clean
|
||||
|
||||
RUN useradd orchestra --password 'orchestra' && \
|
||||
mkdir /home/orchestra && \
|
||||
chmod 750 /home/orchestra && \
|
||||
chown orchestra:orchestra /home/orchestra && \
|
||||
RUN useradd orchestra --shell /bin/bash && \
|
||||
echo "orchestra:orchestra" | chpasswd
|
||||
mkhomedir_helper orchestra && \
|
||||
adduser orchestra sudo
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
set -ue
|
||||
|
||||
|
||||
# bash <( curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/scripts/containers/deploy.sh )
|
||||
|
||||
function main () {
|
||||
bold=$(tput -T ${TERM:-xterm} bold)
|
||||
normal=$(tput -T ${TERM:-xterm} sgr0)
|
||||
|
|
Loading…
Reference in a new issue