This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 1 - initial dockerfile which runs with GUI server * 2 - cli takes in ccxt-rest-url param on the trade and server commands * 3 - better error message when ccxt cannot be reached * 4 - set ccxt-rest-url from server command which uses it to load exchanges in options_metadata.go * 5 - updated Dockerfile to run any command using the kelp binary * 6 - ccxt-rest-url param is set on the root command so its common for all subcommands * 7 - updated Dockerfile to pull tags * 8 - add volume mounting to the sameple docker command
- Loading branch information
1 parent
744258f
commit b612070
Showing
9 changed files
with
88 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM golang:1.12.7 | ||
|
||
LABEL maintainer="Nikhil Saraf <Github: @nikhilsaraf>" | ||
|
||
# install yarn | ||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
RUN apt update | ||
RUN apt -y install yarn | ||
|
||
# set working dir | ||
WORKDIR /go/src/github.com/stellar/kelp | ||
RUN pwd | ||
|
||
# install glide | ||
RUN curl -s https://glide.sh/get | sh | ||
|
||
# install kelp | ||
ENV GOPATH /go | ||
RUN git clone https://github.com/stellar/kelp.git . | ||
RUN git fetch --tags | ||
RUN glide install | ||
RUN ./scripts/build.sh | ||
|
||
# set ulimit | ||
RUN ulimit -n 10000 | ||
|
||
# use command line arguments from invocation of docker run against this ENTRYPOINT command - https://stackoverflow.com/a/40312311/1484710 | ||
ENTRYPOINT ["./bin/kelp"] | ||
|
||
# sample command to run this container as a daemon process: | ||
# docker run -v `pwd`/ops:/go/src/github.com/stellar/kelp/bin/ops -d -p 8011:8011 <image> server -p 8011 --ccxt-rest-url=http://host.docker.internal:3000 | ||
# this assumes that you are running ccxt on port 3000 outside this kelp docker container | ||
# the three port numbers (8011 in the example above) must be the same and must be specified | ||
# the first part of the -v argument is the directory where you want to save the kelp configs and kelp logs from the bots created in this container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters