Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alextselegidis opened this issue Aug 26, 2021 · 18 comments
Closed
Assignees
Milestone

Comments

@alextselegidis
Copy link
Owner

  Alex Tselegidis, Easy!Appointments Creator
  Need a customization? Get a free quote!
@andrewclausen
Copy link

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.

@alextselegidis
Copy link
Owner Author

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

@JanC
Copy link
Contributor

JanC commented Oct 8, 2021

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

@alextselegidis
Copy link
Owner Author

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 alextselegidis self-assigned this Oct 18, 2021
@lambchop01
Copy link

lambchop01 commented Oct 21, 2021

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 :)

@alextselegidis
Copy link
Owner Author

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!

@lambchop01
Copy link

@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

@dukeofgaming
Copy link

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.

@alextselegidis
Copy link
Owner Author

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 alextselegidis added this to the v1.5.0 milestone Nov 18, 2021
@alextselegidis
Copy link
Owner Author

@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!

@noraj
Copy link

noraj commented Apr 11, 2022

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

@alextselegidis
Copy link
Owner Author

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!

@noraj
Copy link

noraj commented Apr 12, 2022

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.

@alextselegidis
Copy link
Owner Author

@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!

@Typhonragewind
Copy link

@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

@riccardomessineo
Copy link

Any news about the official docker image?

@alextselegidis
Copy link
Owner Author

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
Copy link
Owner Author

alextselegidis commented Aug 15, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants