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

help-circle





  • Agreed. I could run water sensors and solenoid valves for my basement water heater off of an arduino or rpi. I could also use a commercial product that has a warranty and a product engineering team and a QA department and etc etc…

    I’m going commercial. The potential for damage to be done is too high for some hack job.

    I’ve been in FOSS software for more than 20 years but honestly find the absolutism insufferable. It’s not always practical and there are more important hills to die on.



  • I kinda don’t care. The providers do all of the work anyway and, I think more importantly, terraform still feels like transitional tech. I might use it to stand up an initial working cluster but, in the long run and if given the choice, I’d want to use something closer to Crossplane for managing infrastructure.

    Terraform is still quite manual and doesn’t mandate consistency… You have to build automation around it and because drift is so easy it results in a system that can’t just be fully automated… You always have to check to see if changing a simple resource tag is going to revert a manual IAM permissions change that was made to a service account 3 weeks ago…

    I’ve been using terraform almost daily for years but I wouldn’t be sad if it stopped existing.






  • This would be nice because I don’t need a static ip and I don’t have to leak my ip address.

    How does the VPS know how to find your rpi?

    Could you not just use something like duck dns on a cronjob and give out that url?

    I would also need to figure out how to supply ejabberd with the correct certificates for the domain. Since it’s running on a different computer than the reverse proxy, would I have to somehow copy the certificate over every time it has to be renewed?

    Since the VPS is doing your TLS termination, you would need an encrypted tunnel of some sort. Have you considered something like Istio? That provides mTLS out of the box really… I’ve never seen it for this kind of use case but I don’t see why it wouldn’t work.



  • thelastknowngod@lemm.eetoSelfhosted@lemmy.worldSharrr in a container?
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    2 years ago

    You can do it bro. Dockerfiles are basically just shell scripts with a few extras.

    It uses npm to build so start with a node base container. You can find them on docker hub. Alpine-based images are a good starting point.

    FROM appdynamics/nodejs-agent:23.5.0-19-alpine 
    
    RUN git clone https://github.com/stophecom/sharrr-svelte.git && \ 
        cd sharrr-svelt/ && \
        npm run build
    

    If you need to access files from outside of the container, include a VOLUME line. If it needs to be accessible from a specific network port, add an EXPOSE line. Add a CMD line at the end to start whatever command needs to be run to start the process.

    Save your Dockerfile and build.

    docker build . -t my-sharrr-image