File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,5 @@ RUN export TF_FORCE_GPU_ALLOW_GROWTH=true
31
31
# RUN pip install jupyterlab
32
32
33
33
# for secrets and debug
34
- ENV WANDB_API_KEY=""
35
34
ENV WANDB_ENTITY=""
36
35
RUN git config --global --add safe.directory /home/${MYUSER}
Original file line number Diff line number Diff line change 9
9
10
10
# Set flag for docker run command
11
11
MYUSER =myuser
12
+ WANDB_API_KEY =$(shell cat ./wandb_key)
12
13
BASE_FLAGS =-it --rm -v ${PWD}:/home/$(MYUSER ) --shm-size 20G
13
- RUN_FLAGS =$(GPUS ) $(BASE_FLAGS )
14
+ RUN_FLAGS =$(GPUS ) $(BASE_FLAGS ) -e WANDB_API_KEY= $( WANDB_API_KEY )
14
15
15
- DOCKER_IMAGE_NAME = jaxmarl
16
- IMAGE = $(DOCKER_IMAGE_NAME ) :latest
16
+ DOCKER_IMAGE_NAME = jaxmarl
17
+ IMAGE = $(DOCKER_IMAGE_NAME ) :latest
17
18
DOCKER_RUN =docker run $(RUN_FLAGS ) $(IMAGE )
18
- USE_CUDA = $(if $(GPUS ) ,true,false)
19
- ID = $(shell id -u)
19
+ USE_CUDA = $(if $(GPUS ) ,true,false)
20
+ ID = $(shell id -u)
20
21
21
22
# make file commands
22
23
build :
You can’t perform that action at this time.
0 commit comments