Git Product home page Git Product logo

docker-restyaboard's Introduction

Docker Restyaboard

Build Restyaboard in Docker.

Quick Start

Build image and Run container using docker-compose.

git clone https://github.com/namikingsoft/docker-restyaboard.git
cd docker-restyaboard

docker-compose up -d

Please wait a few minutes to complete initialize.

Check URL

http://(ServerIP):1234

Username: admin
Password: restya

Username: user
Password: restya

Change Restyaboard Version

Edit restyaboard/Dockerfile.
Available version is https://github.com/RestyaPlatform/board/releases

ENV restyaboard_version=REPLACE_ME

In case of upgrade version, rebuild image and recreate container.

docker-compose build
docker-compose up -d

If you want to upgrade database, e.g. (recommend to backup database before upgrade)

docker-compose run --rm restyaboard bash

export PGHOST=$POSTGRES_PORT_5432_TCP_ADDR
export PGPORT=$POSTGRES_PORT_5432_TCP_PORT
export PGUSER=$POSTGRES_ENV_POSTGRES_USER
export PGPASSWORD=$POSTGRES_ENV_POSTGRES_PASSWORD
...
psql -d restyaboard -f sql/upgrade-0.1.3-0.1.4.sql
psql -d restyaboard -f sql/upgrade-0.1.4-0.1.5.sql
...
exit

License

OSL 3.0 fits in Restyaboard.

docker-restyaboard's People

Contributors

namikingsoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-restyaboard's Issues

Rewrite URL - Alias DNS

Hi all,

I created a DNS alias for my restyaboard server. I am able to access with alias but when I navigate on restyaboard, the URL change and it's replaced by the name of the server.

I didn't find where i can change that

Thanks

RestyaBoard Docker Install

How do I locate where to install the addon apps for restyaboard+docker setup? I am looking to install Zapier addon and don't know where to unzip it to.

ElasticSearch config for docker?

Hi @namikingsoft ,
Do you have the step by step process to configure ElasticSearch within the Restyaboard Docker container? cron is setup to run /usr/share/nginx/html/server/php/shell/indexing_to_elasticsearch.sh. If I try to run indexing_to_elasticsearch.sh within the container manually I get the error below. Any help with this would be greatly appreciated.

God bless,

Warren

Error:: couldn't connect to host
Not Found.

Failed to upgrade, can't go back

@namikingsoft Thanks but it doesn't upgrade. I deleted and cloned the docker-restyaboard folder again then upgraded, I get a blank page with a rapid loading bar on the top that disappears (I purged the cache). I can't go back to an earlier version either.
This is the errors I get in the Chrome console:

GET http://manager.openrobotics.io/api/v1/settings.json?token=2ba9c1a05703a01b29ec556df1b20c0f16b2c108&_=1460363473411 401 (Authentication failed)

GET http://freegeoip.net/json/?callback=jQuery18309600193521255926_1460363473170 net::ERR_CONNECTION_TIMED_OUT

Thanks by advance for your help

Errors while standing up restyaboard container

I am seeing the following errors while trying to stand up the containers:

user@host  ~/repos/test/docker-restyaboard   master  docker-compose up -d                                                                                                                                ✓  7149  06:58:23
Creating dockerrestyaboard_data_1...
Creating dockerrestyaboard_elasticsearch_1...
Creating dockerrestyaboard_postgres_1...
Building restyaboard...
Step 0 : FROM centos:7
 ---> 0f73ae75014f
Step 1 : RUN yum update -y
 ---> Using cache
 ---> 1de2843f57b4
Step 2 : RUN yum install -y git bzip2 postgresql cronie
 ---> Using cache
 ---> ca09b8dd1303
Step 3 : RUN rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
 ---> Using cache
 ---> f41ab6a59b50
Step 4 : RUN rpm -ivh http://ftp-srv2.kddilabs.jp/Linux/packages/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
 ---> Using cache
 ---> e02059c80785
Step 5 : RUN sed -i 's/^enabled=1$/enabled=0/g' /etc/yum.repos.d/epel.repo
 ---> Using cache
 ---> 10fc1b5a1d62
Step 6 : RUN rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
 ---> Using cache
 ---> 5bfac89f9dd5
Step 7 : RUN rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
 ---> Using cache
 ---> f247b68406cd
Step 8 : COPY etc/yum.repos.d/nginx.repo /etc/yum.repos.d/
 ---> Using cache
 ---> 73d071ae6b72
Step 9 : RUN yum install -y --enablerepo=nginx nginx
 ---> Using cache
 ---> 74ef5e81b7fb
Step 10 : RUN yum install -y postfix
 ---> Using cache
 ---> 0220eb5499e6
Step 11 : RUN yum install -y --enablerepo=remi-php56 php php-fpm php-pgsql php-mbstring php-pecl-imagick
 ---> Using cache
 ---> bce3a55c8726
Step 12 : RUN sed -i 's/^user = apache$/user = nginx/g' /etc/yum.repos.d/epel.repo
 ---> Using cache
 ---> 80225eb2eef0
Step 13 : RUN sed -i 's/^group = apache$/group = nginx/g' /etc/yum.repos.d/epel.repo
 ---> Using cache
 ---> fac60b8dabb5
Step 14 : RUN yum install -y --enablerepo=epel nodejs npm
 ---> Using cache
 ---> c0115ec89efa
Step 15 : RUN npm install -g grunt-cli
 ---> Using cache
 ---> a81989206fa4
Step 16 : RUN rm -rf /usr/share/nginx/html
 ---> Using cache
 ---> 13754e164abd
Step 17 : RUN git clone https://github.com/RestyaPlatform/board.git /usr/share/nginx/html
 ---> Using cache
 ---> c2e086c0283d
Step 18 : WORKDIR /usr/share/nginx/html
 ---> Using cache
 ---> 7a6b4b17f0c7
Step 19 : RUN cp restyaboard.conf /etc/nginx/conf.d
 ---> Using cache
 ---> 7240ee3b7fc4
Step 20 : RUN cp -R media /tmp
 ---> Using cache
 ---> b50f50982f8b
Step 21 : RUN npm install
 ---> Running in 6dfdba4c9e3a

...<truncated output>...

npm http 200 https://registry.npmjs.org/param-case/-/param-case-1.1.1.tgz
npm ERR! Error: ENOENT, lstat '/usr/share/nginx/html/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/cli/node_modules/glob/test/bash-results.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 4.0.9-boot2docker
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /usr/share/nginx/html
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR! path /usr/share/nginx/html/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/cli/node_modules/glob/test/bash-results.json
npm ERR! fstream_path /usr/share/nginx/html/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/cli/node_modules/glob/test/bash-results.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:108:15)
npm ERR! Error: ENOENT, lstat '/usr/share/nginx/html/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/uglify-js/lib/parse.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 4.0.9-boot2docker
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /usr/share/nginx/html
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.3.6
npm ERR! path /usr/share/nginx/html/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/uglify-js/lib/parse.js
npm ERR! fstream_path /usr/share/nginx/html/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/uglify-js/lib/parse.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:108:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/share/nginx/html/npm-debug.log
npm ERR! not ok code 0

Looking at the log that was generated I get:

802 info postuninstall [email protected]
803 error Error: shasum check failed for /root/tmp/npm-1-LWSac_l8/1442409427323-0.12604375556111336/tmp.tgz
803 error Expected: 8f3499c5245d346d682e5b0d3b40767e09f1a92c
803 error Actual:   da39a3ee5e6b4b0d3255bfef95601890afd80709
803 error     at /usr/lib/node_modules/sha/index.js:38:8
803 error     at ReadStream.<anonymous> (/usr/lib/node_modules/sha/index.js:85:7)
803 error     at ReadStream.emit (events.js:117:20)
803 error     at _stream_readable.js:944:16
803 error     at process._tickCallback (node.js:442:13)
804 error If you need help, you may report this log at:
804 error     <http://github.com/isaacs/npm/issues>
804 error or email it to:
804 error     <[email protected]>
805 error System Linux 4.0.9-boot2docker
806 error command "node" "/usr/bin/npm" "install"
807 error cwd /usr/share/nginx/html
808 error node -v v0.10.36
809 error npm -v 1.3.6
810 verbose exit [ 1, true ]

Anyway to fix the checksum error?

let's encrypt ssl https feature

Hi, someone know how run it? ERR_SSL_PROTOCOL_ERROR

deploy script

sudo su
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
cd /opt/letsencrypt/
[----> choose standalone]
  /opt/letsencrypt/letsencrypt-auto certonly
[----> certs path]
/etc/letsencrypt/live/[sitemane]
exit
git clone https://github.com/namikingsoft/docker-restyaboard.git restyaboard
cd restyaboard
[----> change 443 instead 1234 ]
nano docker-compose.yml
  ports:
    - 443:80
  volumes:
    - certs:/etc/letsencrypt/live/[sitemane]
docker-compose up -d

output

Successfully built d88cb20591b6
WARNING: Image for service restyaboard was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating restyaboard_data_1
Creating restyaboard_postgres_1
Creating restyaboard_elasticsearch_1
Creating restyaboard_restyaboard_1
user@ubuntu:~/dpl/restyaboard$ docker ps -a
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS              PORTS                 NAMES
f0afe7887ec8        restyaboard_restyaboard   "/docker-entrypoint.s"   4 minutes ago       Up 4 minutes        0.0.0.0:443->80/tcp   restyaboard_restyaboard_1
241655e31e66        elasticsearch             "/docker-entrypoint.s"   4 minutes ago       Up 4 minutes        9200/tcp, 9300/tcp    restyaboard_elasticsearch_1
a6abfcf020b6        postgres                  "/docker-entrypoint.s"   4 minutes ago       Up 4 minutes        5432/tcp              restyaboard_postgres_1
c797a2439de4        busybox                   "tail -f /dev/null"      4 minutes ago       Up 4 minutes                              restyaboard_data_1

psql: could not connect to server

Getting the following error messages every a couple of seconds in the CLI, but otherwise the board runs just fine. I have logged in and out on the client side and restarted the server, and everything appears to be persistent. How do I get rid of this msg?

psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

System: Docker Toolbox for OSX (https://www.docker.com/docker-toolbox) installed today on OSX 10.10.5; using "docker run dockerrestyaboard_restyaboard" to run.

Reverse proxy scenarios

As of https://github.com/allmende/docker-restyaboard/commit/ca03cfaa004d8c2fc42f3f358f84716d63b9bfac I am running this behind a self-encrypting reverse proxy simply by adding the following environment variables to the restyaboard container:

      VIRTUAL_HOST: FQDN
      VIRTUAL_PORT: 80
      LETSENCRYPT_HOST: FQDN
      LETSENCRYPT_EMAIL: [email protected]

Unfortunately links, i.e. in a account confirmation email or some in the frontend, are being generated for the wrong protocol scheme.

It is not obvious where this could be set in https://github.com/RestyaPlatform/board/blob/master/server/php/config.inc.php

Should this issue be reported upstream?

Restyaboard Docker install fails

Dear Restya team,

I tried to install Restyaboard on Docker as explained on your website.
It created 4 environments, the first 3 worked fine, but the 4th did not work well. As I understand this environment is the one of the web server.

Could you give me some hints to resolve installation ?

Installing Updates

I'm still pretty new to Docker and Restyaboard, can you explain how I'd go about upgrading from 0.13 to 0.14?

SMTP config?

Hi,

how can I edit the SMTP settings after the docker integration?

Greetings

Restyaboard latest Unable to login

First of all, A big Thank you for doing this.... It makes it so much easier to run restyaboard!!
I just pulled your latest code and built using docker-compose.

It loads the login page but fails to login, though it seems like it recognizes a valid login (it shows an error if I use the wrong password) but it will continue to stay on the login page.

Are you seeing this in your testing?

Version 0.2

Hello, do you plan to upgrade the code for v0.2 ? Because when I put ENV restyaboard_version=v0.2 in the Dockerfile, the build process goes well but the server displays error 502.

Thank you very much for this container.

Don't split command-line for nothing

Splitting a single command into multiple line can be useful, but you're over doing it and it loose sense and legibility.

Instead of

RUN \
 cp -R media /tmp/ &&\
 cp restyaboard.conf /etc/nginx/conf.d &&\
 sed -i 's/^.*listen.mode = 0660$/listen.mode = 0660/'\
  /etc/php5/fpm/pool.d/www.conf &&\
 sed -i 's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|'\
  /etc/nginx/conf.d/restyaboard.conf &&\
 sed -i -e "/fastcgi_pass/a fastcgi_param HTTPS 'off';"\
  /etc/nginx/conf.d/restyaboard.conf

Do

RUN cp -R media /tmp/ \
    && cp restyaboard.conf /etc/nginx/conf.d \
    && sed -i 's/^.*listen.mode = 0660$/listen.mode = 0660/' /etc/php5/fpm/pool.d/www.conf \
    && sed -i 's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|' /etc/nginx/conf.d/restyaboard.conf \
    && sed -i -e "/fastcgi_pass/a fastcgi_param HTTPS 'off';" /etc/nginx/conf.d/restyaboard.conf
  1. each command make sense by itself (you know what command works on what file ;
  2. && at the beginning make it clear that each command happen only if the previous one succeed ;
  3. so you can see the RUN status dependent on the status of all command (due to the &&) ;

Service 'restyaboard' failed to build

While executing command:

sudo docker-compose up -d

I get following message many times:

invoke-rc.d: policy-rc.d denied execution of start

and in the end i get

Service 'restyaboard' failed to build: The command '/bin/sh -c apt-get update -y && apt-get install -y bzip2 curl cron postgresql nginx && apt-get install -y php5 php5-fpm php5-curl php5-pgsql php5-imagick libapache2-mod-php5 && apt-get install -y nodejs nodejs-legacy && curl -L https://npmjs.org/install.sh | sh && npm install -g grunt-cli && echo "postfix postfix/mailname string example.com" | debconf-set-selections && echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections && apt-get install -y postfix' returned a non-zero code: 100

Do you have any solution to this?

httpd-2.4.6-31.el7.centos.1.x86_64 error

I get the following error when running docker-compose up -d on Ubuntu 14.04:

  Installing : httpd-2.4.6-31.el7.centos.1.x86_64                         35/88Error unpacking rpm package httpd-2.4.6-31.el7.centos.1.x86_64

error: unpacking of archive failed on file /usr/sbin/suexec: cpio: cap_set_file
  Installing : hwdata-0.252-7.8.el7_1.x86_64                              36/88
error: httpd-2.4.6-31.el7.centos.1.x86_64: install failed
  Installing : libpciaccess-0.13.1-4.1.el7.x86_64                         37/88

I'm not sure where to start trouble-shooting, but have the entire log here: http://pastebin.com/0QKgAbgK

Thanks for docker-ing this btw!

Confirmation of users not possible

@namikingsoft
image
Hello, I can't get the new users confirmed by mail. The link leads to a white page with restyaboard logo, and I get these errors in the console. And it doesn't confirm the user...

Please help us, we were used to this great web app so we are very concerned that we need to change for another due to these kind of issues...

ERROR: Service 'restyaboard' failed to build: devmapper: Error mounting /dev/mapper/docker-8:… on '/var/lib/docker/de vicemapper/mnt/… : no such file or directory

Running

docker-compose up -d

I got this error

Setting up postgresql (9.1+134wheezy4) ...
Setting up psmisc (22.19-1+deb7u1) ...
Setting up unzip (6.0-8+deb7u5) ...
Setting up zip (3.0-6) ...
Setting up perl-modules (5.14.2-21+deb7u3) ...
Setting up perl (5.14.2-21+deb7u3) ...
update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode
Setting up sgml-base (1.26+nmu4) ...
Setting up xml-core (0.13+nmu2) ...
Setting up libswitch-perl (2.16-2) ...
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 171 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for sgml-base ...
ERROR: Service 'restyaboard' failed to build: devmapper: Error mounting '/dev/mapper/docker-8:1-1046121-927aea716f6a49bcdb9db2369a9f8bcb52815d2e6911384b64642eedbd93a3ad' on '/var/lib/docker/de
vicemapper/mnt/927aea716f6a49bcdb9db2369a9f8bcb52815d2e6911384b64642eedbd93a3ad': no such file or directory

LDAP Authentication not working

Hello,

I can't figure it why, but the authentication with LDAP doesn't work with this Docker container.
I tried with a manually created container, with the same LDAP configuration, and it works.

Do you have any idea where the problem comes from ?

Thanks by advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.