Giter Site home page Giter Site logo

Comments (6)

roborourke avatar roborourke commented on May 30, 2024

Yeah I had wanted to use minio to provide this in the past as it has a file sync feature. The problem was that fake S3 doesn’t use a regular file structure for storage (more of a database) so it didn’t work to just mount the volume at the time.

If it’s that simple and works then great, we should definitely do this!

from altis-local-server.

roborourke avatar roborourke commented on May 30, 2024

Can you show me what you did? I just tried this and it's as I suspected the real file structure is like this:

└── uploads
    ├── 2020
    │   └── 03
    │       └── Screenshot-2020-03-04-16.37.29.png
    │           └── .fakes3_metadataFFF
    │               ├── content
    │               └── metadata

The content file in the Screenshot-2020-03-04-16.37.29.png directory is a binary blob and as such can't be opened properly locally without modifying the file name.

I think we'd need to look at switching to minio and using the sync feature to keep the uploads directory in sync. This is what I had to do for the chassis-minio extension when I needed to work on S3-Uploads previously.

from altis-local-server.

stuartshields avatar stuartshields commented on May 30, 2024

@roborourke I ran into the same issue, because time is critical I went back to using Chassis instead. Your idea for minio sounds like the best way forward.

from altis-local-server.

roborourke avatar roborourke commented on May 30, 2024

In terms of adding assets it could perhaps be done using the s3 cli commands. Will see if it's something we can at least document in the interim.

from altis-local-server.

goldenapples avatar goldenapples commented on May 30, 2024

@stuartshields Were you looking at the same issue here I was in #142? If so, the CLI command that ended up getting me unstuck might also be of use for you...

from altis-local-server.

roborourke avatar roborourke commented on May 30, 2024

@goldenapples @stuartshields I've opened #145 which sort of solves this. I was hoping to get bi-directional sync working with minio (alternative to fakes3) however it was a bit fraught. What that PR does do however is the following:

  • Syncs S3 to the host's content/uploads directory automatically and continuously
  • Adds a composer server import-uploads command to sync files from /content/uploads into S3

Does that seem satisfactory as a solution? I think we'll still need to write some guides for importing existing data and uploads into both environments regardless.

from altis-local-server.

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.