Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plenty of corrections to the container... #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
FROM debian:latest
RUN apt-get -y -q update
# FrePPLe binaries are compiled for Ubuntu 14.04
FROM ubuntu:14.04

RUN apt-get -y install python3-pip libpython3.4
# Update environment
RUN apt-get -y -q update
RUN apt-get -y install python3 python3-pip wget
RUN apt-get -y install libxerces-c3.1 apache2 libapache2-mod-wsgi-py3 python3-psycopg2
RUN apt-get -y install vim wget
RUN pip3 install openpyxl setuptools

ADD resources/ /resources
# Install frePPle
ADD resources/ /resources
WORKDIR /resources
RUN pip3 install -r requirements.txt
RUN dpkg -i frepple_*.deb
RUN apt-get -f -y -q install

RUN tar -zxvf frepple_3.0.tar.gz
WORKDIR /resources/django-frepple_3.0
RUN python3 setup.py install
RUN pip3 install djangorestframework
# Configure apache web server
RUN a2enmod expires
RUN a2enmod wsgi
RUN a2enmod ssl
RUN a2ensite default-ssl
RUN a2ensite frepple

# Expose HTTP and HTTPS ports to the outside world
EXPOSE 80 443

# Create the database schema and start apache
ADD settings.py /etc/frepple/djangosettings.py
ADD start.sh /usr/bin/startfrepple
CMD ["startfrepple"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# frepple-docker

Containerize [frepple](http://frepple.com/).
This project defines a [docker](https://www.docker.com/) container to deploy [frepple](http://frepple.com/).
Binary file removed resources/frepple-dev_3.0.beta-1_amd64.deb
Binary file not shown.
Binary file removed resources/frepple-doc_3.0.beta-1_all.deb
Binary file not shown.
Binary file not shown.
Binary file removed resources/frepple_3.0.tar.gz
Binary file not shown.
10 changes: 10 additions & 0 deletions resources/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CherryPy >= 3.2.2
djangorestframework >= 3.3.1
djangorestframework-bulk >= 0.2.1
djangorestframework-filters >= 0.6.0
et-xmlfile >= 1.0.0
html5lib >= 0.999
jdcal >= 1.0
Markdown >= 2.6.4
openpyxl >= 2.3.0-b2
https://github.com/frePPLe/django/tarball/frepple_3.0
4 changes: 4 additions & 0 deletions resources/source.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

These files are obtained from:
- https://raw.githubusercontent.com/frePPLe/frePPLe/3.0/contrib/django/requirements.txt
- http://sourceforge.net/projects/frepple/files/frepple/3.0/Linux%20Debian/frepple_3.0-1_amd64.deb/download
9 changes: 8 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/sh

echo "Migrate the database schema"
frepplectl migrate --noinput
frepplectl runserver 0.0.0.0:8000

echo "Running the apache web server"
rm -f /usr/local/apache2/logs/httpd.pid
. /etc/apache2/envvars
exec /usr/sbin/apache2 -DFOREGROUND