Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc docker mixnet and ci mods #13

Merged
merged 7 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build
on:
push:
branches:
- '**'
- main
pull_request:
branches:
- '**'
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Test Walletshield
continue-on-error: true
run: |
curl -x http://localhost:8080 -s -o - -w "HTTP Status: %{http_code}\n" http://example.com
curl -x http://localhost:7070 -s -o - -w "HTTP Status: %{http_code}\n" http://example.com

- name: Stop the Walletshield
run: |
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apps/walletshield/walletshield
server_plugins/cbor_plugins/http_proxy/cmd/http_proxy/http_proxy
docker/voting_mixnet
docker/*.stamp
docker/katzenpost
docker/voting_mixnet
genconfig/genconfig
server_plugins/cbor_plugins/http_proxy/cmd/http_proxy/http_proxy
12 changes: 7 additions & 5 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ help:
@echo " status - show testnet consensus status"
@echo " show-latest-vote - does what it says"
@echo " run-ping - send a ping over the testnet"
@echo " run-walletshield - run walletshield app with testnet"
@echo " stop-walletshield - stop running walletshield"
@echo " clean-bin - stop, and delete compiled binaries"
@echo " clean-local - stop, and delete data and binaries"
@echo " clean-local-dryrun - show what clean-local would delete"
Expand All @@ -34,7 +36,7 @@ lDMax=3000
lM=0.0005
lMMax=100

UserForwardPayloadLength=2000
UserForwardPayloadLength=30000

# hybrid ctidh PQ can work here, but requires manually building ctidh.
nike=x25519
Expand Down Expand Up @@ -66,10 +68,10 @@ docker_user?=$(shell if echo ${docker}|grep -q podman; then echo 0:0; else echo

opt_workspace=/go/opt
katzenpost_workspace=/go/katzenpost
katzenpost_dir=$(HOME)/katzenpost
katzenpost_dir=./katzenpost

opt_docker_args=--user ${docker_user} --volume $(shell readlink -f ..):$(opt_workspace) --workdir $(opt_workspace)
katzenpost_docker_args=--user ${docker_user} --volume $(katzenpost_dir):$(katzenpost_workspace) --workdir $(katzenpost_workspace)
katzenpost_docker_args=--user ${docker_user} --volume $(shell readlink -f $(katzenpost_dir)):$(katzenpost_workspace) --workdir $(katzenpost_workspace)

replace_name=$(shell if echo ${docker}|grep -q podman; then echo " --replace --name"; else echo " --name"; fi)
i_if_podman=$(shell if echo ${docker}|grep -q podman; then echo " -i"; else echo; fi)
Expand Down Expand Up @@ -210,7 +212,7 @@ clean-local-dryrun:
clean: clean-images clean-local
-$(docker) ps -a|grep katzenpost|cat
-$(docker) images|grep katzenpost|cat
rm -r $(katzenpost_dir)
rm -rf $(katzenpost_dir)

$(net_name)/walletshield.$(distro): $(distro)_go_mod.stamp $(net_name)/http_proxy.$(distro)
$(docker) run $(opt_docker_args) $(mount_net_name) katzenpost-alpine_base \
Expand All @@ -219,7 +221,7 @@ $(net_name)/walletshield.$(distro): $(distro)_go_mod.stamp $(net_name)/http_prox

run-walletshield: $(net_name)/walletshield.$(distro) $(net_name)/running.stamp
$(docker) run -d --network=host $(opt_docker_args) $(mount_net_name) --name walletshield --rm katzenpost-$(distro)_go_mod \
/$(net_name)/walletshield.$(distro) -config /$(net_name)/client/client.toml -listen :8080 -log_level DEBUG
/$(net_name)/walletshield.$(distro) -config /$(net_name)/client/client.toml -listen :7070 -log_level DEBUG

stop-walletshield:
$(docker) stop walletshield
Expand Down
Loading