• 0 Posts
  • 167 Comments
Joined 2 years ago
cake
Cake day: June 18th, 2023

help-circle









  • Yeah, it runs inside the container, so that won’t have access to the external filesystem’s. And intermediate directory might work, but itll be a bit fiddly.

    Maybe you could supply a script that does something like:

    docker cp $FILE server_container:/tmp/workfile.jpg
    docker exec -it cli_tool /tmp/workfile.jpg
    

    Could do a reverse script as well for download?

    Edit: you can also pipe the files to stdin of the command:

    cat input.jpg | docker exec -it server_container cli_tool upload

    docker exec - it server_container cli_tool download > output.jpg






  • How are you going to weather protect the books?

    You could easily create QR code (or NFC tags) that linked to a post in a lemmy community.

    As for posting opinions without a login, that is a little harder to pull off. Firstly, anonymous internet opinions are usually garbage, so you wouldnt want it to be truely anonymous. You’d be wading through spam in no time.

    If there was a way to encode creds into the QR code, such that it autologged into an account, that would be kinda cool, and it might last a little while until the creds were leaked.

    A basic (no-auth) guestbook site could be knocked up fairly easily by anyone (give me a week or so and I’ll give you something if you want, you’ll have to host it though), but getting the auth part right is nontrivial.