Dockerfile cleanup
- Use `set -e` in all install scripts. Clean up swift_needs to still work properly and exit cleanly under `set -e`. - Drop some redundant slashes. Change-Id: I05f38c6366e3da0aeed2b6451a8bd9d7dc531119
This commit is contained in:
parent
23eca56ce0
commit
a122b720e9
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# adduser -D -H syslog && \
|
||||
for user in "swift"; do
|
||||
id -u $user > /dev/null 2>&1
|
||||
if [ ! $? == '0' ]; then
|
||||
if ! id -u $user > /dev/null 2>&1 ; then
|
||||
adduser -D $user
|
||||
printf "created user $user\n"
|
||||
fi
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
apk add --update \
|
||||
linux-headers \
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo
|
||||
echo
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "+ + + + + + + + + + upgrading pip" && \
|
||||
pip install -U pip && \
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
pip install -U pip && \
|
||||
cd /opt/swift && \
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "- - - - - - - - uninstalling simplejson"
|
||||
pip uninstall --yes simplejson
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cd /
|
||||
rm -rf /build
|
||||
|
@ -1,10 +1,10 @@
|
||||
/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//idlelib/idle_test
|
||||
/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//test
|
||||
/opt/python/usr/local/lib/python3.6//tkinter/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/idlelib/idle_test
|
||||
/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/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/ctypes/test
|
||||
/opt/python/usr/local/lib/python2.7/distutils/tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user