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

tail: added tail to dynamic apps #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Binary file added lib/x86_64-linux-gnu/libc.so.6
Binary file not shown.
Binary file added lib64/ld-linux-x86-64.so.2
Binary file not shown.
75 changes: 75 additions & 0 deletions tail/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Python Interpreter

This is the Python interpreter, as an ELF file pulled out from a standard Linux filesystem (Ubuntu 22.04).
It's meant to be used with the binary-compatibility mode of Unikraft.
Comment on lines +1 to +4
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not Python, this is tail.


The contents are:

* `tail`: the binary file
* `test.txt`: a txt file that can be used to test
* `lib/`, `lib64/`: pre-extracted dynamic libraries required to run the server
* `README.md`: this file

## (Re)Extract Dynamic Libraries

You can (re)extract the dynamic libraries required to run the server by using:

```console
../../extract.sh /usr/bin/tail
```

The command output signals the copying of the required dynamic libraries:

```text
Copying /lib/x86_64-linux-gnu/libc.so.6 ...
Copying /lib64/ld-linux-x86-64.so.2 ...
```


## Run tail on Linux

Copy link
Contributor

Choose a reason for hiding this comment

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

Add wording, something like: "To run tail on Linux, add a test file as an argument:"


```
tail text.txt
```


Comment on lines +35 to +36
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

You'll get the reply:

```text
a
b
c
d
e
f
g
h
i
j

```

## Run HTTP Server with Unikraft
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not an HTTP server.


Make sure you are in the /run-app-elfloader/ directory

```console
./run.sh -d -r ../dynamic-apps/tail/ tail test.txt
```

You'll get the reply:

```text
a
b
c
d
e
f
g
h
i
j
```
Can try with any file
Binary file added tail/lib/x86_64-linux-gnu/libc.so.6
Binary file not shown.
Binary file added tail/lib64/ld-linux-x86-64.so.2
Binary file not shown.
Binary file added tail/tail
Binary file not shown.
10 changes: 10 additions & 0 deletions tail/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
a
b
c
d
e
f
g
h
i
j