Coder Social home page Coder Social logo

docker_i-librarian's Introduction

This is a Dockerfile for I, Librarian. Please, Look at the following instructions.

Prerequisites

If you do not already have an I, Librarian database, you must create a blank library folder ${DATA_PATH} to initiate the library on the host before to run the container, and set up its ownership correctly.

mkdir ${DATA_PATH}
sudo chown 33:33 ${DATA_PATH}

Run the container

On the command line

sudo docker run -d -p 8080:80 \
            -v ${DATA_PATH}:/app/data \
            -v /etc/localtime:/etc/localtime:ro \
            --name=i-librarian \
            cgrima/i-librarian

Docker-compose

Create your docker-compose.yml file such as

version: "2"

services:

  app:
    image: cgrima/i-librarian
    privileged: true
    ports:
      - "8080:80"
    volumes:
      - ${DATA_PATH}:/app/data
      - /etc/localtime:/etc/localtime:ro

Then, start docker-compose

docker-compose up -d

Access your I-librarian instance

Open http://localhost:8080 on your web browser and follow instructions.

Migration from I, Librarian 4.10 to 5.*

Note: The 4.10 database folder was called library. It is called data in 5.*.

  1. Stop your 4.10 I, Librarian container, i.e. docker-compose stop i-librarian
  2. Backup your 4.10 library/ folder.
  3. Remove your 4.10 I, Librarian container, i.e. docker-compose rm i-librarian.
  4. Rebuild the I, Librarian image from latest source, i.e. docker-copomse up -d.
  5. Build and Launch your new 5.* I, Librarian container following one of the statements above but add you former 4.10 database folder as volume, i.e. -v ${LIBRARY_PATH}:/app/library.
  6. Connect to http://localhost:8080 and follow the migration instructions (the library folder to migrate is /app/library).

Update

Simply stop, remove, and launch your container again. With docker-compose:

docker-compose down
docker-compose up -d

Troubleshoot

If you have rights/permissions issues with the library folder try to add the --privileged=true option to the docker run command.

docker_i-librarian's People

Contributors

cgrima avatar nicolasshu avatar tux1337 avatar

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.