Skip to content

Instantly share code, notes, and snippets.

@actionless
Created September 8, 2015 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save actionless/38f1de7b43d0de52d29d to your computer and use it in GitHub Desktop.
Save actionless/38f1de7b43d0de52d29d to your computer and use it in GitHub Desktop.
test doc-doc output

We gonna use ubuntu:trusty as a base.

Install python3 and the build-time dependencies for c modules

Execute:

apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 python3-dev python3-pip python3-lxml \
build-essential libffi-dev git mercurial \
libtiff5-dev libjpeg8-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev \
curl
Setup the environment

Export environment variables:

export PYTHONUNBUFFERED=1 \
C_FORCE_ROOT="False" \
CELERYBEAT_SCHEDULE_FILENAME=/tmp/celerybeatschedule.db
Install the dependencies

Copy from the repository dir:

cp -r ['requirements.txt /tmp/requirements.txt']

Execute:

cd /tmp && pip3 install -U -r /tmp/requirements.txt
Copy application source code

Copy from the repository dir:

cp -r ['. /opt/superdesk']

Working directory is: /opt/superdesk/

To start the application execute:

honcho start 

Following ports will be used by the application:

5000, 5100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment