Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-libreboard

Run libreboard on Docker.

Build docker image

$ git clone https://github.com/miurahr/docker-libreboard.git
$ cd docker-libreboard
$ docker build -t libreboard .

Usage

Provisionings are placed in docker-compose.yml.
Please edit it before start.

$ cp docker-compose.yml.example docker-compose.yml
$ vi docker-compose.yml
$ chmod +777 logs
$ docker-compose up -d

FAQ

  • I've got EACCESS error when invoke docker-compose up -d

    It is because you may forget adding write permission to logs directory on host.
    Please check your volumes configuration in docker-compose.yml and directory
    permission.

  • Why it is so different Dockerfile than the way Libreboard official document?

    Libreboard developers may aim to simplify a procedure to use libreboard.
    It is basically good, but it hide a procedure under the hood.
    I love an explainable way that users and developers can understand and reproduce a way
    if they want.
    That is because my Dockerfile is made from distribution base.

Docker Pull Command
Owner
miurahr
Source Repository

Comments (7)
nobby
2 years ago

Succeeded to deploy Libreboard in local host machine upon changing access mode of the directory and files.

Japanese language selection is effective when using on-line version of Libreboard, however I can not select Japanese language in case of this docker image. Input and output of Japanese characters can be well done.

Please give me a hint to avail changing UI to Japanese.

Regards/ nobby

miurahr
2 years ago

Now updated the docker-compose sample configuration. Please refer up-to-date example on source tree.
Thanks and sorry for your patience!

miurahr
2 years ago

In example docker-compose.yml, It try to bind log directory in host path.
You may want to 'chmod + 777 /tmp/libreboard-logs' for log write permission,
because libreboard process run in user app(uid=1000).

nobby
2 years ago

Hello again. In my case command "docker-compose up -d" produced following error with host machine centos6.6 . The error can be reproduced with another host machine Ubuntu14.04.

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
227c42b65e4e mongo:latest "/entrypoint.sh mong 42 seconds ago Up 41 seconds 27017/tcp dockerlibreboard_mongo_1

docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a062e5dc0066 miurahr/libreboard:latest "/usr/bin/node /home 38 seconds ago Exited (8) 29 seconds ago dockerlibreboard_libreboard_1
227c42b65e4e mongo:latest "/entrypoint.sh mong 51 seconds ago Up 50 seconds 27017/tcp dockerlibreboard_mongo_1

docker logs dockerlibreboard_libreboard_1

stream.js:94
throw er; // Unhandled stream error in pipe.
^

Error: EACCES, open '/home/app/logs/stdout.log'

Content of docker.compose.yml is as follows:

cat docker-compose.yml

mongo:
image: mongo
libreboard:
image: miurahr/libreboard
environment:

- MONGO_URL=mongodb://mongo:27017/libreboard
- ROOT_URL=http://example.com

links:

- mongo:mongo

volumes:

- /tmp/libreboard-logs:/home/app/logs

ports:

- 5555:5555

Please give a suggestion how I can resolve this error.

nobby

miurahr
2 years ago

Here is quite different deployment rather than libreboard's readme descriptions.
The latter recommend using a meteor docker-image, but I've started from jessie debian base.
DIfference is as follows:

  • meteor is installed under /home/app/.meteor/ as user 'app'
  • libreboard source is placed in /home/app/libreboard as been git-cloned.
  • Build image is placed in /home/app/build/bundle/
  • Application process is managed with 'forever' npm module. pls. see libreboard-run.js
  • Forever will watch /home/app/build and restart when detecting change. It will be convenient to update deployment.
miurahr
2 years ago

Thank nobby for pointing out! The fix has pushed on source.

nobby
2 years ago

I found a miss-spelling in the docker-compose.yml.example though it's mere a sample file.

environments ==> environment