Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add fedora based devel images
Roland Geider3fe67e9a38ee
diff --git a/README.rst b/README.rstindex 8895281d6..f9759c73c 100644--- a/README.rst+++ b/README.rst@@ -39,17 +39,21 @@ Development version (from git)and stable state.-1) Install the necessary packages and their dependencies in a virtualenv+1) Install the necessary packages::$ sudo apt-get install python3-dev python-virtualenv nodejs nodejs-legacy npm libjpeg8-dev zlib1g-dev git- $ virtualenv --python python3 venv-django- $ source venv-django/bin/activate-On fedora 23 ::++On fedora 23++::$ sudo dnf install python3-devel python-virtualenv nodejs npm libjpeg-turbo-devel zlib-devel git++Then install the python packages from pypi in the virtualenv::+$ virtualenv --python python3 venv-django$ source venv-django/bin/activate@@ -78,6 +82,35 @@ the comments in the documentation (development chapter) about this::$ python manage.py runserver+Docker images+~~~~~~~~~~~~~++Alternatively, there are docker images for development as well, ``wger/devel``+and ``wger/devel-fedora``. Both images contain an instance of the application+running with django's development server using a sqlite database and can be+used to quickly setup a development instance (vim and tmux are already+installed). The only difference is that devel has an ubuntu base image while+devel-fedora uses fedora.++::++ $ docker run -ti --name wger.devel --publish 8000:8000 wger/devel++Then, *within the docker image*, activate the virtualenv++::++ $ source ~/venv/bin/activate++and start the development server++::++ $ python manage.py runserver 0.0.0.0:8000++Then just open http://localhost:8000 and log in as: **admin**, password **admin**++Stable version (from PyPI)--------------------------diff --git a/extras/docker/apache/README.md b/extras/docker/apache/README.mdindex c93c0eee8..d1bdae236 100644--- a/extras/docker/apache/README.md+++ b/extras/docker/apache/README.md@@ -1,4 +1,5 @@-+Demo image for wger+===================Thank you for downloading wger Workout Manager. wger (ˈvɛɡɐ) is a free, opensource web application that manages your exercises and personal workouts, weightand diet plans. It can also be used as a simple gym management utility, providing@@ -8,7 +9,7 @@ as well, for easy integration with other projects and tools.It is written with python/django and uses jQuery and some D3js for charts.Installation-============+------------This docker image contains an instance of the application running as a WSGIprocess under apache with a sqlite database. It is useful to just try it out and@@ -20,7 +21,7 @@ play around. To start it:Then just open http://localhost:8000 and log in as: **admin**, password **admin**Contact-=======+-------Feel free to contact us if you found this useful or if there was something thatdidn't behave as you expected. We can't fix what we don't know about, so please@@ -33,7 +34,7 @@ file a bug anyway.* issue tracker: https://github.com/rolandgeider/wger/issuesSources-=======+-------All the code and the content is freely available:@@ -42,7 +43,7 @@ All the code and the content is freely available:Licence-=======+-------The application is licenced under the Affero GNU General Public License 3 orlater (AGPL 3+).diff --git a/extras/docker/base/Dockerfile b/extras/docker/base/Dockerfileindex 8fcc6b533..55687c035 100644--- a/extras/docker/base/Dockerfile+++ b/extras/docker/base/Dockerfile@@ -1,5 +1,5 @@#-# Base Dockerimage for wger images+# Base Docker image for wger images### This dockerfile simply installs all common dependencies for thediff --git a/extras/docker/base/README.md b/extras/docker/base/README.mdnew file mode 100644index 000000000..e9add37e0--- /dev/null+++ b/extras/docker/base/README.md@@ -0,0 +1,43 @@+Development image for wger - Base image+===================================================+This is the base image for some of the other wger images and offers no+functionality, it's only use is to provide some common dependencies.++If you want to develop, try either ``wger/devel`` oder ``wger/devel-fedora``.+++Contact+-------++Feel free to contact us if you found this useful or if there was something that+didn't behave as you expected. We can't fix what we don't know about, so please+report liberally. If you're not sure if something is a bug or not, feel free to+file a bug anyway.++* twitter: https://twitter.com/wger_de+* mailing list: https://groups.google.com/group/wger / [email protected], no registration needed+* IRC: channel #wger on freenode.net, webchat: http://webchat.freenode.net/?channels=wger+* issue tracker: https://github.com/rolandgeider/wger/issues++Sources+-------++All the code and the content is freely available:++* Main repository: https://github.com/rolandgeider/wger+* Mirror: https://bitbucket.org/rolandgeider/wger++Licence+-------++The application is licenced under the Affero GNU General Public License 3 or+later (AGPL 3+).++The initial exercise and ingredient data is licensed additionally under one of+the Creative Commons licenses, see the individual exercises for more details.++The documentation is released under a CC-BY-SA either version 4 of the License,+or (at your option) any later version.++Some images where taken from Wikipedia, see the SOURCES file in their respective+folders for more details.diff --git a/extras/docker/development-fedora/Dockerfile b/extras/docker/development-fedora/Dockerfilenew file mode 100644index 000000000..cd61e5473--- /dev/null+++ b/extras/docker/development-fedora/Dockerfile@@ -0,0 +1,43 @@+#+# Docker image for wger development on a fedora base image+#+# Please consult the documentation for usage+# docker build -t wger/devel-fedora .+# docker run -ti --name wger.devel-fedora --publish 8000:8000 wger/devel-fedora+# (in docker) source ~/venv/bin/activate+# (in docker) python manage.py runserver 0.0.0.0:8000+#+#+FROM fedora:23+MAINTAINER Roland Geider <[email protected]>++# Install dependencies+RUN dnf update;\+ dnf install -y python3-devel python-virtualenv \+ nodejs npm libjpeg-turbo-devel zlib-devel git \+ tmux sudo++# Add wger user+RUN adduser wger+RUN echo "wger ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/wger+EXPOSE 8000+++# Set up the application+USER wger+RUN git clone https://github.com/rolandgeider/wger.git /home/wger/src++WORKDIR /home/wger/src+RUN virtualenv --python python3 /home/wger/venv+RUN . /home/wger/venv/bin/activate \+ && pip install --upgrade pip \+ && pip install -r requirements_devel.txt \+ && invoke create_settings \+ --settings-path /home/wger/src/settings.py \+ --database-path /home/wger/db/database.sqlite \+ && invoke bootstrap_wger \+ --settings-path /home/wger/src/settings.py \+ --no-start-server+++CMD ["/bin/bash"]\ No newline at end of filediff --git a/extras/docker/development-fedora/README.md b/extras/docker/development-fedora/README.mdnew file mode 100644index 000000000..6ec2476b4--- /dev/null+++ b/extras/docker/development-fedora/README.md@@ -0,0 +1,65 @@+Development image for wger - Fedora based+=========================================+Thank you for downloading wger Workout Manager. wger (ˈvɛɡɐ) is a free, open+source web application that manages your exercises and personal workouts, weight+and diet plans. It can also be used as a simple gym management utility, providing+different administrative roles (trainer, manager, etc.). It offers a REST API+as well, for easy integration with other projects and tools.++It is written with python/django and uses jQuery and some D3js for charts.++Installation+------------++This docker image contains an instance of the application running with django's+development server using a sqlite database. It can be used to quickly setup a+development instance (vim and tmux are already installed):++```docker run -ti --name wger.devel-fedora --publish 8000:8000 wger/devel-fedora```++Then, *within the docker image*, activate the virtualenv++```source ~/venv/bin/activate```++and start the development server++```python manage.py runserver 0.0.0.0:8000```++Then just open http://localhost:8000 and log in as: **admin**, password **admin**+++Contact+-------++Feel free to contact us if you found this useful or if there was something that+didn't behave as you expected. We can't fix what we don't know about, so please+report liberally. If you're not sure if something is a bug or not, feel free to+file a bug anyway.++* twitter: https://twitter.com/wger_de+* mailing list: https://groups.google.com/group/wger / [email protected], no registration needed+* IRC: channel #wger on freenode.net, webchat: http://webchat.freenode.net/?channels=wger+* issue tracker: https://github.com/rolandgeider/wger/issues++Sources+-------++All the code and the content is freely available:++* Main repository: https://github.com/rolandgeider/wger+* Mirror: https://bitbucket.org/rolandgeider/wger++Licence+-------++The application is licenced under the Affero GNU General Public License 3 or+later (AGPL 3+).++The initial exercise and ingredient data is licensed additionally under one of+the Creative Commons licenses, see the individual exercises for more details.++The documentation is released under a CC-BY-SA either version 4 of the License,+or (at your option) any later version.++Some images where taken from Wikipedia, see the SOURCES file in their respective+folders for more details.diff --git a/extras/docker/development/Dockerfile b/extras/docker/development/Dockerfileindex 1b2d79665..a1b23e311 100644--- a/extras/docker/development/Dockerfile+++ b/extras/docker/development/Dockerfile@@ -1,5 +1,5 @@#-# Dockerimage for wger development+# Docker image for wger development## Please consult the documentation for usage# docker build -t wger/devel .diff --git a/extras/docker/development/README.md b/extras/docker/development/README.mdindex c25100098..d39d52e3c 100644--- a/extras/docker/development/README.md+++ b/extras/docker/development/README.md@@ -1,4 +1,5 @@-+Development image for wger - Ubuntu based+=========================================Thank you for downloading wger Workout Manager. wger (ˈvɛɡɐ) is a free, opensource web application that manages your exercises and personal workouts, weightand diet plans. It can also be used as a simple gym management utility, providing@@ -8,7 +9,7 @@ as well, for easy integration with other projects and tools.It is written with python/django and uses jQuery and some D3js for charts.Installation-============+------------This docker image contains an instance of the application running with django'sdevelopment server using a sqlite database. It can be used to quickly setup a@@ -27,7 +28,7 @@ and start the development serverThen just open http://localhost:8000 and log in as: **admin**, password **admin**Contact-=======+-------Feel free to contact us if you found this useful or if there was something thatdidn't behave as you expected. We can't fix what we don't know about, so please@@ -40,7 +41,7 @@ file a bug anyway.* issue tracker: https://github.com/rolandgeider/wger/issuesSources-=======+-------All the code and the content is freely available:@@ -48,7 +49,7 @@ All the code and the content is freely available:* Mirror: https://bitbucket.org/rolandgeider/wgerLicence-=======+-------The application is licenced under the Affero GNU General Public License 3 orlater (AGPL 3+).