Clean a bit
This commit is contained in:
@@ -8,10 +8,10 @@ WORKDIR /app
|
|||||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||||
|
|
||||||
# Install git and Python
|
# Install git and Python
|
||||||
RUN apk update && apk add --no-cache git python3 make g++
|
#RUN apk update && apk add --no-cache git python3 make g++
|
||||||
|
|
||||||
# Create a symlink for python3 as python
|
# Create a symlink for python3 as python
|
||||||
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
#RUN ln -sf /usr/bin/python3 /usr/bin/python
|
||||||
|
|
||||||
# Copy package.json and package-lock.json to the container
|
# Copy package.json and package-lock.json to the container
|
||||||
# COPY package*.json ./
|
# COPY package*.json ./
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Array of known potentially hanging packages
|
|
||||||
hanging_packages=("xmlhttprequest-ssl@latest" "engine.io-parser@latest")
|
|
||||||
|
|
||||||
# Timeout in seconds for each package installation attempt
|
|
||||||
|
|
||||||
|
|
||||||
install_with_timeout() {
|
|
||||||
package=$1
|
|
||||||
echo "Attempting to install $package with a timeout of $timeout_duration seconds."
|
|
||||||
# Start npm install in the background
|
|
||||||
npm install $package --verbose &> $package.log &
|
|
||||||
|
|
||||||
# Get PID of the npm process
|
|
||||||
pid=$!
|
|
||||||
|
|
||||||
# Wait for the npm process to finish or timeout
|
|
||||||
(sleep $timeout_duration && kill -0 $pid 2>/dev/null && kill -9 $pid && echo "Timeout reached for $package, process killed." && echo $package >> exclude.log) &
|
|
||||||
waiter_pid=$!
|
|
||||||
|
|
||||||
# Wait for the npm process to complete
|
|
||||||
wait $pid
|
|
||||||
|
|
||||||
# Kill the waiter process in case npm finished before the timeout
|
|
||||||
kill -0 $waiter_pid 2>/dev/null && kill -9 $waiter_pid
|
|
||||||
}
|
|
||||||
|
|
||||||
# Install potentially hanging packages first with a timeout
|
|
||||||
for package in "${hanging_packages[@]}"; do
|
|
||||||
install_with_timeout $package
|
|
||||||
done
|
|
||||||
@@ -165,7 +165,7 @@ export default function ActiveBots() {
|
|||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(
|
console.log(
|
||||||
'bot List',
|
'bot List',
|
||||||
bots.map((bot) => {
|
bots.map((bot: TradingBot) => {
|
||||||
return bot.name
|
return bot.name
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
import { arbitrum, mainnet } from 'viem/chains'
|
import {arbitrum, mainnet} from 'viem/chains'
|
||||||
import { createConfig } from '@privy-io/wagmi'
|
import {createConfig} from '@privy-io/wagmi'
|
||||||
import { http } from 'wagmi'
|
import {http} from 'wagmi'
|
||||||
|
|
||||||
// Define the Privy App ID - this should be added to your .env file
|
|
||||||
const PRIVY_APP_ID = import.meta.env.VITE_PRIVY_APP_ID || 'your-privy-app-id'
|
|
||||||
|
|
||||||
// Create the Privy Wagmi config with Ethereum and Arbitrum chains
|
// Create the Privy Wagmi config with Ethereum and Arbitrum chains
|
||||||
export const privyWagmiConfig = createConfig({
|
export const privyWagmiConfig = createConfig({
|
||||||
|
|||||||
Reference in New Issue
Block a user