-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add docker-compose testnet #103
base: master
Are you sure you want to change the base?
Conversation
This adds Makefile targets for running a local deployment of talek with podman and docker-compose. testnet-start: starts a talek deployment testnet-stop: stops the deployment testnet-build-config: builds configuration with talekutil testnet-clean: cleans images and stampfiles testnet-cli: starts a shell with talek cli programs
After manually editing talek.json to point at the frontend instance listening on :8080 I wasn't able to read/write data using talekclient. For example:
|
You should be able to replicate this by using the Makefile target testnet-start and testnet-cli, where the client configuration is written to /talek_net/talek.json inside the container |
talek_net/docker-compose.yml
Outdated
restart: "no" | ||
image: talek | ||
volumes: | ||
- ./:/talek_net |
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_mnt
or something that disambiguates from the docker network net
?
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
instead of requiring a python docker image
- use default config file names - use docker workdir - escape quotes so sed line actually works - fix port number
This works for me right now, but I don't know why I need to fork the log handle into a reader and a writer the way I am here before using it. If I read and write using the same handle (without making a copy of it first), the read operations always read from the locations --write would write to *next*, rather than the previous locations which have actually been written to. So, there is either an off-by-one error somewhere or I am confused about how this is supposed to work.
- allow stopping and restarting without regenerating configs - make testnet-test-write-and-read target depend on the network being up
After merging masala's fix for parsing read-only handles from privacylab#110 this works now.
Is this a a point that's ready for a review? |
Yes please. Note that this has the fix from the other open PR (#110) merged to make the write-and-read integration test work. Let me know if you're actually running travis somewhere and I could add it to |
|
This adds Makefile targets to start and stop a local talek deployment using docker-compose and podman or docker. It provides a docker-compose.yml and writes a client configuration file for use with talekclient.