-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
43 lines (33 loc) · 1.08 KB
/
Makefile
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
35
36
37
38
39
40
41
42
FORCE: ;
DNS:=ssievert@opt-a001.discovery.wisc.edu
loop: clean stop
docker-compose rm -f
docker-compose build
docker-compose up -d --remove-orphans # start in background
docker-compose logs -f
stop: FORCE
docker-compose stop
login: FORCE
docker run -i -t salmon_server /bin/bash
watch: FORCE
# for debugging on ec2, `sudo make watch`
docker-compose logs -f
clean: FORCE
rm -f salmon/_out/*.json
rm -f salmon/_out/dump*.rdb
rm -f salmon/_out/salmon*.log
rm -f salmon/_out/redis.csv
paper: FORCE
# from https://joss.readthedocs.io/en/latest/submitting.html#docker
docker run --rm \
--volume $(PWD)/paper:/data \
--user $(id -u):$(id -g) \
--env JOURNAL=joss \
openjournals/paperdraft
up:
rsync --exclude '.mypy_cache' --exclude 'docs' -v -r . $(DNS):~/salmon/
down:
# scp -r $(DNS):~/salmon/examples/queries-searched/data-score-probs cluster-data-score-probs
scp -r $(DNS):~/salmon/examples/queries-searched/data cluster-data-score-probs
paper: FORCE
docker run --rm --volume $(PWD)/paper:/data --user $(id -u):$(id -g) --env JOURNAL=joss openjournals/paperdraft