Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,28 @@ Docker image with latest version of S3 fake service ( https://github.com/jamhall

## Usage with Vagrant

Set the bucket name environment variable in your Vagrantfile.

```ruby
config.vm.define "s3" do |s3|
s3.vm.provider "docker" do |d|
d.image = "jean553/docker-s3-server-dev"
d.env = {
"S3_BUCKET_NAME" => "MyBucketName",
}
end
end
Build the container

```
vagrant up
```

your s3 developpement server is running on http://127.0.0.1:5000.

The Default Bucket Name is `development_bucket`.

You can change port and bucketName in the VagrantFile, and simply reload your container.

```
vagrant reload
```


If your client only supports signed requests, specify the credentials

```
{
accessKeyId: "S3RVER",
secretAccessKey: "S3RVER",
}
```
19 changes: 19 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- mode: ruby -*-
# vi: set ft=ruby ts=2 sw=2 expandtab :

PROJECT = "s3"
PROJECT_DIR = "/vagrant/s3"

Vagrant.configure(2) do |config|


config.vm.define "s3" do |s3|
s3.vm.provider "docker" do |d|
d.image = "jean553/docker-s3-server-dev"
d.env = {
"S3_BUCKET_NAME" => "development_bucket",
}
end
s3.vm.network "forwarded_port", guest: 5000, host: 5000
end
end