Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 114751f

Browse files
authored
Attach nltk and HF caches to docker containers in CI (#4232)
* attach docker volumes for nltk and HF caches * fix * formatting
1 parent 7d9b72c commit 114751f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ MD_DOCS_EXTRAS = $(addprefix $(MD_DOCS_ROOT),README.md LICENSE.md ROADMAP.md CON
1313
DOCKER_TAG = latest
1414
DOCKER_IMAGE_NAME = allennlp/allennlp:$(DOCKER_TAG)
1515
DOCKER_TEST_IMAGE_NAME = allennlp/test:$(DOCKER_TAG)
16-
DOCKER_RUN_CMD = docker run --rm -v $$HOME/.allennlp:/root/.allennlp
16+
DOCKER_RUN_CMD = docker run --rm \
17+
-v $$HOME/.allennlp:/root/.allennlp \
18+
-v $$HOME/.cache/torch:/root/.cache/torch \
19+
-v $$HOME/nltk_data:/root/nltk_data
1720

1821
ifeq ($(shell uname),Darwin)
1922
ifeq ($(shell which gsed),)

0 commit comments

Comments
 (0)