Skip to content

add dockerfile#537

Merged
cfc4n merged 1 commit into
gojue:masterfrom
sancppp:add_dockerfile
May 5, 2024
Merged

add dockerfile#537
cfc4n merged 1 commit into
gojue:masterfrom
sancppp:add_dockerfile

Conversation

@sancppp
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread .github/workflows/release.yml
Comment thread README.md Outdated
@cfc4n cfc4n self-assigned this May 5, 2024
Comment thread .github/workflows/release.yml
Copy link
Copy Markdown
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
@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.

2 participants