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
|
#!/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
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
apk add --update \
|
apk add --update \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "+ + + + + + + + + + upgrading pip" && \
|
echo "+ + + + + + + + + + upgrading pip" && \
|
||||||
pip install -U pip && \
|
pip install -U pip && \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
pip install -U pip && \
|
pip install -U pip && \
|
||||||
cd /opt/swift && \
|
cd /opt/swift && \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "- - - - - - - - uninstalling simplejson"
|
echo "- - - - - - - - uninstalling simplejson"
|
||||||
pip uninstall --yes simplejson
|
pip uninstall --yes simplejson
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
rm -rf /build
|
rm -rf /build
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user