mirror of
https://github.com/0x1d/drift-keeper.git
synced 2025-12-14 18:35:20 +01:00
Use original Dockerfile to build image
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -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" ]
|
|
||||||
@@ -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.
|
> 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.
|
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:
|
More information:
|
||||||
- https://github.com/drift-labs/keeper-bots-v2/
|
- https://github.com/drift-labs/keeper-bots-v2/
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ global:
|
|||||||
eventSubscriberPollingInterval: 5000
|
eventSubscriberPollingInterval: 5000
|
||||||
bulkAccountLoaderPollingInterval: 5000
|
bulkAccountLoaderPollingInterval: 5000
|
||||||
|
|
||||||
useJito: true
|
useJito: false
|
||||||
jitoBlockEngineUrl:
|
jitoBlockEngineUrl:
|
||||||
jitoAuthPrivateKey:
|
jitoAuthPrivateKey:
|
||||||
|
|
||||||
|
|||||||
7
ctl.sh
7
ctl.sh
@@ -56,11 +56,11 @@ function build {
|
|||||||
}
|
}
|
||||||
function keeper {
|
function keeper {
|
||||||
mkdir -p .build
|
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
|
#pushd .build/keeper-bots-v2
|
||||||
# git checkout 21fd791d142490fe033b5e25719927c106a0aaf2
|
# git checkout 21fd791d142490fe033b5e25719927c106a0aaf2
|
||||||
#popd
|
#popd
|
||||||
docker build -f Dockerfile -t ${DOCKER_IMAGE} .build/keeper-bots-v2
|
docker build -t ${DOCKER_IMAGE} .build/keeper-bots-v2
|
||||||
rm -rf .build
|
rm -rf .build
|
||||||
}
|
}
|
||||||
function tracker {
|
function tracker {
|
||||||
@@ -105,6 +105,9 @@ function run {
|
|||||||
function all {
|
function all {
|
||||||
docker compose up
|
docker compose up
|
||||||
}
|
}
|
||||||
|
function keeper {
|
||||||
|
docker compose up keeper
|
||||||
|
}
|
||||||
function autoswap {
|
function autoswap {
|
||||||
pushd auto-swap
|
pushd auto-swap
|
||||||
npm start
|
npm start
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ services:
|
|||||||
image: ${DOCKER_IMAGE}
|
image: ${DOCKER_IMAGE}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
command: "node ./lib/index.js --config-file=/app/config.yaml"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/app/config.yaml
|
- ./config.yaml:/app/config.yaml
|
||||||
auto-swap:
|
auto-swap:
|
||||||
|
|||||||
Reference in New Issue
Block a user