-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) 路 981 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (26 loc) 路 981 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
WEBSH_CLI_BINARY=websh
WEBSH_FRONT_BINARY=webshFrontApp
WEBSH_WS_BINARY=webshWSApp
build-websh-cli:
@echo "Building ${WEBSH_CLI_BINARY} binary..."
cd webshell-cli && env GOOS=linux CGO_ENABLED=0 go build -o ${WEBSH_CLI_BINARY} ./cmd/shell && mv ${WEBSH_CLI_BINARY} ../webshell-ws
@echo "Done!"
build-websh-front:
@echo "Building ${WEBSH_FRONT_BINARY} binary..."
cd webshell-front && env GOOS=linux CGO_ENABLED=0 go build -o ${WEBSH_FRONT_BINARY} ./cmd/web
@echo "Done!"
build-websh-ws: build-websh-cli
@echo "Building ${WEBSH_WS_BINARY} binary..."
cd webshell-ws && env GOOS=linux CGO_ENABLED=0 go build -o ${WEBSH_WS_BINARY} ./cmd/api
@echo "Done!"
## down: stop docker compose
down:
@echo "Stopping docker compose..."
docker-compose down
@echo "Done!"
## up: starts all containers in the background and forcing build without using cache
up:
@echo "Starting Docker images..."
docker-compose build --no-cache
docker-compose up -d
@echo "Docker images started!"