-
Notifications
You must be signed in to change notification settings - Fork 5
Add docker-compose testnet #103
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
Open
mixmasala
wants to merge
16
commits into
privacylab:master
Choose a base branch
from
katzenpost:add_102_talek_testnet
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6018fe6
update Dockerfile to golang:1.20 and go mod tidy
mixmasala 018de53
Makefile, Dockerfile: add talek testnet make targets
mixmasala 0161abf
make volume mount path talek_shared, use talek-cli image
mixmasala b7b4dd8
fix 2 volume mount paths, mount to talek-shared
mixmasala 2e3b625
set FrontendAddr in client configuration
mixmasala 260c5e3
index replicas from 0
mixmasala ebb2509
use correct replica configuration names
mixmasala c5b277f
talekclient: parse read-only share
mixmasala 16300cf
Merge branch 'master' into add_102_talek_testnet
leif e9c0942
docker testnet: use sed to edit json config
leif adcbbf6
Makefile: robustify cleanup
leif 7149a34
docker testnet: cleanup
leif 0c38005
Makefile: add testnet-test-write-and-read target
leif 4587f57
Makefile: cleanup
leif 11a0333
Merge branch 'fix_108_talekclient_parse_share'
leif e8c6925
testnet-test-write-and-read: use --share
leif File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Dockerfile for talek | ||
| FROM talek-base:latest | ||
| MAINTAINER Masala <masala@riseup.net> | ||
| USER root | ||
|
|
||
| # build and install talek cli tools | ||
| RUN go mod download | ||
| RUN cd cli/talekutil && go install | ||
| RUN cd cli/clinfo && go install | ||
| RUN cd cli/talekclient && go install | ||
| RUN cd cli/talekfrontend && go install | ||
| RUN cd cli/talekreplica && go install | ||
| RUN cd cli/talekutil && go install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| version: "2" | ||
|
|
||
| services: | ||
|
|
||
| frontend: | ||
| restart: "no" | ||
| image: talek | ||
| volumes: | ||
| - ./:/talek_net | ||
| command: talekfrontend --client /talek_net/talek.json --common /talek_net/common.json -l ":8080" --verbose | ||
| network_mode: host | ||
| depends_on: | ||
| - replica1 | ||
| - replica2 | ||
| - replica3 | ||
|
|
||
| replica1: | ||
| restart: "no" | ||
| image: talek | ||
| volumes: | ||
| - ./:/talek_net | ||
| command: talekreplica -f /talek_net/common.json -l ":8081" -c /talek_net/replica1.json | ||
| network_mode: host | ||
|
|
||
| replica2: | ||
| restart: "no" | ||
| image: talek | ||
| volumes: | ||
| - ./:/talek_net | ||
| command: talekreplica -f /talek_net/common.json -l ":8082" -c /talek_net/replica2.json | ||
| network_mode: host | ||
|
|
||
| replica3: | ||
| restart: "no" | ||
| image: talek | ||
| volumes: | ||
| - ./:/talek_net | ||
| command: talekreplica -f /talek_net/common.json -l ":8083" -c /talek_net/replica3.json | ||
| network_mode: host | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe make the volume
talek_shared_mntor something that disambiguates from the docker networknet?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the volume path to talek_shared