forked from tsai/budibase
committed by
GitHub
8 changed files with 60 additions and 7 deletions
Binary file not shown.
@ -0,0 +1,23 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
# Must be root to continue |
||||
|
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi |
||||
|
|
||||
|
# Allow for re-runs |
||||
|
rm -rf /opt/oracle |
||||
|
|
||||
|
echo "Installing oracle instant client" |
||||
|
|
||||
|
# copy and unzip package |
||||
|
mkdir -p /opt/oracle |
||||
|
cp scripts/integrations/oracle/instantclient/linux/arm64/basiclite-19.10.zip /opt/oracle |
||||
|
cd /opt/oracle |
||||
|
unzip -qq basiclite-19.10.zip -d . |
||||
|
rm *.zip |
||||
|
mv instantclient* instantclient |
||||
|
|
||||
|
# update runtime link path |
||||
|
sh -c "echo /opt/oracle/instantclient > /etc/ld.so.conf.d/oracle-instantclient.conf" |
||||
|
ldconfig /etc/ld.so.conf.d |
||||
|
|
||||
|
echo "Installation complete" |
||||
@ -0,0 +1,10 @@ |
|||||
|
#!/bin/bash |
||||
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )" |
||||
|
if [[ $TARGETARCH == arm* ]] ; |
||||
|
then |
||||
|
echo "Installing ARM Oracle instant client..." |
||||
|
$SCRIPT_DIR/arm64/install.sh |
||||
|
else |
||||
|
echo "Installing x86-64 Oracle instant client..." |
||||
|
$SCRIPT_DIR/x86-64/install.sh |
||||
|
fi |
||||
@ -0,0 +1,4 @@ |
|||||
|
#!/bin/bash |
||||
|
sudo apt-get install -y qemu qemu-user-static |
||||
|
docker buildx create --name budibase |
||||
|
docker buildx use budibase |
||||
@ -1,11 +1,16 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
dir=$(pwd) |
dir=$(pwd) |
||||
mv dist / |
declare -a keep=("dist" "package.json" "yarn.lock" "client" "builder" "build" "pm2.config.js" "docker_run.sh") |
||||
mv package.json / |
for moveDir in "${keep[@]}" |
||||
|
do |
||||
|
mv $moveDir / 2>/dev/null |
||||
|
done |
||||
cd / |
cd / |
||||
rm -r $dir |
rm -r $dir |
||||
mkdir $dir |
mkdir $dir |
||||
mv /dist $dir |
for keepDir in "${keep[@]}" |
||||
mv /package.json $dir |
do |
||||
|
mv /$keepDir $dir/ 2>/dev/null |
||||
|
done |
||||
cd $dir |
cd $dir |
||||
NODE_ENV=production yarn |
NODE_ENV=production yarn |
||||
|
|||||
@ -0,0 +1,8 @@ |
|||||
|
#!/bin/bash |
||||
|
if [[ $TARGETARCH == arm* ]] ; |
||||
|
then |
||||
|
wget https://dl.min.io/server/minio/release/linux-arm64/minio |
||||
|
else |
||||
|
wget https://dl.min.io/server/minio/release/linux-amd64/minio |
||||
|
fi |
||||
|
chmod +x minio |
||||
Loading…
Reference in new issue