Giter Site home page Giter Site logo

Comments (4)

bensinober avatar bensinober commented on June 16, 2024

hi @cduverne , actually we're not using automated builds in docker hub, so digibib:koha:latest would not be the latest. Rather we build and tag images continuously from git refs from the master bramch of this repo. So the latest as I write this is digibib:koha:fe360b67a4e314f91a12f4fbc5587e7ac6a37061

You can see the freshest images here: https://hub.docker.com/r/digibib/koha/tags/

If you tail the logs of the container with docker logs -f you should get an idea what is wrong. Also you will be able to see the setup of Koha as it proceeds. It will probably take up to ten seconds to set up a fresh db.

Depending of your knowledge of docker, you can start with
https://github.com/digibib/koha-docker/blob/master/Dockerfile
which is the build of the image and displays some ENV variables that can be overridden when starting a new container.
https://github.com/digibib/koha-docker/blob/master/docker-entrypoint.sh is the ENTRYPOINT run when starting the container, which basically sets up Koha by populating the db and running the webinstaller, and then starting the various koha services.

In case you want to build koha yourself, have a look at the Makefile and the docker-compose templates. If you run vagrant, you should be ok with KOHAENV=build make provision for sensible defaults. If you run docker on your machine (recommended), you would do NOVAGRANT=true KOHAENV=build make provision.

Please don't hesitate to ask, and pass along failing logs.

from koha-docker.

cduverne avatar cduverne commented on June 16, 2024

Thanks for your assistance !

I also tried with the latest build, and arrive at the same problem.

I'm seeing this in the docker logs :

Running webinstaller - please be patient ...
ERROR 1146 (42S02) at line 1: Table 'koha_name.systempreferences' doesn't exist
ERROR 1146 (42S02) at line 1: Table 'koha_name.marc_tag_structure' doesn't exist
Smartmatch is experimental at /installer/KohaWebInstallAutomation.pl line 96.
Smartmatch is experimental at /installer/KohaWebInstallAutomation.pl line 96.
Smartmatch is experimental at /installer/KohaWebInstallAutomation.pl line 102.
Request failed. URI: WWW::Mechanize=HASH(0x1ac2b20)->response()->headers()->{location} at /installer/KohaWebInstallAutomation.pl line 73.
at /installer/KohaWebInstallAutomation.pl line 73.
KohaWebInstallAutomation::test_response_code(KohaWebInstallAutomation=HASH(0x1081720)) called at /installer/KohaWebInstallAutomation.pl line 38
KohaWebInstallAutomation::init(KohaWebInstallAutomation=HASH(0x1081720), "uri", "http://127.0.0.1:8081/", "user", "admin", "pass", "secret") called at /installer/KohaWebInstallAutomation.pl line 21
KohaWebInstallAutomation::new("KohaWebInstallAutomation", "uri", "http://127.0.0.1:8081/", "user", "admin", "pass", "secret") called at -e line 1

changed=yes comment="" instance=name newdbversion="16.0600010" olddbversion=""

The full logs are attached.
Thanks again

cont_logs_koha_docker.txt

from koha-docker.

bensinober avatar bensinober commented on June 16, 2024

Hi,
actually, you experience mysql and apache in docker restrictions, so you need to add --cap-add=DAC_READ_SEARCH to the run command. We also recommend SYS_NICE and MKNOD for proper working services through sockets.

Please try:

docker run --rm --cap-add=DAC_READ_SEARCH --cap-add=SYS_NICE --cap-add=MKNOD --name koha_docker -p 6001:6001 -p 8080:8080 -p 8081:8081 -t digibib/koha:ea5c913a48de333a8b33f692809d3383b8b95fa7

to run our latest image, and you will hopefully see the logs as the installer proceeds and get a working koha.

I will update the documentation to reflect this.

from koha-docker.

cduverne avatar cduverne commented on June 16, 2024

Great ! It worked !!

Unfortunately, I can't create a patron category, I opened a bug at Koha : https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17069

Thanks a lot for you help.

from koha-docker.

Related Issues (20)

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.