Installing liberasurecode from Alpine Linux repos instead of building from source.

closes #1831136

Change-Id: Ic9a2844fffc6dba6a4d44a9712edbb5cd91f0470
This commit is contained in:
Ehud Kaldor 2019-06-05 11:29:28 -07:00
parent 769c0fb7fb
commit 17fd725707
4 changed files with 3 additions and 27 deletions

View File

@ -35,11 +35,6 @@ RUN mkdir /etc/swift && \
echo && \ echo && \
echo && \ echo && \
echo && \ echo && \
echo "================ compiling liberasurecode ===================" && \
/opt/swift/docker/install_scripts/17_compile_liberasurecode.sh && \
echo && \
echo && \
echo && \
echo "================ starting swift_install ===================" && \ echo "================ starting swift_install ===================" && \
/opt/swift/docker/install_scripts/50_swift_install.sh && \ /opt/swift/docker/install_scripts/50_swift_install.sh && \
echo && \ echo && \

View File

@ -1,7 +1,10 @@
#!/bin/sh #!/bin/sh
echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
apk add --update \ apk add --update \
linux-headers \ linux-headers \
liberasurecode@testing \
liberasurecode-dev@testing \
gnupg \ gnupg \
git \ git \
curl \ curl \
@ -13,10 +16,6 @@ apk add --update \
sqlite-libs \ sqlite-libs \
sqlite-dev \ sqlite-dev \
xfsprogs \ xfsprogs \
autoconf \
automake \
libtool \
make \
zlib-dev \ zlib-dev \
g++ \ g++ \
libffi \ libffi \

View File

@ -1,14 +0,0 @@
#!/bin/sh
# Get liberasurecode
cd $BUILD_DIR
git clone https://github.com/openstack/liberasurecode.git
cd liberasurecode/
./autogen.sh
./configure
make
#make test
make install
# cp -r /usr/local/lib /usr/lib/python3.6/site-packages/ && \
cd $BUILD_DIR
rm -rf $BUILD_DIR/liberasurecode

View File

@ -7,10 +7,6 @@ apk del gnupg
apk del git apk del git
apk del openssl-dev apk del openssl-dev
apk del sqlite-dev apk del sqlite-dev
apk del autoconf
apk del automake
apk del libtool
apk del make
apk del zlib-dev apk del zlib-dev
apk del g++ apk del g++
apk del libffi-dev apk del libffi-dev