-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update to latest code in dockerhub #5
Comments
wow 100K+ pulls of https://hub.docker.com/r/sailfrog/cypht-docker |
Thank you. I wish I had seen this sooner. I was not receiving random errors, but a very consistent "Server Error" bar at the top of the page (or 500 from a POST in the nginx logs) whenever trying to load anything, including emails and feed items. The logs showed nothing to explain this. Even Debug Mode was not showing any explanation. Building it myself eliminated this problem. |
Same issue as @t-m-w . |
i also want to see a code-update on docker-hub. Please :) THX |
Agreed for an update. Some information:
|
FYI, Cypht's admin panel now indicates revision (one more reason to update our Docker) |
@wangxiaoerYah wrote: "Can I add Docker workflow to the current branch? Instead of in another repository, I want to create two docker branches for it, stable and nightly." Source: cypht-org/cypht#748 The Cypht development model has evolved: https://github.com/cypht-org/cypht/wiki/Lifecycle so it totally makes sense to have stable and nightly. As to doing within this repo or the other: I don't know. This should be discussed by the community. |
@ellis @t-m-w @conspacer @csuno @wangxiaoerYah: Please share your thoughts and indicate if you can be present at the meeting about this with @mose, @rodriguezny, @josaphatim and myself. Thanks! |
If you build a docker image and create stable and nightly branches, you need to improve code review and functional testing. But I am not proficient in PHP, if you need to start, I will provide the help I can. The most important thing is PHP code testing. Unlike static languages, as long as the compilation passes, there will generally be no problems. Might need more help with this. We can refer to other webmail projects, how they implement code testing. |
I checked the action market, maybe this should work As long as the test check is deployed, there will be no major problems in subsequent compilation of the docker image. After that, the project development will be on the right track, only need stable maintenance, and review, it can allow more users to participate, because docker will make the installation process easier and easier to understand. |
Today I tried to reproduce the test steps that this project used to host on travis, maybe this is more complicated than I thought.😂 If you want to implement it on GitHub, you need to modify a lot of files. I wonder if the developer plans to use GitHub action to build a test process? |
We (Rodriguez, Josaphat, mose and I) held a Cypht-Docker meeting. Takeaways: 1- https://github.com/cypht-org/cypht/wiki will be updated to explain how thing will work (Lifecycle, how to contribute, etc.) 2- Docker aspects will eventually be brought in main repo, we won't maintain a distinct repo like now: https://github.com/cypht-org/cypht-docker 3- Josaphat will review everything related to the CI, and discuss with mose for questions. The CI should run for all Docker builds. |
This is great! ! ! ! ! |
Progress: cypht-org/cypht#755 |
@josaphatim Is it necessary to test selenium in Action ci? I tried it for a few hours on my dev branch and I feel that if I enable selenium tests, it is tedious on github ci and they depend on too many things and I have to do it on a lot of Switch between os images and maintain specific dependencies for specific systems. I think we should abandon the old software package dependencies and embrace the latest version. |
It requires php-fpm dependency, but there is no php7.4-fpm in ubuntu20. I tried to get it running and tried many times, but it had some problems. |
@marclaporte @josaphatim @kroky Can you guys help me figure out what I'm doing wrong? Is it a missing dependency that's causing the compiled index.php to be missing elements?
Is this caused by adding the '--headless' parameter when starting chrome? Or is there a problem with my dependencies, resulting in incomplete page compilation? Because I see |
Selenium 4.3.0 removes find_element_by_name method. Maybe you are using too new version? Try with an older one. |
I updated the code and selenium has started running, but I still cannot pass the test. This is my latest progress:action |
Hello, can I add your matrix account? So maybe I can contact you better. |
@kroky Did selenium run normally when you tested it? There seemed to be some errors when I tested it on Github action.
|
I remember having hard time running selenium but managed to run it at the end. Will check it later and reply... |
You can refer to my dev branch, although the quality of my code is terrible. Well, if the code is fixed, I hope it can run directly in the project root path, just to make it look good, without switching paths 🤣🤣. Waiting for you Message, remember to @ me, remember to @ me, thank you, I am very happy to be with you. |
@wangxiaoerYah Can you try latest latest master? I see a couple of issues in your setup:
Also, feel free to modify the tests, so they run regardless of the mail server settings and state - this will be best but will require some more time that I lack now... |
This is great news and thank you for your work. I'll experiment later in me👍👍👍 |
@kroky @marclaporte @josaphatim
In my dev branch, I forcibly upgraded the PHP dependencies to completely deprecate PHP7.4. The selenium test looked fine. However, the phpunit test still did not work properly. I tried some modifications, but I had no idea. After I improved the dependencies, there is still a package that depends on the previous version of the library.
ext-libsodium is already built-in in php7. Is there any replacement for this package? Is it possible to give up support for lower versions of PHP? I think the optimization of the latest version must be better than the previous version. Also, I am going to create a docker compilation workflow, do you have any good suggestions? |
@wangxiaoerYah , I don't see an error in your phpunit pipeline - maybe try to run phpunit in verbose or even debug mode to see why it is returning a non-zero exit code. sodium extension is part of php in all versions after 7.2 but it should be compiled with that when libsodium is available on the system. Any modern php package coming from OS package management systems should have it - I have mostly used Ubuntu. We will deprecate and remove support for PHP versions that reached EOL one day but it is a discussion to be held. There are still a lot of places where PHP7 is supported/used. I don't have experience with docker compilation workflows, sorry. |
@wangxiaoerYah Are you good? What is the next step? Tks |
I can't pass the selenium test. Because of the local configuration of smtp and imap, my local configuration is normal smtp and imap, but when it comes to the action, I don't know why it can't connect. I made some settings on my dev branch, you can refer to it. https://github.com/wangxiaoerYah/cypht/tree/dev/.github SMTP and imap are very difficult. 😂😂😂😂 |
Maybe we merge what we have here and I continue by setting up the proper postfix config in the pipeline, so selenium tests can execute there? |
@marclaporte @kroky I pushed the submission to the mainline, hoping to merge it. The problem has not been solved, and I hope you can provide help. |
emm, i'd love to help but i don't have much time. i've been watching this project. |
@wangxiaoerYah Are you a Docker expert? It won't take much time from someone who has done this many times before. |
https://hub.docker.com/u/cypht will soon have the latest code, and we will automate so all future updates are easily available. |
Following the README instruction creates an installation with a various random errors when trying to read messages.
However, when I downloaded your code and built the docker image from scratch, things ran just fine.
Could you please rebuild the image and update it in dockerhub so we get the current cypht version again?
The text was updated successfully, but these errors were encountered: