[READ-ONLY] Mirror of https://github.com/jackmawer/DockerFreeSO. Dokerized version of FreeSO's Server. (Coming soon)
0

Configure Feed

Select the types of activity you want to include in your feed.

Initial source commit

Tomas CW (Oct 3, 2016, 2:35 AM EDT) 75ce3002

+316
+5
README.md
··· 1 + # Dokerized FreeSO Server 2 + 3 + ![UNLICENSE](https://cdn.rawgit.com/tomascw/tms-licenses/master/license-UNLICENSE-lightgrey.svg) 4 + 5 + This is a Dokerized version of FreeSO's Server. At the moment, it only has the bare minium requirements until it's completed.
+24
UNLICENSE
··· 1 + This is free and unencumbered software released into the public domain. 2 + 3 + Anyone is free to copy, modify, publish, use, compile, sell, or 4 + distribute this software, either in source code form or as a compiled 5 + binary, for any purpose, commercial or non-commercial, and by any 6 + means. 7 + 8 + In jurisdictions that recognize copyright laws, the author or authors 9 + of this software dedicate any and all copyright interest in the 10 + software to the public domain. We make this dedication for the benefit 11 + of the public at large and to the detriment of our heirs and 12 + successors. We intend this dedication to be an overt act of 13 + relinquishment in perpetuity of all present and future rights to this 14 + software under copyright law. 15 + 16 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 + IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 + OTHER DEALINGS IN THE SOFTWARE. 23 + 24 + For more information, please refer to <http://unlicense.org/>
+56
docker-freeso-rpi/Dockerfile
··· 1 + # This is free and unencumbered software released into the public domain. 2 + # 3 + # Anyone is free to copy, modify, publish, use, compile, sell, or 4 + # distribute this software, either in source code form or as a compiled 5 + # binary, for any purpose, commercial or non-commercial, and by any 6 + # means. 7 + # 8 + # In jurisdictions that recognize copyright laws, the author or authors 9 + # of this software dedicate any and all copyright interest in the 10 + # software to the public domain. We make this dedication for the benefit 11 + # of the public at large and to the detriment of our heirs and 12 + # successors. We intend this dedication to be an overt act of 13 + # relinquishment in perpetuity of all present and future rights to this 14 + # software under copyright law. 15 + # 16 + # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 + # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 + # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 + # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 + # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 + # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 + # OTHER DEALINGS IN THE SOFTWARE. 23 + # 24 + # For more information, please refer to <http://unlicense.org/> 25 + 26 + FROM resin/rpi-raspbian:jessie-20160831 27 + MAINTAINER Tomas CW 28 + 29 + # Add configuration script 30 + ADD mariadb-conf.sh /mariadb-conf.sh 31 + ADD config-server.sh /config-server.sh 32 + ADD run.sh /run.sh 33 + RUN chmod 755 /*.sh 34 + 35 + # MySQL environment variables 36 + ENV MYSQL_FSO_DATABASE fsodb 37 + ENV MYSQL_FSO_USER freeso 38 + ENV MYSQL_FSO_PASSWORD hackme 39 + 40 + # Set up server 41 + RUN apt update && \ 42 + apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ 43 + echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list && \ 44 + apt update && \ 45 + apt install git mono-complete mariadb-server -y && \ 46 + apt clean 47 + 48 + # Configure server 49 + 50 + 51 + # Organize volumes 52 + VOLUME ["/var/lib/mysql"] 53 + 54 + # EXPOSE 80 433 55 + 56 + # CMD ["/run.sh"]
+32
docker-freeso-rpi/config-server.sh
··· 1 + #!/bin/sh 2 + 3 + # This is free and unencumbered software released into the public domain. 4 + # 5 + # Anyone is free to copy, modify, publish, use, compile, sell, or 6 + # distribute this software, either in source code form or as a compiled 7 + # binary, for any purpose, commercial or non-commercial, and by any 8 + # means. 9 + # 10 + # In jurisdictions that recognize copyright laws, the author or authors 11 + # of this software dedicate any and all copyright interest in the 12 + # software to the public domain. We make this dedication for the benefit 13 + # of the public at large and to the detriment of our heirs and 14 + # successors. We intend this dedication to be an overt act of 15 + # relinquishment in perpetuity of all present and future rights to this 16 + # software under copyright law. 17 + # 18 + # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 + # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 + # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 + # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 22 + # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 23 + # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 + # OTHER DEALINGS IN THE SOFTWARE. 25 + # 26 + # For more information, please refer to <http://unlicense.org/> 27 + 28 + ./mariadb-conf.sh 29 + ./apache-conf.sh 30 + 31 + echo "=> Apache started..." 32 + /usr/sbin/apache2ctl -D && tail -f /dev/null
+53
docker-freeso-rpi/mariadb-conf.sh
··· 1 + #!/bin/bash 2 + 3 + # This is free and unencumbered software released into the public domain. 4 + # 5 + # Anyone is free to copy, modify, publish, use, compile, sell, or 6 + # distribute this software, either in source code form or as a compiled 7 + # binary, for any purpose, commercial or non-commercial, and by any 8 + # means. 9 + # 10 + # In jurisdictions that recognize copyright laws, the author or authors 11 + # of this software dedicate any and all copyright interest in the 12 + # software to the public domain. We make this dedication for the benefit 13 + # of the public at large and to the detriment of our heirs and 14 + # successors. We intend this dedication to be an overt act of 15 + # relinquishment in perpetuity of all present and future rights to this 16 + # software under copyright law. 17 + # 18 + # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 + # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 + # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 + # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 22 + # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 23 + # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 + # OTHER DEALINGS IN THE SOFTWARE. 25 + # 26 + # For more information, please refer to <http://unlicense.org/> 27 + 28 + if [ ! -f /mysql_configured ]; then 29 + echo "=> MySQL not configured yet, configuring MySQL ..." 30 + 31 + echo "=> Setting MySQL bind address to have access from the Docker host" 32 + sed -i 's/^bind-address\s*=.*$/bind-address = "0.0.0.0"/' /etc/mysql/my.cnf 33 + 34 + echo "=> Starting MySQL" 35 + /etc/init.d/mysql start & 36 + 37 + echo "=> Waiting till MySQL is started" 38 + mysqladmin --wait=30 ping > /dev/null 2>&1 39 + 40 + echo "=> Creating database" 41 + mysqladmin create $MYSQL_FSO_DATABASE 42 + 43 + echo "=> Creating database user and granting external access"; 44 + mysql -uroot -e "CREATE USER '$MYSQL_FSO_USER'@'%' IDENTIFIED BY '$MYSQL_FSO_PASSWORD';" 45 + mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO '$MYSQL_FSO_USER'@'%' WITH GRANT OPTION;" 46 + 47 + touch /mysql_configured 48 + else 49 + echo "=> MySQL is already configured" 50 + 51 + echo "=> Starting MySQL" 52 + /etc/init.d/mysql start 53 + fi
docker-freeso-rpi/run.sh

This is a binary file and will not be displayed.

+61
docker-freeso/Dockerfile
··· 1 + # This is free and unencumbered software released into the public domain. 2 + # 3 + # Anyone is free to copy, modify, publish, use, compile, sell, or 4 + # distribute this software, either in source code form or as a compiled 5 + # binary, for any purpose, commercial or non-commercial, and by any 6 + # means. 7 + # 8 + # In jurisdictions that recognize copyright laws, the author or authors 9 + # of this software dedicate any and all copyright interest in the 10 + # software to the public domain. We make this dedication for the benefit 11 + # of the public at large and to the detriment of our heirs and 12 + # successors. We intend this dedication to be an overt act of 13 + # relinquishment in perpetuity of all present and future rights to this 14 + # software under copyright law. 15 + # 16 + # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 + # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 + # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 + # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 + # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 + # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 + # OTHER DEALINGS IN THE SOFTWARE. 23 + # 24 + # For more information, please refer to <http://unlicense.org/> 25 + 26 + FROM ubuntu:16.04 27 + MAINTAINER Tomas CW 28 + 29 + # Add configuration script 30 + ADD mariadb-conf.sh /mariadb-conf.sh 31 + ADD apache-conf.sh /apache-conf.sh 32 + ADD config-server.sh /config-server.sh 33 + ADD run.sh /run.sh 34 + RUN chmod 755 /*.sh 35 + 36 + # MySQL environment variables 37 + ENV MYSQL_GS_USER gnusocial 38 + ENV MYSQL_GS_PASSWORD hackme 39 + 40 + # Set up server 41 + RUN apt update && \ 42 + apt install git apache2 libapache2-mod-php5 php5 php5-mysql mariadb-server curl -y && \ 43 + apt clean 44 + 45 + # Configure server 46 + RUN cd /var/www/html && \ 47 + git clone https://git.gnu.io/gnu/gnu-social.git -b 1.2.x && \ 48 + mv htaccess.sample .htaccess && \ 49 + mkdir -p /var/www/html/avatar && \ 50 + mkdir -p /var/www/html/file && \ 51 + chown -R www-data:www-data /var/www/html && \ 52 + chmod -R g+w /var/www/html/ && \ 53 + a2enmod rewrite 54 + 55 + # Organize volumes 56 + VOLUME ["/var/www/html/file", "/var/www/html/avatar", "/var/lib/mysql", "/etc/mysql"] 57 + WORKDIR /var/www/html 58 + 59 + EXPOSE 80 433 60 + 61 + CMD ["/run.sh"]
+32
docker-freeso/config-server.sh
··· 1 + #!/bin/sh 2 + 3 + # This is free and unencumbered software released into the public domain. 4 + # 5 + # Anyone is free to copy, modify, publish, use, compile, sell, or 6 + # distribute this software, either in source code form or as a compiled 7 + # binary, for any purpose, commercial or non-commercial, and by any 8 + # means. 9 + # 10 + # In jurisdictions that recognize copyright laws, the author or authors 11 + # of this software dedicate any and all copyright interest in the 12 + # software to the public domain. We make this dedication for the benefit 13 + # of the public at large and to the detriment of our heirs and 14 + # successors. We intend this dedication to be an overt act of 15 + # relinquishment in perpetuity of all present and future rights to this 16 + # software under copyright law. 17 + # 18 + # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 + # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 + # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 + # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 22 + # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 23 + # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 + # OTHER DEALINGS IN THE SOFTWARE. 25 + # 26 + # For more information, please refer to <http://unlicense.org/> 27 + 28 + ./mariadb-conf.sh 29 + ./apache-conf.sh 30 + 31 + echo "=> Apache started..." 32 + /usr/sbin/apache2ctl -D && tail -f /dev/null
+53
docker-freeso/mariadb-conf.sh
··· 1 + #!/bin/bash 2 + 3 + # This is free and unencumbered software released into the public domain. 4 + # 5 + # Anyone is free to copy, modify, publish, use, compile, sell, or 6 + # distribute this software, either in source code form or as a compiled 7 + # binary, for any purpose, commercial or non-commercial, and by any 8 + # means. 9 + # 10 + # In jurisdictions that recognize copyright laws, the author or authors 11 + # of this software dedicate any and all copyright interest in the 12 + # software to the public domain. We make this dedication for the benefit 13 + # of the public at large and to the detriment of our heirs and 14 + # successors. We intend this dedication to be an overt act of 15 + # relinquishment in perpetuity of all present and future rights to this 16 + # software under copyright law. 17 + # 18 + # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 + # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 + # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 + # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 22 + # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 23 + # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 + # OTHER DEALINGS IN THE SOFTWARE. 25 + # 26 + # For more information, please refer to <http://unlicense.org/> 27 + 28 + if [ ! -f /mysql_configured ]; then 29 + echo "=> MySQL not configured yet, configuring MySQL ..." 30 + 31 + echo "=> Setting MySQL bind address to have access from the Docker host" 32 + sed -i 's/^bind-address\s*=.*$/bind-address = "0.0.0.0"/' /etc/mysql/my.cnf 33 + 34 + echo "=> Starting MySQL" 35 + /etc/init.d/mysql start & 36 + 37 + echo "=> Waiting till MySQL is started" 38 + mysqladmin --wait=30 ping > /dev/null 2>&1 39 + 40 + echo "=> Creating database" 41 + mysqladmin create $MYSQL_FSO_DATABASE 42 + 43 + echo "=> Creating database user and granting external access"; 44 + mysql -uroot -e "CREATE USER '$MYSQL_FSO_USER'@'%' IDENTIFIED BY '$MYSQL_FSO_PASSWORD';" 45 + mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO '$MYSQL_FSO_USER'@'%' WITH GRANT OPTION;" 46 + 47 + touch /mysql_configured 48 + else 49 + echo "=> MySQL is already configured" 50 + 51 + echo "=> Starting MySQL" 52 + /etc/init.d/mysql start 53 + fi
docker-freeso/run.sh

This is a binary file and will not be displayed.