Skip to content

Commit

Permalink
Add Netsync, a tool to download all repos in the network for replay (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 authored Sep 29, 2023
2 parents 35c90d1 + 22d5775 commit ac94974
Show file tree
Hide file tree
Showing 9 changed files with 2,604 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ bsky.auth
# Sonar cursor file
sonar_cursor.json
out/
state.json
netsync-out/
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,27 @@ sc-fire: # Fires supercollider
--hostname alpha.supercollider.jazco.io \
--key-file out/alpha.pem \
--input-file out/alpha_in.cbor

.PHONY: run-netsync
run-netsync: .env ## Runs netsync for local dev
go run ./cmd/netsync --checkout-limit 30 --worker-count 60 --out-dir ../netsync-out

SCYLLA_VERSION := latest
SCYLLA_CPU := 0
SCYLLA_NODES := 127.0.0.1:9042

.PHONY: netsync-playback
netsync-playback: .env ## Runs netsync for local dev
go run ./cmd/netsync --worker-count 96 --out-dir ../netsync-out_2023_08_25 playback --scylla-nodes $(SCYLLA_NODES)

.PHONY: run-scylla
run-scylla:
@echo "==> Running test instance of Scylla $(SCYLLA_VERSION)"
@docker pull scylladb/scylla:$(SCYLLA_VERSION)
@docker run --name scylla -p 9042:9042 --cpuset-cpus=$(SCYLLA_CPU) --memory 1G --rm -d scylladb/scylla:$(SCYLLA_VERSION)
@until docker exec scylla cqlsh -e "DESCRIBE SCHEMA"; do sleep 2; done

.PHONY: stop-scylla
stop-scylla:
@echo "==> Stopping test instance of Scylla $(SCYLLA_VERSION)"
@docker stop scylla
13 changes: 13 additions & 0 deletions cmd/bigsky/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.8"
services:
postgres:
image: "postgres:14"
ports:
- "5432:5432"
volumes:
- type: bind
source: /mnt/postgres
target: /var/lib/postgresql/data
restart: always
environment:
POSTGRES_PASSWORD: 33pAstcHDMszLedQah2EVYNgnxbCP
Loading

0 comments on commit ac94974

Please sign in to comment.