-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (39 loc) · 1.52 KB
/
Copy pathMakefile
File metadata and controls
54 lines (39 loc) · 1.52 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
release:
lein release
docker-up: docker-down docker-rm
docker compose up
docker-down:
docker compose down --remove-orphans
docker-build:
docker compose build --no-cache
docker-rm:
docker compose rm --force
docker-psql:
psql --port 10150 --host localhost -U test test
toc-install:
npm install --save markdown-toc
toc-build:
node_modules/.bin/markdown-toc -i README.md --maxdepth 2
install:
lein sub with-profile uberjar install
clean:
find . -type d -name target -exec rm -rf {} \;
# https://gist.github.com/achesco/b893fb55b90651cf5f4cc803b78e19fd
certs-generate:
mkdir -p certs
cd certs && umask u=rw,go= && openssl req -days 3650 -new -text -nodes -subj '/C=US/ST=Test/L=Test/O=Personal/OU=Personal/emailAddress=test@test.com/CN=localhost' -keyout server.key -out server.csr
cd certs && umask u=rw,go= && openssl req -days 3650 -x509 -text -in server.csr -key server.key -out server.crt
cd certs && umask u=rw,go= && cp server.crt root.crt
cd certs && rm server.csr
cd certs && umask u=rw,go= && openssl req -days 3650 -new -nodes -subj '/C=US/ST=Test/L=Test/O=Personal/OU=Personal/emailAddress=test@test.com/CN=test' -keyout client.key -out client.csr
cd certs && umask u=rw,go= && openssl x509 -days 3650 -req -CAcreateserial -in client.csr -CA root.crt -CAkey server.key -out client.crt
cd certs && rm client.csr
test:
lein sub install
PG_MIGRATION_PASS=test lein sub test
.phony: test
snapshot:
lein sub with-profile uberjar install
lein sub with-profile uberjar deploy
repl: install
cd pg-core && make repl