-
Notifications
You must be signed in to change notification settings - Fork 896
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
Define a Dockerfile for local development purposes #20
Conversation
An alternative to this Dockerfile could simply run the |
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
This cannot work as currently documented because docker network create example
docker run --network example --name unauthenticated-jupyter-notebook -p 8888:8888 -d jupyter/base-notebook start-notebook.sh --NotebookApp.token=''
docker run --network example tsunami java -cp "/usr/tsunami/tsunami-main-0.0.2-SNAPSHOT-cli.jar:/usr/tsunami/plugins/*" -Dtsunami-config.location=/usr/tsunami/tsunami.yaml com.google.tsunami.main.cli.TsunamiCli --hostname-target=unauthenticated-jupyter-notebook Minor other feedback:
Note: I'm not affiliated with this project or Google, just giving some feedback... |
@JonZeolla Thanks for the suggestions! Re: the docker network, how about simply running the Tsunami image with |
Have a little side note for this one. I am not sure how Maybe it's possible to do something like this |
@vdjagilev I considered it but I wasn't aware of the |
A bit of an update on this, there is no way to persist variables between RUN commands in Docker and I can't seem to get command interpolation to behave nicely inside the ENTRYPOINT. To be honest, I don't really see the point in specifying the version number in the filename of the generated jar. Could we perhaps drop it and have a standard filename? |
How I've solved this in the past is to use a build arg ( While its a completely different project and context, here is a concrete example: |
@JonZeolla Yep that would definitely work, it's just that I would've preferred a fully self-contained Docker image that the end user could simply |
What about just finding the jar at build time and rename it to a standard name like |
@JonZeolla ...it's so obvious that I didn't think about it 😅 |
Maybe it's better to leave old documentation and divide installation approaches into 2 topics (with docker and without docker)? Use case: Running docker in VM with Kali Linux can be memory-expensive |
d5c76e7
to
beb6826
Compare
#18