Code Monkey home page Code Monkey logo

docker-bicbucstriim's Introduction

undergrid/bicbucstriim

A container hosting BicBucStriim 1.5 using Alpine Linux 3.7, Apache 2.4 and PHP 7.

Usage

docker create \
        --name bicbucstriim \
        -p 80:80 \
        -p 443:443 \
        -e PUID=<UID> \
        -e PGID=<GID> \
        -e TZ=<timezone> \
        -v /etc/localtime:/etc/localtime:ro \
        -v </path/to/config>:/config \
        -v </path/to/books>:/books:ro \
        undergrid/bicbucstriim

Parameters

The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.

For example the option -p external:internal defines a port mapping from internal to external of the container. So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080. Accessing the server on http://192.168.x.x:8080 (replacing 192.168.x.x with your own IP address or fully qualified domain name) would show you what's running INSIDE the container on port 80.

  • -p 80 - the non-ssl port
  • -p 443 - the ssl port
  • -v /config - container configuration
  • -v /books - the directory containing the calibre library
  • -v /etc/localtime for timesync - see Localtime for important information
  • -e TZ for timezone information, Europe/London - see Localtime for important information
  • -e PGID for for GroupID - see below for explanation
  • -e PUID for for UserID - see below for explanation

It is based on Alpine Linux with S6 overlay.

Localtime

It is important that you either set -v /etc/localtime:/etc/localtime:ro or the TZ variable.

User / Group Identifiers

Sometimes when using data volumes (-v flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user PUID and group PGID. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" TM.

In this instance PUID=1001 and PGID=1001. To find yours use id user as below:

  $ id <dockeruser>
    uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)

Setting up bicbucstriim

With a browser, open https://<your-host>:<ssl-port> where <your-host> is the domain name or IP address where you are hosting the container, and <ssl-port> is the ssl port you assigned on creation of the container. Alternatively use http://<your-host>:<non-ssl-port>.

Log in with the following credentials:

  • Username: admin
  • Password: admin

In the configuration page, set the "Calibre library path" to /books/. Other settings can be configured as you prefer.

Email Settings

Please note that this container does not support the 'PHP Mail' or 'Sendmail' options for sending email. If you wish to enable 'Allow Send-To-Kindle?' your must select 'SMTP' for sending mail and configure the SMTP settings.

Upgrade

To upgrade a current install:

  • Shutdown the container
  • Change to /path/to/config
  • Rename www to www.old
  • Start then Shutdown the container
  • Copy www.old/data over www/data
  • Restart container

The footer of the application should now display the updated version number

Info

Monitor the logs of the container in realtime docker logs -f apache-webdav.

Versions

  • 10.05.22: BicBucStriim version 1.5.3
  • 06.02.19: BicBucStriim version 1.5
  • 19.03.18: Initial Release - BicBucStriim version 1.4.2a

docker-bicbucstriim's People

Contributors

undergrid avatar yanvigdev avatar

Watchers

 avatar  avatar

docker-bicbucstriim's Issues

500 Error after creating container

Apache Log

[Fri Apr 09 03:22:43.404041 2021] [php7:warn] [pid 295] [client 192.168.1.9:50539] PHP Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in /config/www/index.php on line 10
[Fri Apr 09 03:22:43.404702 2021] [php7:error] [pid 295] [client 192.168.1.9:50539] PHP Fatal error: require(): Failed opening required 'vendor/autoload.php' (include_path='.:') in /config/www/index.php on line 10

Seems like the vendor folder is empty. Is this project still maintained?

Cover images don't show

I refer to version 1.5, same issue existed in 1.4.2

In every list of books the cover image is missing, see attached screenshot. The error message complains about a file not found:

            • <
              Slim Application Error
              The application could not run because of the following error:

Details

Type: ErrorException
Code: 2
Message: filesize(): stat failed for /books/Lee Child/A Wanted Man (28)/cover.jpg
File: /config/www/index.php
Line: 1224
Trace

#0 [internal function]: Slim\Slim::handleErrors(2, 'filesize(): sta...', '/config/www/ind...', 1224, Array)
#1 /config/www/index.php(1224): filesize('/books/Lee Chil...')
#2 [internal function]: cover('28')
#3 /config/www/vendor/slim/slim/Slim/Route.php(462): call_user_func_array('cover', Array)
#4 /config/www/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#5 /config/www/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#6 /config/www/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#7 /config/www/lib/BicBucStriim/calibre_config_middleware.php(50): Slim\Middleware\MethodOverride->call()
#8 /config/www/lib/BicBucStriim/login_middleware.php(36): CalibreConfigMiddleware->call()
#9 /config/www/lib/BicBucStriim/own_config_middleware.php(31): LoginMiddleware->call()
#10 /config/www/lib/BicBucStriim/caching_middleware.php(41): OwnConfigMiddleware->call()
#11 /config/www/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): CachingMiddleware->call()
#12 /config/www/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#13 /config/www/index.php(206): Slim\Slim->run()
#14 {main}

            • <

If I check the file system in a container terminal, all files do exist (see screenshot). I'm not too familiar with php but it looks to me as if the code handling images don't handle spaces correctly, but the code handling e.g. the download does. The library is a direct copy of the Calibre library without any modification (a Synology cloud station sync). The file and directory names are generated by Calibre as is.

bbc-missingimages

containerfilesystem

Blank page

Hi. After using the latest docker 1.5.1 I get a blank page instead of the login screen. Getting back to version 1.5 everything works fine again. What should I do to benefit from version 1.5.1?

HTTP Error 500 after creating the container

Is this project still alive?

I'm trying to move from a Synology custom package BBS to using docker so I can upgrade the OS on my Synology NAS, the new OS does not support the old BBS package. I've successfully done the same for a few other packages I'm using, all working just fine in DOcker.

But not BitBucStriim, I had an error message for a missing file in "vendor" so I downloaded BBS from their GitHub page and copied to the "vendor" directory to my docker data directory, I placed it under "www". This made the error go away.

B ut I still just get an HTTP 500 error, and "docker logs -f BicBucStriim" does not show any error messages.

Every web request to BBS creates a single entry in the apache access.log:
172.17.0.1 - - [10/May/2022:02:37:33 +0800] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleW
ebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36"

I did find an error that referenced to "langs.php" in the apache error.log, I found this file in "lib\BitBucStriim" in the original BBS distro, so I just put the "lib" folder under "www" as well.

But now it complains it cant find "AuthMiddleWare":
[Tue May 10 02:59:33.050567 2022] [php7:error] [pid 294] [client 172.17.0.1:51799] PHP Fatal error: require_once(): Failed opening required 'AuthMiddleware.php' (include_path='.::./lib/BicBucStriim:./vendor') in /config/www/index.php on line 22

Now it can't be that I'm supposed to put the whole BBS distro into the "www" solder so at this point I'm stuck, any help to offer?

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.