easyappointments icon indicating copy to clipboard operation
easyappointments copied to clipboard

Create an official docker image of the project and host it on Docker Hub.

Open alextselegidis opened this issue 3 years ago • 15 comments

  Alex Tselegidis, Easy!Appointments Creator
  Need a customization? Get a free quote!

alextselegidis avatar Aug 26 '21 14:08 alextselegidis

You might find this project helpful:

https://github.com/clayrisser/easyappointments-docker

It worked for me, even though it hasn't been updated in 4 years.

andrewclausen avatar Sep 16 '21 15:09 andrewclausen

Thanks @andrewclausen, that might actually be a good place to start!

alextselegidis avatar Sep 21 '21 08:09 alextselegidis

hey, what's the status of the Docker support?

I tried building and running a locally using the docker-compose.yml

The services start but I get an error when accessing http://localhost:8000/

Warning: require_once(/var/www/html/config.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 50

Fatal error: require_once(): Failed opening required '/var/www/html/config.php' (include_path='.:/usr/local/lib/php') in /var/www/html/index.php on line 50

JanC avatar Oct 08 '21 12:10 JanC

Hi @JanC Please copy config-sample.php to config.php and add your installation information inside.

You can follow this guide here:

https://easyappointments.org/docs.html#1.4.2/docker.md

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar Oct 11 '21 09:10 alextselegidis

Hey @alextselegidis had the same error, changed the config-sample.php to config.php and it worked! I'm now getting this error Warning: require_once(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 63 I don't see a vendor folder that autoload.php is supposed to be in. am I missing something?

Thanks

Update: Downloaded the release files instead of the master branch and found the vendor folder. error solved :)

lambchop01 avatar Oct 21 '21 03:10 lambchop01

Hi @lambchop01,

You will need to run the composer install command on your host machine before starting the containers.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar Oct 21 '21 09:10 alextselegidis

@alextselegidis , Fair! I was thinking that was part of the docker container build process, but actually looked and see that it is not. I'll give that a shot when I get a chance. Thanks

lambchop01 avatar Oct 21 '21 23:10 lambchop01

I get this while trying composer update:

 Problem 1
    - Root composer.json requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP's gd extension.
  Problem 2
    - gregwar/captcha[v1.1, ..., v1.1.9] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
    - Root composer.json requires gregwar/captcha ^1.1 -> satisfiable by gregwar/captcha[v1.1, ..., v1.1.9].

To enable extensions, verify that they are enabled in your .ini files:
    - C:\tools\php80\php.ini

It would sure be nice to have a prebuilt image, it's too much trouble to create a new Dockerfile to repackage the whole environment or change my existing one just to try the app (your demo backend is not working BTW, administrator/administrator won't login)

I'm going to have to pass on trying out your solution and will probably go for setmore or sagenda, which is not my preference since I wanted something 100% self-hosted. I hope you come up with an official image soon.

dukeofgaming avatar Nov 17 '21 19:11 dukeofgaming

Hi @dukeofgaming,

Thanks for reaching out!

This ticket has been on my plans for 1.5 but I forgot to assign the milestone properly.

Hold on for some days (if possible) and I will get back here with the official docker image and more documentation.

Cheers!

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar Nov 18 '21 07:11 alextselegidis

@dukeofgaming FYI the official docker file will be hosted on this repo:

https://github.com/alextselegidis/easyappointments-docker

Feel free to star and follow and stay up to date with the latest development state.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar Nov 18 '21 07:11 alextselegidis

This docker-compose works too https://github.com/stw-on/easyappointments

noraj avatar Apr 11 '22 10:04 noraj

Hello @noraj, thanks for sharing this!

I'll check this out, although it looks like this setup is for an older Easy!Appointments version.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar Apr 11 '22 19:04 alextselegidis

I'll check this out, although it looks like this setup is for an older Easy!Appointments version.

Yes they stopped at 1.3.2, hardcoded some value, not everything is clean there but at least it works.

noraj avatar Apr 12 '22 07:04 noraj

@noraj I'm currently working on an image that contains PHP-fpm with Nginx on Alpine, which makes it pretty lightweight. The best would be to provide various flavors (with apache, cli etc) but I think for now I will just publish one version and the rest will come at some point later.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar Apr 19 '22 06:04 alextselegidis

@noraj I'm currently working on an image that contains PHP-fpm with Nginx on Alpine, which makes it pretty lightweight. The best would be to provide various flavors (with apache, cli etc) but I think for now I will just publish one version and the rest will come at some point later. Alex Tselegidis, Easy!Appointments Creator Need a customization? Get a free quote!

This would be amazing! Thanks for this great software :D

Typhonragewind avatar Apr 29 '22 16:04 Typhonragewind

Any news about the official docker image?

riccardomessineo avatar May 11 '23 08:05 riccardomessineo

Hello @riccardomessineo, currently finalizing, I'll report here in a couple of days.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar May 15 '23 06:05 alextselegidis

Hello!

I just deployed the first official image of Easy!Appointments!!!

Currently it has the latest stable release (1.4.3) but shortly the 1.5.0 will follow.

https://github.com/alextselegidis/easyappointments-docker

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

alextselegidis avatar Aug 15 '23 10:08 alextselegidis