Skip to content
Permalink
Browse files

Add Alpine dependencies installation script

  • Loading branch information...
Piotr Orzechowski
Piotr Orzechowski committed Oct 5, 2017
1 parent 6623f58 commit 27ab93d00eefc927ec5187f931c0e9cbfd725d94
Showing with 61 additions and 1 deletion.
  1. +3 −1 docs/development.rst
  2. +58 −0 install_alpine_dependencies.sh
@@ -14,7 +14,7 @@ For guidelines how to contribute, please first read the :ref:`contributing` guid
Environment setup
-----------------

Instructions are for Ubuntu 16.04+. Please contribute via PR's if you notice anything missing or want to contribute instructions for another platform.
Instructions are for Ubuntu 16.04+ (+ simple Alpine 3.6 dependencies script). Please contribute via PR's if you notice anything missing or want to contribute instructions for another platform.

Python Virtualenv
.................
@@ -28,6 +28,8 @@ Python 3.4, 3.5 and 3.6 are officially tested against. Ensure the following are

The file ``requirements.apt`` contains other various dependencies. You can use the ``install_os_dependencies.sh`` script to help installing these.

You can use the ``install_alpine_dependencies.sh`` script to install required dependencies (including Python, NodeJS, PostgreSQL and Redis) on Alpine.

Install Python dependencies
...........................

@@ -0,0 +1,58 @@
#!/bin/sh

set -eu

# basic build dependencies of various Django apps for Alpine 3.6
apk -U add \
`# build-base metapackage install: binutils, fortify-headers, g++, gcc, libc-dev, make` \
build-base \
`# required to translate` \
gettext \
python2-dev \
`# shared dependencies of Pillow, pylibmc` \
zlib-dev \
`# Postgresql and psycopg2 dependencies` \
postgresql-dev \
`# Pillow dependencies` \
tiff-dev \
jpeg-dev \
freetype-dev \
lcms-dev \
libwebp-dev \
`# django-extensions` \
graphviz-dev \
`# hitch` \
py-setuptools \
python3-dev \
py-virtualenv \
py2-pip \
firefox-esr \
automake \
libtool \
readline \
readline-dev \
sqlite-dev \
libxml2 \
libxml2-dev \
libressl-dev \
bzip2-dev \
wget \
curl \
llvm4 \
`# federation` \
libxml2-dev \
libxslt-dev \
python3-dev \
`# socialhome` \
git \
linux-headers \
nodejs \
nodejs-npm \
postgresql \
redis

rc-service postgresql start
rc-update add postgresql

rc-service redis start
rc-update add redis

0 comments on commit 27ab93d

Please sign in to comment.
You can’t perform that action at this time.