Giter Club home page Giter Club logo

git-backup's People

Contributors

chappio avatar lucascorpion avatar schoentoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

git-backup's Issues

Can´t execute the Linux versions

Can´t execute the Linux versions. What format they are? How can I execute them? It doesn´t seem like bash and have no extension at all.

User:Group

Would there be a way to implement a variable for User:Group rather than listing it in the docker run command?

Right now, all downloads save as root, and it might be worthwhile seeing if there's a way to make the container run as non-root + a variable to set what user it saves files as.

Currently, I'm running:
docker run --user 1000:997 --volume /my/backup/path/GitBackup:/backups ghcr.io/chappio/git-backup

This would not only secure the container by running it as non-root, but also allow for users to define a specific user + group to allow for easier data management.

I suspect that it might be doable by setting the dockerfile to have a USER value, and a ENV value, e.g.:

ENV UID=1000 \
    PID=1000 \

COPY --chown=$UID:$PID=${TARGETPLATFORM}/git-backup / #COPY is a better choice than ADD in this scenario

RUN chmod +x /git-backup

USER $UID:$PID

The above is totally untested.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.