HiveMinds / tw-install

Automatically installs Taskwarrior, Taskserver (TODO: and Timewarrior). This project aims to support automated installation of all Taskwarrior hook scripts, configuration flavours etc. with a single command.
GNU Affero General Public License v3.0
17 stars 7 forks source link

`tw-install-for-docker.sh` : connecting to `taskd` which is inside a container. #105

Open dehidehidehi opened 11 months ago

dehidehidehi commented 11 months ago

Good evening,

I've been working on a separate shell script that a user hosting a taskd server in a docker container would want to execute for the initial setup.

tw-install-for-docker.sh branch on my fork tw-install-for-docker.sh script I've made some progress up until today where I'm stumped by this error when executing source ./tw-install-for-docker.sh

Cannot perform this action while handshake is in progress.
Sync failed.  Could not connect to the Taskserver.

This indicates I've managed to at least establish some sort of connexion, but I'm stumped: the logs don't show any activity (/var/taskd.log).

I was hoping you may have an idea on fixing this and help me finalize this script on which I must admit I've spent too much time.

Cheers,

a-t-0 commented 11 months ago

Hi thank you for your effort! I think this involves porting the (almost) complete implementation into the docker style, as I believe each line of code -more-or-less is there for a reason. It is not feasible for me to do that now, and I think it would be wiser to first clean up the original (working) version, before I work on the port.

Feel free however to show it is feasible. Perhaps others are able to contribute to your effort to make it functional within a reasonable timeframe. Etiher way I appreciate your pull request, and I can imagine it forms inspiration once the original repo has been cleaned up to develop a high-quality docker version as well, if people like that.