From 1fbe39b96a87232ddcb4373b31714966caf0f79f Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Tue, 25 Mar 2025 17:25:52 +0100 Subject: [PATCH] Use original Dockerfile to build image --- Dockerfile | 17 ----------------- README.md | 1 - config.yaml | 2 +- ctl.sh | 7 +++++-- docker-compose.yaml | 1 + 5 files changed, 7 insertions(+), 21 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 603567d..0000000 --- a/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM public.ecr.aws/bitnami/node:18 -RUN apt-get install git -ENV NODE_ENV=production -RUN npm install -g yarn -RUN npm install -g typescript -RUN npm install -g ts-node - -WORKDIR /app - -COPY . . -RUN yarn install -RUN yarn build -RUN yarn install --production - -EXPOSE 9464 - -CMD [ "yarn", "start", "--config-file=config.yaml" ] \ No newline at end of file diff --git a/README.md b/README.md index de5436b..8e54044 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ > Keeper Bots in the Drift Protocol keep the protocol operational by performing automated actions as autonomous off-chain agents. Keepers are rewarded depending on the duties that they perform. This repository contains tools to build, run and monitor Drift Keeper bots on Solana. -Checkout my article about all that stuff: https://nitro.dcentral.systems/drift-keeper-bot More information: - https://github.com/drift-labs/keeper-bots-v2/ diff --git a/config.yaml b/config.yaml index b80e92c..00125ee 100644 --- a/config.yaml +++ b/config.yaml @@ -56,7 +56,7 @@ global: eventSubscriberPollingInterval: 5000 bulkAccountLoaderPollingInterval: 5000 - useJito: true + useJito: false jitoBlockEngineUrl: jitoAuthPrivateKey: diff --git a/ctl.sh b/ctl.sh index 565989c..c9b4f7f 100755 --- a/ctl.sh +++ b/ctl.sh @@ -56,11 +56,11 @@ function build { } function keeper { mkdir -p .build - git clone https://github.com/drift-labs/keeper-bots-v2 -b mainnet-beta .build/keeper-bots-v2 + git clone https://github.com/drift-labs/keeper-bots-v2 -b mainnet-beta --recurse-submodules .build/keeper-bots-v2 #pushd .build/keeper-bots-v2 # git checkout 21fd791d142490fe033b5e25719927c106a0aaf2 #popd - docker build -f Dockerfile -t ${DOCKER_IMAGE} .build/keeper-bots-v2 + docker build -t ${DOCKER_IMAGE} .build/keeper-bots-v2 rm -rf .build } function tracker { @@ -105,6 +105,9 @@ function run { function all { docker compose up } + function keeper { + docker compose up keeper + } function autoswap { pushd auto-swap npm start diff --git a/docker-compose.yaml b/docker-compose.yaml index 423e6c8..01695d1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,6 +6,7 @@ services: image: ${DOCKER_IMAGE} restart: unless-stopped env_file: .env + command: "node ./lib/index.js --config-file=/app/config.yaml" volumes: - ./config.yaml:/app/config.yaml auto-swap: