Giter Club home page Giter Club logo

gallery3-docker's People

Contributors

bwdutton avatar dependabot[bot] avatar stuckj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gallery3-docker's Issues

Cannot login into database

I download container, filled in docker-compose.yml with username and passwords.

Then did docker-compose and it built images, containers and ran gallery3 along with MariaDB.

Then go to http:/localhost and up pops screen asking for password. Enter root password and it fails when submit. Copied password from file so has to be the same. Not sure why this not working.

Executing on MacOS.

Make ImageMagick available to docker container

For a path issue, now ImageMagick is installed but not available to Gallery3. Adding these symlinks fix the issue.

ln -sf /usr/bin/convert /usr/local/bin/convert && \
   ln -sf /usr/bin/convert-im6 /usr/local/bin/convert-im6 && \
   ln -sf /usr/bin/convert-im6.q16 /usr/local/bin/convert-im6.q16

So adding these after imagemagick installation will make IM available.

I've not yet done extensive tests, but result on Settings > Graphics is not greyed out anymore:
Screenshot_2020-11-29 Gallery Admin Graphics settings

The FLOSS project CollectiveAccess has addressed similar issues in the past, and the solution was to centralize paths on a conf file:
https://github.com/collectiveaccess/providence/blob/master/app/conf/external_applications.conf
https://docs.collectiveaccess.org/wiki/External_Application_Configuration

and giving each library a weight to sort by better-worst available (better always win, in gallery3 imagemagick will win to GD).

A file like this referencing the right paths on the image can be later copied using docker COPY to avoid using symlinks.

Docker image to run on raspberry pi 4

Hi!
I'd like to run the docker image on my Pi k3s cluster.
Can you do a Dockerfile for the Pi?
I've tried to find dcraw for pi without luck - thoughts?
I tried to build the existing file on the Pi - but it fails with

docker build --rm -t gallery3 . 
Sending build context to Docker daemon  15.36kB
Step 1/11 : FROM ubuntu:focal
 ---> bcf7edb34eae
Step 2/11 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> d3a2e0d2a3c7
Step 3/11 : ENV TZ UTC
 ---> Using cache
 ---> 6b2fee48e820
Step 4/11 : RUN set -ex &&   apt-get update &&   apt-get install -y --no-install-recommends       ca-certificates       composer       jhead       nginx       php-fpm       php-xml       php-mysql       php-gd       php-mbstring       php-redis       imagemagick       graphicsmagick       dcraw       ffmpeg       git       mysql-client       &&    apt-get clean autoclean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ---> Running in 24e729dc9b10
+ apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [101 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [109 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
  At least one invalid signature was encountered.
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
  At least one invalid signature was encountered.
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
  At least one invalid signature was encountered.
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
  At least one invalid signature was encountered.
Reading package lists...
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-security InRelease' is not signed.
The command '/bin/sh -c set -ex &&   apt-get update &&   apt-get install -y --no-install-recommends       ca-certificates       composer       jhead       nginx       php-fpm       php-xml       php-mysql       php-gd       php-mbstring       php-redis       imagemagick       graphicsmagick       dcraw       ffmpeg       git       mysql-client       &&    apt-get clean autoclean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 100

Issue with direct links

I've just succeeded to move and upgrade my old gallery and am currently running on docker.
I've also moved and upgraded my wordpress blog.

It all seems to be working fine except for direct links to the pictures that can be found in my blog.

For example (changed a bit for privacy)

http://gallery.example.com/index.php/album1/DSC07570-2

Such a link results in the following error message:

Dang... Something went wrong!
We tried really hard, but it's broken.
Talk to your Gallery administrator for help fixing this!

It can however be fixed with a workaround by first going to the main site (http://gallery.example.com) and then reload the direkt link it loads without issues.

The strange thing is that the blog post itself looks good.
The image tag in the post looks as follows:

<p style="text-align: center;"><a href="http://gallery.example.com/index.php/album1/DSC07570-2"><img class="g2image_normal" title="" src="http://gallery.example.com/var/resizes/album1/DSC07570-2.jpg?m=1394825421" alt="" /></a></p>

Trying to get mail working

I am trying to get mail working either with the built in or PHPMailer and not having any luck.

The files under modules/phpmailer did not seem to be complete and were missing the admin page.
I downloaded the latest version and unzipped them after installing PHPMailer but I am still getting an error.
I installed PHPMailer via:
composer require phpmailer/phpmailer
I have seen the notes to make sure to update the location of class.phpmailer.php but can't find the file.
Thanks
`Exception [ 0 ]:
@todo SEND_MAIL_FAILED
MODPATH/phpmailer/libraries/Sendmail.php[ 90 ]

85 // The docs say headers should be separated by \r\n, but occasionaly that doesn't work and you
86 // need to use a single \n. This can be set in config/sendmail.php
87 $headers = implode($this->header_separator, $headers);
88 $message = wordwrap($this->message, $this->line_length, "\n");
89 if (!$this->mail($to, $this->subject, $message, $headers)) {
90 throw new Exception("@todo SEND_MAIL_FAILED");
91 }
92 return $this;
93 }
94
95 public function mail($to, $subject, $message, $headers) {
MODPATH/register/helpers/register.php[ 136 ] » Sendmail_Core->send()

MODPATH/register/helpers/register.php[ 55 ] » register_Core::_sendemail()

MODPATH/register/helpers/register.php[ 123 ] » register_Core::send_user_created_confirmation()

MODPATH/register/controllers/admin_register.php[ 77 ] » register_Core::create_new_user()

MODPATH/gallery/controllers/admin.php[ 62 ] » Admin_register_Controller->activate()

{PHP internal call} » Admin_Controller->__call()

SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs()

SYSPATH/core/Event.php[ 208 ] » Kohana_Core::instance()

APPPATH/Bootstrap.php[ 67 ] » Event_Core::run()

DOCROOT/index.php[ 123 ] » require( arguments )
`

Organize album - not functional

While trying to move around some of the albums, I noticed that one option is not functioning correctly: "Organize album".

Screen Shot 2020-11-30 at 2 42 38 PM
When selected, a frame shows up but nothing else and checking on the console of my browser, I see the following error:

Screen Shot 2020-11-30 at 2 45 14 PM

"http://.../organize/frame/1:11"

Database column captured is NULL

When trying to add new items to the gallery the captured column is not populated.
Looking at the file details in windows shows "Origin -> Date taken" with what looks like correct data.
I've however no idea how gallery3 tries to solve this info?

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.