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

add dockerfile #537

Merged
merged 1 commit into from
May 5, 2024
Merged

add dockerfile #537

merged 1 commit into from
May 5, 2024

Conversation

sancppp
Copy link
Contributor

@sancppp sancppp commented May 5, 2024

This PR provides a way to run ecapture containerized. for better deployment in the background.

Specifically, a docker image will be built and uploaded to dockerhub at release tag time

I have done some simple tests, and ecapture works fine:

bash:
  sudo docker run --rm --privileged=true -v /usr/bin/bash:/usr/bin/bash sancpp/ecapture bash --bash="/usr/bin/bash"

gotls:
  sudo docker run --rm --privileged=true --net=host -v  ${HOME}/test/test_gotls:/test sancpp/ecapture gotls --elfpath="/test/main" --hex

tls:
  sudo docker run --rm --privileged=true --net=host -v /etc:/etc -v /usr:/usr -v ${PWD}:/output sancpp/ecapture tls -m pcap -i wlp3s0 --pcapfile=/output/ecapture.pcapng tcp port 443

mysqld:
  sudo docker run --rm -v mysqld-file:/usr/sbin --name mysql_test -e MYSQL_ROOT_PASSWORD=123456 mysql:8.0
  sudo docker run --rm --privileged=true --volumes-from mysql_test sancpp/ecapture mysqld -m="/usr/sbin/mysqld"
  sudo docker exec -it mysql_test bash
    mysql -u root -p # password=123456
      show databases;

CleanShot_2024-05-05_at_13 21 25@2x

Todo List:

@cfc4n cfc4n added the enhancement New feature or request label May 5, 2024
Copy link
Member

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have registered an account with Docker Hub and configured the Github Token.

https://hub.docker.com/r/gojue/ecapture

.github/workflows/release.yml Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@cfc4n cfc4n self-assigned this May 5, 2024
Copy link
Member

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks.

@cfc4n cfc4n merged commit 84cab57 into gojue:master May 5, 2024
6 checks passed
@sancppp sancppp deleted the add_dockerfile branch May 5, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants