OPS has support for creating unikernel images and deploying them as instances to Linode.
Create a token and export it:
$ export TOKEN="somethinguniqueandrandom"
$ ops image create -t linode <program> -c config.json
You can list existing images on Linode with ops image list
.
$ ops image list -t linode
+--------------------+--------+-------------------------------+
| NAME | STATUS | CREATED |
+--------------------+--------+-------------------------------+
| nanos-main-image | READY | 2019-03-21T15:06:17.567-07:00 |
+--------------------+--------+-------------------------------+
| nanos-node-image | READY | 2019-04-16T23:16:03.145-07:00 |
+--------------------+--------+-------------------------------+
| nanos-server-image | READY | 2019-03-21T15:50:04.456-07:00 |
+--------------------+--------+-------------------------------+
ops image delete <imagename>
can be used to delete an image from Linode.
$ ops delete image -t linode nanos-main-image
You need to export TOKEN
.
$ export TOKEN=<token>
$ ops instance create <image_name> -t linode -c config.json
You can list instance on Linode using ops instance list
command.
You need to export TOKEN
:
$ export TOKEN=token
$ ops instance list -t linode
+-----------------------------+---------+-------------------------------+-------------+--------------+
| NAME | STATUS | CREATED | PRIVATE IPS | PUBLIC IPS |
+-----------------------------+---------+-------------------------------+-------------+--------------+
| nanos-main-image-1556601450 | RUNNING | 2019-04-29T22:17:34.609-07:00 | 10.240.0.40 | 34.83.204.40 |
+-----------------------------+---------+-------------------------------+-------------+--------------+