Use the official Swift docker image for testing

This switches out the docker image used for Swift in our docker-compose
setup. It also adds a small script to modify the default config in that
image to allow it to be used with a StoryBoard development instance.

Change-Id: I6371eef0b54df16a8855f8cbcfcead4dd4234d10
This commit is contained in:
Adam Coldrick 2019-11-16 20:39:24 +00:00
parent 8c86a4f09b
commit 04d086132d
2 changed files with 6 additions and 2 deletions

View File

@ -19,8 +19,8 @@ services:
- RABBITMQ_DEFAULT_PASS=storyboard
swift:
image: "bouncestorage/swift-aio"
image: "openstackswift/saio"
ports:
- "8888:8080"
volumes:
- "./swift:/swift/nodes"
- "./fix-ini.sh:/etc/cont-init.d/fix-init.sh"

4
docker/fix-ini.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
sed -i 's/ s3api//' /etc/swift/proxy-server.conf
sed -i '/user = swift/a cors_allow_origin = http://localhost:9000' /etc/swift/proxy-server.conf