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

Fix building of custom container images #24

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ For more information about the project, please refer to the [final report](REPOR
- [Prerequisites](#prerequisites)
- [Install Python Dependencies](#install-python-dependencies)
- [Installing PI](#installing-pi)
- [Build Custom Podman Images](#build-custom-podman-images)
- [Running examples](#running-examples)


Expand Down Expand Up @@ -46,18 +45,6 @@ The p4 library files in your `.venv` will be owned by the root user. Make sure t
sudo chown -R $USER .venv
```

### Build Custom Podman Images
```bash
make images
```
This will build the following images:
- `tcp-client`: A simple TCP client that sends a message to a server (this will run in h1-pod)
- `tcp-server`: A simple TCP server that listens for a message from a client (this will run in all other pods)

You can configure the target IP of the client and the port of the server in the [tcp/Containerfile.server](tcp/Containerfile.server) and [tcp/Containerfile.client](tcp/Containerfile.client) files respectively.

Furthermore, you can specify which image to run in the hosts by changing the `IMG` and `ARGS` variables in [scripts/switch_container/build.sh](scripts/switch_container/build.sh).

## Running examples
There are three examples in the `examples` directory:
- [process_migration](examples/process_migration): Process migration demo using network namespaces
Expand Down
2 changes: 1 addition & 1 deletion examples/host_containers/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include ../../utils/Makefile

all: compile build controller
all: images compile build controller

terminals: h1 h2 h3 h4

Expand Down
2 changes: 1 addition & 1 deletion examples/switch_container/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include ../../utils/Makefile

all: compile build controller
all: images compile build controller

terminals: h1 h2 h3 h4

Expand Down
Loading