-
Notifications
You must be signed in to change notification settings - Fork 23
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
Instructions for creating docker container #9
Comments
Thank you! Can you use this to keep autodoist running in the background and on system startup? |
Yes correct, I have this running on my home server, set and forget Getting to know a bit about docker would be your starting point though, depends on your OS etc |
Thanks for this. |
fixed in #31 |
Thanks for making someing proper for this @obbardc Forgive me though, I'm not sure how to run it now. Can it now be ran with variables for API key etc? I've ran as follows so far:
The last command fails of course, as the API key is missing Sorry for the noob understanding level here! |
Hey, building is optional, you can just run it as follows:
untested but it should work.
I didn't manage to update the README due to lack of time, maybe you could do that in a PR ? |
Thanks, I will add to the readme for sure, once I have a full grasp of it! Do you have a list of the variables accepted? Not entirely sure how to glean this from the code, regen (although think this is disabled currently) and end of day for example In your compose, I assume the .env file just has I tried a docker run, but get an API error currently, possibly not an issue with the docker as such
|
Reopening for now, this might be related to #34 |
Just dropping my working docker-compose here for reference
|
Sorry, not sure if this is the best way to get this info added to the readme, bit lost on the whole github thing
Anyway, I have successfully created this app inside a docker container, running happily
Guide assumes you have docker installed
dockerfile
with the following contents:Note, replace the last line with your API key and required options. Each option must be in quotes and separated with a comma
docker build -t autodoist-image .
, whereautodoist-image
is the name that will be given to your new docker imageThe python files will be downloaded and then the requirements.txt will be processed, to install pre-requisites for autodoist inside the image
Replacing docker options as needed
You can now watch the logs of the container, to check for errors, or if it is running happliy
The text was updated successfully, but these errors were encountered: