File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -121,12 +121,13 @@ RUN cargo install --path .
121
121
# # Launcher builder ############################################################
122
122
FROM rust-builder as launcher-builder
123
123
124
+ ARG GIT_COMMIT_HASH
124
125
COPY launcher launcher
125
126
126
127
WORKDIR /usr/src/launcher
127
128
128
129
# RUN --mount=type=cache,target=/root/.cargo --mount=type=cache,target=/usr/src/launcher/target cargo install --path .
129
- RUN cargo install --path .
130
+ RUN env GIT_COMMIT_HASH=${GIT_COMMIT_HASH} cargo install --path .
130
131
131
132
# # Tests base ##################################################################
132
133
FROM base as test-base
Original file line number Diff line number Diff line change 1
1
SHELL := /bin/bash
2
2
3
+ GIT_COMMIT_HASH := $(shell git rev-parse --short HEAD)
4
+
3
5
build :
4
- DOCKER_BUILDKIT=1 docker build --progress=plain --target=server-release -t text-gen-server:0 .
6
+ DOCKER_BUILDKIT=1 docker build --progress=plain --target=server-release --build-arg GIT_COMMIT_HASH= $( GIT_COMMIT_HASH ) - t text-gen-server:0 .
5
7
docker images
6
8
7
9
all : help
@@ -16,7 +18,7 @@ install-router:
16
18
cd router && cargo install --path .
17
19
18
20
install-launcher :
19
- cd launcher && cargo install --path .
21
+ cd launcher && env GIT_COMMIT_HASH= $( GIT_COMMIT_HASH ) cargo install --path .
20
22
21
23
install : install-server install-router install-launcher install-custom-kernels
22
24
Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ fn main() -> ExitCode {
105
105
} else {
106
106
tracing_subscriber:: fmt ( ) . compact ( ) . init ( ) ;
107
107
}
108
+ // log TGIS commit hash
109
+ if let Some ( commit_hash) = option_env ! ( "GIT_COMMIT_HASH" ) {
110
+ info ! ( "TGIS Commit hash: {commit_hash}" ) ;
111
+ }
108
112
109
113
info ! ( "Launcher args: {:?}" , args) ;
110
114
if args. cuda_process_memory_fraction <= 0.0 || args. cuda_process_memory_fraction > 1.0 {
You can’t perform that action at this time.
0 commit comments