Skip to content

add docker mode#5

Merged
Centaurus99 merged 2 commits intomainfrom
docker
Feb 26, 2024
Merged

add docker mode#5
Centaurus99 merged 2 commits intomainfrom
docker

Conversation

@Centaurus99
Copy link
Copy Markdown
Member

@Centaurus99 Centaurus99 commented Feb 25, 2024

Usage

Modify the docker-compose.yml, replacing the client and server image with the application for testing. Then,

  1. cargo build -p rattan-cli --release
  2. docker-compose build
  3. docker-compose up

Problems

  1. Send packets via veth need peer mac address. But in docker mode, get_container_env cannot get peer veth. Now we fake a peer veth with the broadcast address to send packets.
  2. Testing can only begin after Rattan has finished starting up.

@BobAnkh BobAnkh self-requested a review February 25, 2024 17:13
@Centaurus99 Centaurus99 changed the title [WIP] refactor the user interface add docker mode Feb 26, 2024
@Centaurus99 Centaurus99 merged commit a660b70 into main Feb 26, 2024
@Centaurus99 Centaurus99 deleted the docker branch February 26, 2024 12:21
Centaurus99 added a commit that referenced this pull request Mar 6, 2024
# This is the 1st commit message:
feat(device): add packet queue to bandwidth device

Refs: #6

# This is the commit message #2:

fix(device): the correctness of packet enqueue in the queue

Refs: #6

# This is the commit message #3:

test(bandwidth): add test for DropTailQueue

Refs: #6

# This is the commit message #4:

feat(device): add control interface to packet queue

Refs: #6

# This is the commit message #5:

fix(device): return an error when setting an empty config to BwDevice

Refs: #6

# This is the commit message #6:

test(bandwidth): add test for DropHeadQueue

Refs: #6

# This is the commit message #7:

feat(device): remove peek function in PacketQueue

Ref: #6

# This is the commit message #8:

feat(device): add CoDel queue and its test

Refs: #6

# This is the commit message #9:

fix: fix clippy warnings

# This is the commit message #10:

ci: add a mantic/6.6 VM (#8)

# This is the commit message #11:

chore: ignore .vscode

# This is the commit message #12:

ci: add cargo audit
This was referenced Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant