Comments (6)
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.
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.
@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.
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.
@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.
@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)
- docker compose should be docker-compose HOT 2
- Root certificate installation issues HOT 2
- composer server ssl install CLI does not install the root certificate if mckert is already installed HOT 1
- SSL Troubleshooting
- Warnings/error output when mkcert isn't installed on the system
- Update altis-local-server nginx image HOT 2
- `logs` command doesn't handle errors
- `composer server logs php` does not work
- Add support for PHP8.2 HOT 2
- Kibana throws 500 error on a new install HOT 5
- Bump nginx docker image to 3.5.2 HOT 1
- SSL cert should be removed now it is now longer used.
- Sometimes S3 Bucket doesn't get created
- PHP images version should be up to date with infrastructure version
- COMPOSE_PROJECT_NAME is set incorrectly in shell
- A fresh Altis installation consistently fails on first `server start` HOT 2
- A first proper start up of local server throws some ES errors
- WP-CLI cannot write to its own cache directory HOT 1
- MySQL 8.0 support
- Add favicon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from altis-local-server.