-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 969 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 969 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
test: ## run testinfra tests against the project
docker run --rm -t \
-v $(shell pwd):/project \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-e SOLID_SERVER_VERSION="${SOLID_SERVER_VERSION}" \
aveltens/docker-testinfra
lint: ## run hadolint against the Dockerfile
docker run --rm -i hadolint/hadolint < src/Dockerfile
build: ## build the docker image
cd src && docker build --tag aveltens/solid-server .
inspect: build ## run a shell in the docker image
docker run --rm -it --entrypoint sh aveltens/solid-server
start: build ## start solid-server docker container
docker run --rm \
-it -d \
-p 8443:8443 \
-u "$(id -u):$(id -g)" \
-v $(shell pwd)/data:/opt/solid/data \
--name solid-server \
aveltens/solid-server
stop: ## stop the solid-server docker container
docker stop solid-server
attach: ## execute a shell in the running solid-server docker container
docker exec -it solid-server sh
.PHONY: test build inspect run attach