37e257913c
Added Dockerfile and configuration files under the new `docker` directory to build a Swift All in One container image. The primary goal of this container image is to provide application developers with a Swift/S3 endpoint that can be tested against during the development cycle. Added Zuul jobs to build docker container Change-Id: Ib10975a1862a4fa8c4eeaba139837cf1f22b272a
18 lines
440 B
Bash
Executable File
18 lines
440 B
Bash
Executable File
#!/bin/sh
|
|
|
|
pip install -U pip && \
|
|
cd /opt/swift && \
|
|
pip install -r requirements.txt && \
|
|
pip install -e .
|
|
|
|
cp doc/saio/bin/* $HOME/bin
|
|
chmod +x $HOME/bin/*
|
|
sed -i "s/bash/sh/g" $HOME/bin/*
|
|
sed -i "s/sudo //g" $HOME/bin/*
|
|
mkdir /root/tmp
|
|
echo "export PATH=${PATH}:$HOME/bin" >> $HOME/.shrc
|
|
echo "export PYTHON_EGG_CACHE=/root/tmp" >> $HOME/.shrc
|
|
echo "export ENV=$HOME/.shrc" >> $HOME/.profile
|
|
chmod +x $HOME/.shrc
|
|
chmod +x $HOME/.profile
|