Mediamock provides mocking of folders and (image) files.
Current use case: The media/assets folder of an online store or content management system, containing all images, pdf, etc, can have a pretty huge total byte size, up to several GB or even TB. Copying these files to your development environment takes a long time and consumes lots of precious disk space.
A full detailed description with examples on my blog http://cyrillschumacher.com/projects/2015-12-28-mediamock/.
Magento 1: Please install https://github.com/SchumacherFM/mediamock-magento.
Magento 2: Please install https://github.com/SchumacherFM/mediamock-magento2 todo.
These modules disable the HDD file access for reading images. Writing still possible.
Please help
Please help
Please help
Please help
Please help
Download binaries for windows, linux and darwin (OSX) in the release section.
GO15VENDOREXPERIMENT
introduces reproduceable builds.
$ go get -u -v github.com/SchumacherFM/mediamock/...
$ cd $GOPATH/src/github.com/SchumacherFM/mediamock
$ git remote rm origin
$ git remote add origin git@github.com:username/CloneOfMediaMock.git
$ git submodule init
$ git submodule update
hack hack hack ...
$ GO15VENDOREXPERIMENT=1 go run *.go
hack hack hack ...
$ GO15VENDOREXPERIMENT=1 go run *.go
$ gofmt -w *.go common/*.go record/*.go
$ git commit -a -m 'Add feature X including tests'
$ git push -u origin master
create pull request to github.com/SchumacherFM/mediamock
If you introduce a new dependency this is how to add it:
$ cd $GOPATH/src/github.com/SchumacherFM/mediamock
$ git submodule add git@github.com:username/GoLangRep.git vendor/github.com/username/GoLangRep
How do I know all dependencies?
$ go list -json github.com/SchumacherFM/mediamock/...
Copyright (c) 2015-2016 Cyrill (at) Schumacher dot fm. All rights reserved. See LICENSE file.
Cyrill Schumacher - My pgp public key
Identicon code by: Copyright (c) 2013, Damian Gryski damian@gryski.com