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
23 lines
557 B
Bash
Executable File
23 lines
557 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# adduser -D -H syslog && \
|
|
for user in "swift"; do
|
|
id -u $user > /dev/null 2>&1
|
|
if [ ! $? == '0' ]; then
|
|
adduser -D $user
|
|
printf "created user $user\n"
|
|
fi
|
|
done
|
|
printf "\n"
|
|
# mkdir /srv/node && \
|
|
# mkdir /var/spool/rsyslog && \
|
|
# chown -R swift:swift /srv/node/ && \
|
|
for dirname in "/srv/node" "$HOME/bin" "/opt" "/var/cache/swift" " /var/log/socklog/swift" "/var/log/swift/" "/var/run/swift"; do
|
|
if [ ! -d $dirname ]; then
|
|
mkdir -p $dirname
|
|
printf "created $dirname\n"
|
|
fi
|
|
done
|
|
# mkdir -p $HOME/bin && \
|
|
# mkdir -p /opt
|