-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 679 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Add your keys here
OPENAI_API_KEY := ""
GOOSEAI_API_KEY := ""
AI21_API_KEY := ""
IMAGE := loom
SHELL = /bin/sh
CURRENT_UID := $(shell id -u)
CURRENT_GID := $(shell id -g)
export CURRENT_UID
export CURRENT_GID
install:
echo "Make sure you are using python version 3.9.13 or over"
sudo apt install python-tk
build:
docker build -t $(IMAGE) .
run:
docker run -it --rm \
-v $(PWD)/data:/app/data \
-v $(PWD)/examples:/app/examples \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-e DISPLAY=$(DISPLAY) \
-e OPENAI_API_KEY=$(OPENAI_API_KEY) \
-e GOOSEAI_API_KEY=$(GOOSEAI_API_KEY) \
-e AI21_API_KEY=$(AI21_API_KEY) \
-u=$(CURRENT_UID):$(CURRENT_GID) \
$(IMAGE)