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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ config.vm.define "s3" do |s3|
d.image = "jean553/docker-s3-server-dev"
d.env = {
"S3_BUCKET_NAME" => "MyBucketName",
"CORS_CONF_PATH" => "config/cors-config.xml"
}
end
config.vm.synced_folder "config/", "/config"
end
```
10 changes: 9 additions & 1 deletion launch_server.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/usr/bin/env bash

# build the s3rver command
COMMAND="s3rver --hostname 0.0.0.0 --port 5000 --directory /tmp"
if [ -n ${CORS_CONF_PATH} ]
then
COMMAND="$COMMAND --cors $CORS_CONF_PATH"
fi
COMMAND="$COMMAND &"

# Launch the local S3 server
s3rver --hostname 0.0.0.0 --port 5000 --directory /tmp &
$COMMAND

# Wait 2 seconds to give the server the time to be up
sleep 2
Expand Down