Skip to content

Commit 049231a

Browse files
authored
pinning docker image base (#385)
* pinning docker image base Signed-off-by: tbartley94 <tbartley@nvidia.com> * adding tty fix for tests Signed-off-by: tbartley94 <tbartley@nvidia.com> --------- Signed-off-by: tbartley94 <tbartley@nvidia.com>
1 parent 0153962 commit 049231a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tools/text_processing_deployment/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Dockerfile for C++ (inverse) text normalization backend Sparrowhawk https://github.com/google/sparrowhawk
1717

1818
# set base image (host OS)
19-
FROM continuumio/miniconda3
19+
FROM continuumio/miniconda3:25.3.1-1
2020

2121

2222
# set the working directory in the container

tools/text_processing_deployment/docker/launch.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ elif [[ $MODE == "test_itn_grammars" ]]; then
5050
fi
5151

5252
echo $MOUNTS
53-
docker run -it -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 --rm \
53+
# Use -it for interactive mode, -i only for test mode
54+
if [[ $MODE == "interactive" ]]; then
55+
DOCKER_FLAGS="-it"
56+
else
57+
DOCKER_FLAGS="-i"
58+
fi
59+
docker run $DOCKER_FLAGS -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 --rm \
5460
--shm-size=4g \
5561
--ulimit memlock=-1 \
5662
--ulimit stack=67108864 \

0 commit comments

Comments
 (0)