Skip to content

Commit 4b3f8a7

Browse files
committed
Updated taskworkflow.go: fixes in socket name and readme.
Socket name was aligned with the quickstart guidelines (in integration tests as well). Removed the mask argument from the readme as it is not supported anymore. Signed-off-by: Dmitrii Ustiugov <[email protected]>
1 parent bbbbb74 commit 4b3f8a7

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

examples/taskworkflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
)
3737

3838
const (
39-
containerdAddress = "/run/containerd/containerd.sock"
39+
containerdAddress = "/run/firecracker-containerd/containerd.sock"
4040
containerdTTRPCAddress = containerdAddress + ".ttrpc"
4141
namespaceName = "firecracker-containerd-example"
4242
macAddress = "AA:FC:00:00:00:01"

examples/taskworkflow.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,20 @@ for the VM by following [these instructions](https://github.com/firecracker-micr
1919

2020
This creates a tap device named `tap0`, in the local `172.16.0.1/24` subnet.
2121
Since the example does not rely on a DHCP client running within the VM to
22-
initialize the network interface, `gw` and `mask` flags should be used to
23-
specify the gateway and subnet mask values.
22+
initialize the network interface, `gw` flag should be used to
23+
specify the gateway value.
2424

2525
The following example sets:
26-
* The IP address to `172.16.0.2`
26+
* The IP address (CIDR) to `172.16.0.2/24`
2727
* The gateway IP address to `172.16.0.1`
28-
* The subnet mask to `255.255.255.0` (`/24`)
2928

3029
** NOTE: This example will not work if you're running more than 1 container
3130
on a host at the same time **
3231

3332
Now, run the example by passing the `-ip` argument:
3433
```bash
35-
$ sudo /path/to/firecracker-containerd/examples/taskworkflow -ip 172.16.0.2 \
36-
-gw 172.16.0.1 \
37-
-mask 255.255.255.0
34+
$ sudo /path/to/firecracker-containerd/examples/taskworkflow -ip 172.16.0.2/24 \
35+
-gw 172.16.0.1
3836
```
3937

4038
You should see output similar to this:

runtime/service_integ_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var (
7575
findShim = findProcWithName(shimProcessName)
7676
findFirecracker = findProcWithName(firecrackerProcessName)
7777

78-
containerdSockPath = "/run/containerd/containerd.sock"
78+
containerdSockPath = "/run/firecracker-containerd/containerd.sock"
7979
)
8080

8181
func init() {

tools/docker/Dockerfile.integ-test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ RUN --mount=type=bind,source=firecracker-control/cmd/containerd,target=/src \
3737
ln -sv /usr/local/bin/firecracker-containerd /usr/local/bin/containerd && \
3838
ln -sv /usr/local/bin/firecracker-ctr /usr/local/bin/ctr
3939
RUN containerd 2>/dev/null & \
40-
ctr content fetch docker.io/library/alpine:3.10.1 >/dev/null && \
41-
ctr content fetch docker.io/mlabbe/iperf3:3.6-r0 >/dev/null
40+
ctr --address /run/firecracker-containerd/containerd.sock content fetch docker.io/library/alpine:3.10.1 >/dev/null && \
41+
ctr --address /run/firecracker-containerd/containerd.sock content fetch docker.io/mlabbe/iperf3:3.6-r0 >/dev/null
4242

4343
# Install everything we need in this image. Due to the bind-mount, if the host has already
4444
# up-to-date versions of everything built, this step will be a very quick copy

tools/docker/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
imports = ["/etc/containerd/snapshotter/*.toml"]
2+
[grpc]
3+
address = "/run/firecracker-containerd/containerd.sock"

0 commit comments

Comments
 (0)