-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from beclab/feat/train-rank-replace-mongo-with-pg
feat: train rank replace mongo with pg
- Loading branch information
Showing
11 changed files
with
51 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:jammy | ||
|
||
RUN apt-get update && \ | ||
apt-get install build-essential -y && \ | ||
apt-get install cmake -y && \ | ||
apt install git -y && \ | ||
apt install curl -y && \ | ||
apt install pkg-config -y && \ | ||
apt-get install libssl-dev -y && \ | ||
apt-get install unzip -y && \ | ||
apt-get install protobuf-compiler -y | ||
|
||
RUN cd /opt && \ | ||
curl -LO https://go.dev/dl/go1.20.11.linux-amd64.tar.gz && \ | ||
tar -xvzf go1.20.11.linux-amd64.tar.gz && \ | ||
mv go /usr/local | ||
ENV PATH $PATH:/usr/local/go/bin | ||
RUN go env -w GO111MODULE=on | ||
|
||
RUN mkdir -p /opt/prerank-stages && \ | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
|
||
|
||
|
||
|
||
ENTRYPOINT ["tail", "-f", "/dev/null"] |
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,10 @@ | ||
dev_container_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
echo $dev_container_dir | ||
root_dir=$(dirname -- "$dev_container_dir") | ||
echo $root_dir | ||
DOCKER_FILE_PATH=$dev_container_dir/Dockerfile | ||
PREFIX=beclab | ||
|
||
docker build \ | ||
-f ${DOCKER_FILE_PATH} \ | ||
-t ${PREFIX}/prerank_stages_develop $root_dir |
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,2 @@ | ||
export host_code_directory="/home/ubuntu/r4/prerank-stages" | ||
docker run --name prerank_stage_develop -v $host_code_directory:/opt/prerank-stages --net=host -d beclab/prerank_stages_develop |
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