-
Notifications
You must be signed in to change notification settings - Fork 659
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
Docker with SQLite fails to start due to incorrect parms #122
Comments
@SystemRage Did this change, or did I just messed that one up? |
Well I liked the SQLITE stuff just to see whats activated. So I did some changes for my self but maybe an idea to put in for the python3 TAG. THEN in the Dockerfile add This way you can override the directory you would like to have the DB. regards |
Yes and no - I think I would modify the path to point to a more "well known" data path like /data, which could be easily mounted into volumes. The same for the log files, I think we should move them to /log, so you could more easily access them, without having to know the container structure... Also note that into the docs! Maybe we should even start to clean everything up? Like move the pykms files into /srv? Has anyone some thoughts on this? 🤔 |
Merged fix of #122 (explicitly set the default variable for the db path)
Great work!.
Really like it helps me in small Lab without internet connections.
Now I was wondering what the SQLite version had to offer.
So I tried to run the python3 tag of the container.
But it complains about the -s parameter witch you can not set from the docker ENV..
I changed the start.sh where the -s param is handled.
FROM
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL}
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s ${PWD}/pykms_database.db -w ${HWID} -V ${LOGLEVEL}
now it works.
The text was updated successfully, but these errors were encountered: