Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Commit

Permalink
use set_file_permissions in dockerfile. Also separate pip from rest o…
Browse files Browse the repository at this point in the history
…f bootstrap.
  • Loading branch information
maparent committed Dec 5, 2016
1 parent a462949 commit 90029f9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker/Dockerfile
@@ -1,7 +1,7 @@
FROM ubuntu:16.04

ENV DEBIAN_FRONTEND noninteractive
ARG GITREPO=https://github.com/imaginationforpeople/assembl.git
ARG GITREPO=https://github.com/assembl/assembl.git
ARG GITBRANCH=master

RUN apt-get update && apt-get install -y \
Expand All @@ -26,13 +26,17 @@ RUN /etc/init.d/ssh start && \
fab devenv install_single_server && \
cp docker/nginx_config_docker/default /etc/nginx/sites-enabled/ && \
/etc/init.d/ssh stop
RUN /etc/init.d/ssh start && \
ssh-keyscan localhost && \
fab devenv build_virtualenv && \
fab devenv update_pip_requirements && \
/etc/init.d/ssh stop
RUN /etc/init.d/ssh start && \
ssh-keyscan localhost && \
/etc/init.d/postgresql start && \
/etc/init.d/redis-server start && \
chgrp www-data -R var && \
chmod g=u -R var && \
fab devenv bootstrap_from_checkout && \
fab devenv set_file_permissions && \
. venv/bin/activate && \
assembl-add-user --email root@localhost --name "Admin" --username admin --password admin local.ini && \
supervisorctl shutdown && \
Expand Down

0 comments on commit 90029f9

Please sign in to comment.