dennwc / inkview

Go SDK for Pocketbook
MIT License
31 stars 5 forks source link

omit build script and provide compose file #4

Closed Skeeve closed 3 years ago

Skeeve commented 3 years ago

Please consider this PR.

As I struggled to find out how to compile a program using go-sqlite3, I changed the Dockerfile a bit so that there is no more need for a build.sh script.

The entrypoint now is the go executable and so the only obvious difference is that you have to provide the "build" command to go.

Additionally I added a last line in Dockerfile which will install go-sqlite3. Since PocketBook makes use of sqlite for its library, I think this is a valuable addition.

There is also an example program sqlitetst which will create a database and fill it with some test data.