Git Product home page Git Product logo

Comments (9)

jkent avatar jkent commented on July 21, 2024

Hmm, looks like changing .lstrip('.').lstrip('/') to .lstrip('./') on lines 112 and 136, that should solve that problem. Could you try this and report back?

from frogfs.

valkuc avatar valkuc commented on July 21, 2024

Looks like did not help. Nothing changed, same error. Actually, I'm thinking that it's a good idea to skip files (and directories) with name starting from "." and do not include them in FrogFs image. What do you think?

from frogfs.

valkuc avatar valkuc commented on July 21, 2024

Btw, I tried to implement such exclusion by adding

    if reldir.startswith('.'):
            continue

at lines 113 and 139, but this not helped and I'm stuck. My Python knowledge is below zero :)

from frogfs.

jkent avatar jkent commented on July 21, 2024

fixed in 1a3d571

Thanks!

from frogfs.

valkuc avatar valkuc commented on July 21, 2024

Thanks, now there is no errors and the directory with file is added to FrogFs image. Could you please tell me, is it possible to exclude any or specific directory from image?

from frogfs.

jkent avatar jkent commented on July 21, 2024

You can do the following, which glob matches any files and folders with that name:

filters:
  'path/to/.folder_name*':
    - discard

I'll create a bug, because you should be able to just do the following:

filters:
  'path/to/.folder_name':
    - discard

But that is currently broken.

from frogfs.

valkuc avatar valkuc commented on July 21, 2024

Looks like this doesn't work either.
In the log:

       - Stage 1
         - .test-data/state.json
           - compress deflate... skipped

but actually the file is included as I see it in binary.

from frogfs.

jkent avatar jkent commented on July 21, 2024

I'll look into this. In the meantime, can you open a new issue with a snippet of your yaml?

from frogfs.

valkuc avatar valkuc commented on July 21, 2024

Yep,will do

from frogfs.

Related Issues (20)

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.