mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-03 09:29:35 +00:00
chore: Rename tools
directory to deployment
The `tools` directory contains example ansible playbook, systemd example, and Nginx configuration example for the server. The directory name `deployment` for that stuffs much more suitable.
This commit is contained in:
parent
8df90ef5e2
commit
5fae3d565a
9 changed files with 12 additions and 7 deletions
13
Makefile
13
Makefile
|
@ -1,20 +1,23 @@
|
||||||
.PHONY: deploy-prober deploy-server ui client server build
|
|
||||||
|
|
||||||
BINARY_NAME = xmr-nodes
|
BINARY_NAME = xmr-nodes
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
build: client server
|
build: client server
|
||||||
|
|
||||||
|
.PHONY: ui
|
||||||
ui:
|
ui:
|
||||||
go generate ./...
|
go generate ./...
|
||||||
|
|
||||||
|
.PHONY: client
|
||||||
client:
|
client:
|
||||||
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/${BINARY_NAME}-client-linux-amd64
|
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/${BINARY_NAME}-client-linux-amd64
|
||||||
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags="-s -w" -o bin/${BINARY_NAME}-client-linux-arm64
|
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags="-s -w" -o bin/${BINARY_NAME}-client-linux-arm64
|
||||||
|
|
||||||
|
.PHONY: server
|
||||||
server: ui
|
server: ui
|
||||||
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -tags server -o bin/${BINARY_NAME}-server-linux-amd64
|
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -tags server -o bin/${BINARY_NAME}-server-linux-amd64
|
||||||
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags="-s -w" -tags server -o bin/${BINARY_NAME}-server-linux-arm64
|
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags="-s -w" -tags server -o bin/${BINARY_NAME}-server-linux-arm64
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
go clean
|
go clean
|
||||||
rm -rfv ./bin
|
rm -rfv ./bin
|
||||||
|
@ -24,8 +27,10 @@ clean:
|
||||||
# The deploy-* command doesn't build the binary file, so you need to run `make build` first.
|
# The deploy-* command doesn't build the binary file, so you need to run `make build` first.
|
||||||
# And make sure the inventory and deploy-*.yml file is properly configured.
|
# And make sure the inventory and deploy-*.yml file is properly configured.
|
||||||
|
|
||||||
|
.PHONY: deploy-server
|
||||||
deploy-server:
|
deploy-server:
|
||||||
ansible-playbook -i ./tools/ansible/inventory.ini -l server ./tools/ansible/deploy-server.yml -K
|
ansible-playbook -i ./deployment/ansible/inventory.ini -l server ./deployment/ansible/deploy-server.yml -K
|
||||||
|
|
||||||
|
.PHONY: deploy-prober
|
||||||
deploy-prober:
|
deploy-prober:
|
||||||
ansible-playbook -i ./tools/ansible/inventory.ini -l prober ./tools/ansible/deploy-prober.yml -K
|
ansible-playbook -i ./deployment/ansible/inventory.ini -l prober ./deployment/ansible/deploy-prober.yml -K
|
||||||
|
|
|
@ -7,7 +7,7 @@ Source code of [https://xmr.ditatompel.com](https://xmr.ditatompel.com), a websi
|
||||||
### Server & Prober requirements
|
### Server & Prober requirements
|
||||||
|
|
||||||
- Go >= 1.22
|
- Go >= 1.22
|
||||||
- Linux Machine (AMD64 or ARM64)
|
- Linux Machines (AMD64 or ARM64)
|
||||||
|
|
||||||
### Server requirements
|
### Server requirements
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ Source code of [https://xmr.ditatompel.com](https://xmr.ditatompel.com), a websi
|
||||||
3. Build the binary with `make build`.
|
3. Build the binary with `make build`.
|
||||||
4. Run the service with `./bin/xmr-nodes-server-linux-<YOUR_CPU_ARCH> serve`.
|
4. Run the service with `./bin/xmr-nodes-server-linux-<YOUR_CPU_ARCH> serve`.
|
||||||
|
|
||||||
Systemd example: [./tools/resources/init/xmr-nodes-server.service](./tools/resources/init/xmr-nodes-server.service).
|
Systemd example: [./deployment/init/xmr-nodes-server.service](./deployment/init/xmr-nodes-server.service).
|
||||||
|
|
||||||
### For initial prober setup:
|
### For initial prober setup:
|
||||||
|
|
||||||
|
@ -32,4 +32,4 @@ Systemd example: [./tools/resources/init/xmr-nodes-server.service](./tools/resou
|
||||||
3. Build the binary with `make build`.
|
3. Build the binary with `make build`.
|
||||||
4. Run the service with `./bin/xmr-nodes-client-linux-<YOUR_CPU_ARCH> probe`.
|
4. Run the service with `./bin/xmr-nodes-client-linux-<YOUR_CPU_ARCH> probe`.
|
||||||
|
|
||||||
Systemd example: [xmr-nodes-prober.service](./tools/resources/init/xmr-nodes-prober.service) and [xmr-nodes-prober.timer](./tools/resources/init/xmr-nodes-prober.timer).
|
Systemd example: [xmr-nodes-prober.service](./deployment/init/xmr-nodes-prober.service) and [xmr-nodes-prober.timer](./deployment/init/xmr-nodes-prober.timer).
|
||||||
|
|
Loading…
Reference in a new issue