Merge "Dockerfile cleanup"

This commit is contained in:
Zuul 2019-06-19 03:21:30 +00:00 committed by Gerrit Code Review
commit 234b23d01a
8 changed files with 15 additions and 9 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
set -e
# adduser -D -H syslog && \ # adduser -D -H syslog && \
for user in "swift"; do for user in "swift"; do
id -u $user > /dev/null 2>&1 if ! id -u $user > /dev/null 2>&1 ; then
if [ ! $? == '0' ]; then
adduser -D $user adduser -D $user
printf "created user $user\n" printf "created user $user\n"
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
apk add --update \ apk add --update \

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
echo echo
echo echo

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
echo "+ + + + + + + + + + upgrading pip" && \ echo "+ + + + + + + + + + upgrading pip" && \
pip install -U pip && \ pip install -U pip && \

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
pip install -U pip && \ pip install -U pip && \
cd /opt/swift && \ cd /opt/swift && \

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
echo "- - - - - - - - uninstalling simplejson" echo "- - - - - - - - uninstalling simplejson"
pip uninstall --yes simplejson pip uninstall --yes simplejson

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
cd / cd /
rm -rf /build rm -rf /build

View File

@ -1,10 +1,10 @@
/opt/python/usr/local/lib/python3.6//ctypes/test /opt/python/usr/local/lib/python3.6/ctypes/test
/opt/python/usr/local/lib/python3.6//distutils/tests /opt/python/usr/local/lib/python3.6/distutils/tests
/opt/python/usr/local/lib/python3.6//idlelib/idle_test /opt/python/usr/local/lib/python3.6/idlelib/idle_test
/opt/python/usr/local/lib/python3.6//lib2to3/tests /opt/python/usr/local/lib/python3.6/lib2to3/tests
/opt/python/usr/local/lib/python3.6//sqlite3/test /opt/python/usr/local/lib/python3.6/sqlite3/test
/opt/python/usr/local/lib/python3.6//test /opt/python/usr/local/lib/python3.6/test
/opt/python/usr/local/lib/python3.6//tkinter/test /opt/python/usr/local/lib/python3.6/tkinter/test
/opt/python/usr/local/lib/python2.7/bsddb/test /opt/python/usr/local/lib/python2.7/bsddb/test
/opt/python/usr/local/lib/python2.7/ctypes/test /opt/python/usr/local/lib/python2.7/ctypes/test
/opt/python/usr/local/lib/python2.7/distutils/tests /opt/python/usr/local/lib/python2.7/distutils/tests