Skip to content

Commit 7974514

Browse files
authored
Nuke containers/ (#20)
* suffix with -unikernel * rehome, suffix with -docker * update refs * ignore recordings/ for local runs * rm -rf containers/
1 parent 8698f15 commit 7974514

File tree

10 files changed

+7
-188
lines changed

10 files changed

+7
-188
lines changed

containers/docker/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

containers/docker/Dockerfile

Lines changed: 0 additions & 77 deletions
This file was deleted.

containers/docker/README.md

Lines changed: 0 additions & 94 deletions
This file was deleted.

unikernels/unikraft-cu/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
bin/
2+
recording/

unikernels/unikraft-cu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ COPY --from=xorg-deps /usr/local/lib/xorg/modules/input/neko_drv.so /usr/lib/xor
152152
COPY image-chromium/ /
153153
COPY ./wrapper.sh /wrapper.sh
154154

155-
# copy the kernel-images API binary built by build.sh
155+
# copy the kernel-images API binary built externally
156156
COPY bin/kernel-images-api /usr/local/bin/kernel-images-api
157157
ENV WITH_KERNEL_IMAGES_API=false
158158

unikernels/unikraft-cu/README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ This deploys headful Chromium on a unikernel. It also exposes a remote GUI throu
1212
`export UKC_METRO=<region> and UKC_TOKEN=<secret>`
1313

1414
## 3. Build the image
15-
`./build.sh`
15+
`./build-unikernel.sh`
1616

1717
## 4. Run it
18-
`./run.sh`
18+
`./run-unikernel.sh`
1919

2020
When the deployment finishes successfully, the Kraft CLI will print out something like this:
2121
```
@@ -36,7 +36,7 @@ Deployed successfully!
3636

3737
### 3.1 Deploy the Implementation with WebRTC desktop streaming enabled
3838
```sh
39-
ENABLE_WEBRTC=true NEKO_ICESERVERS=xxx ./run.sh
39+
ENABLE_WEBRTC=true NEKO_ICESERVERS=xxx ./run-unikernel.sh
4040
```
4141

4242
`NEKO_ICESERVERS`
@@ -111,17 +111,8 @@ const browser = await chromium.connectOverCDP(finalWSUrl);
111111
You can also run the Dockerfile directly as a docker container:
112112

113113
```sh
114-
docker build -t kernel-docker .
115-
docker run -d \
116-
-p 8080:8080 \
117-
-p 9222:9222 \
118-
--cap-add SYS_ADMIN \
119-
-p 56000-56100:56000-56100/udp \
120-
-e ENABLE_WEBRTC=true \
121-
-e CHROMIUM_FLAGS="--no-sandbox --disable-dev-shm-usage --disable-gpu --start-maximized --disable-software-rasterizer --remote-allow-origins=* --no-zygote" \
122-
-e NEKO_WEBRTC_EPR=56000-56100 \
123-
-e NEKO_WEBRTC_NAT1TO1=127.0.0.1 \
124-
kernel-docker
114+
./build-docker.sh
115+
./run-docker.sh
125116
```
126117

127118
## 📞 WebRTC Notes

0 commit comments

Comments
 (0)