Only for development and test purpose.
S3-server is a Rails server that responds to the same calls Amazon S3 responds to. It is extremely useful for testing of S3 in a sandbox environment without actually making calls to Amazon, which not only require network.
S3-server doesn't support all of the S3 command set, but the basic ones like put, get, list, copy, multipart uploads, and make bucket are supported. More coming soon.
$ bundle exec rails server -p 10001
$ docker run -p 10001:10001 -d predicsis/s3-server
$ docker run -p 10001:10001 -v /home/user/s3-server/storage:/data/storage -v /home/user/s3-server/db:/data/db -d predicsis/s3-server
$ docker run --restart=always --name=s3_server -p 10001:10001 -v /home/user/s3-server/storage:/data/storage -v /home/user/s3-server/db:/data/db -d predicsis/s3-server
Gemfilegem 's3_server'
gemspecspec.add_development_dependency 's3_server'
spec_helper.rbrequire 's3_server/server'
RSpec.configure do |config|
# ...
config.before(:suite) { S3Server::Server.start }
config.after(:suite) { S3Server::Server.stop }
# ...
end
This application is mainly tested with the AWS Ruby SDK.
Here is a running list of supported clients
$ bundle exec rake db:migrate
$ bundle exec rails s -p 10001
$ bundle exec rails s -p 10001
$ bundle exec rake cucumber # It launches feature specs with Ruby AWS SDK V1 or v2
MIT. See the LICENSE for more details.
Check out the wiki
Content type
Image
Digest
sha256:acfc205f0…
Size
-
Last updated
almost 11 years ago
docker pull simonoff/s3-server