Skip to content

Commit

Permalink
Fixing makefile a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
d-dawg78 committed Jul 26, 2024
1 parent 11e6fe5 commit af9acb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ EVALUATION_DIR := evaluation
FOUNDATION_DIR := foundation
TRAINING_DIR := training
SPLITS_DIR := splits
# DATA_DIR := data

DOCKER_PARAMS= -it --rm --ipc=host --name=$(DOCKER_CONTAINER_NAME)
# Specify GPU device(s) to use. Expand shared memory size for pre-training task.
Expand All @@ -17,14 +18,15 @@ DOCKER_RUN_MOUNT= docker run $(DOCKER_PARAMS) \
-v $(PWD)/$(TRAINING_DIR)/:/workspace/$(TRAINING_DIR)/ \
-v $(PWD)/$(SPLITS_DIR)/:/workspace/$(SPLITS_DIR)/ \
$(DOCKER_IMAGE_TAG)
# -v $(PWD)/$(DATA_DIR)/:/workspace/$(DATA_DIR)/

usage:
@echo "Available commands:\n-----------"
@echo " build Build the Docker image"
@echo " run Run the Docker image in a container, after building it. Then launch an interactive bash session in the container while mounting the current directory"
@echo " stop Stop the container if it is running"
@echo " logs Display the logs of the container"
@echo " exec Attach to running container"
@echo " attach Attach to running container"
@echo " qa-check Check if code is nice and clean"
@echo " qa-clean Lint and format code"

Expand All @@ -41,7 +43,7 @@ logs:
docker logs -f --tail 1000 $(DOCKER_CONTAINER_NAME)

attach:
docker attch ${DOCKER_CONTAINER_NAME}
docker attach ${DOCKER_CONTAINER_NAME}

qa-check:
poetry run mypy $(EVALUATION_DIR) $(FOUNDATION_DIR) $(TRAINING_DIR) $(SPLITS_DIR)
Expand Down

0 comments on commit af9acb6

Please sign in to comment.