1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Adding ARM SQS binaries and support in image for these.

This commit is contained in:
mike12345567 2024-04-09 18:30:50 +01:00
parent c753ffede9
commit 710ffacc4c
6 changed files with 19 additions and 1 deletions

View file

@ -96,6 +96,8 @@ EXPOSE 5984 4369 9100
CMD ["/opt/couchdb/bin/couchdb"]
FROM base as runner
ARG TARGETARCH
ENV TARGETARCH $TARGETARCH
ENV COUCHDB_USER admin
ENV COUCHDB_PASSWORD admin
@ -126,8 +128,10 @@ ADD clouseau/log4j.properties clouseau/clouseau.ini ./
WORKDIR /opt/couchdb
ADD couch/vm.args couch/local.ini ./etc/
# setup SQS
WORKDIR /opt/sqs
ADD sqs/sqs sqs/better_sqlite3.node ./
ADD sqs ./
RUN chmod +x ./install.sh && ./install.sh
WORKDIR /
ADD runner.v2.sh ./bbcouch-runner.sh

Binary file not shown.

View file

@ -0,0 +1,14 @@
#!/bin/bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"
if [[ $TARGETARCH == arm* ]] ;
then
echo "Installing ARM SQS Client..."
mv $SCRIPT_DIR/arm/* .
rm -r $SCRIPT_DIR/arm
rm -r $SCRIPT_DIR/x86
else
echo "Installing x86-64 SQS Client..."
mv $SCRIPT_DIR/x86/* .
rm -r $SCRIPT_DIR/arm
rm -r $SCRIPT_DIR/x86
fi

BIN
hosting/couchdb/sqs/x86/sqs Executable file

Binary file not shown.