Anka tutorial 01

1.Anka 是什么

前端,后端,包括安卓的持续集成的过程都可以轻松的基于docker命令构建、打包,最终产出 docker image镜像,非常方便搭建标准化的pipeline(流水线);但是对于iOS移动端的同学而言,似乎没有那么简单。每次打包的过程都是耗时、复杂的。另外一点由于macOS系统是捆绑在mac硬件上的,你没有苹果电脑就无法打包,相比而言docker则是纯免费开源的。针对以上问题和情况,anka就是这样一种类似于dock的针对macOS系统的虚拟化技术。

于是乎,想长期使用是需要收钱的。

官网介绍 https://ankadoc.bitbucket.io/#what-is-anka-build

费用介绍 https://ankadoc.bitbucket.io/licensing/

几个组件的关系
https://veertu.com/anka-technology/

Anka Hypervisor
Anka Controller
Anka Registry

2.安装

搭建的环境: MacBook Pro(version: 10.13.6)

下载地址:https://veertu.com/download-anka-build/
anka download page

2.1 Anka Package Install and Configuration

https://ankadoc.bitbucket.io/anka-build/#anka-package-install-and-configuration

双击 pkg 包,默认选项安装,最终显示安装成功即可。

安装完成后可以用过命令 anka config --list 查看所有的配置,比如 vm 的存储路径等

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
➜  anka config --list
+-----------------------------+-----------------------------------------------------------------------------+
| registry_remotes_file_path | /Users/xxx/.anka/remote |
+-----------------------------+-----------------------------------------------------------------------------+
| mac_random_bytes | 2 |
+-----------------------------+-----------------------------------------------------------------------------+
| disk_eraser_tool | /Library/Application Support/Veertu/Anka/tools/erase_disk_image.sh |
+-----------------------------+-----------------------------------------------------------------------------+
| process_type | Interactive |
+-----------------------------+-----------------------------------------------------------------------------+
| default_passwd | admin |
+-----------------------------+-----------------------------------------------------------------------------+
| nvram_path | /Library/Application Support/Veertu/Anka/uefi/anka_vars.fd |
+-----------------------------+-----------------------------------------------------------------------------+
| vm_lib_dir | /Users/xxxx/Library/Application Support/Veertu/Anka/vm_lib/ |
+-----------------------------+-----------------------------------------------------------------------------+
| anka_image_maker_executable | /Library/Application Support/Veertu/Anka/bin/anka_image |
+-----------------------------+-----------------------------------------------------------------------------+
省略100行
...
2.2 Controller/Registry Install and Configuration

https://ankadoc.bitbucket.io/anka-build/#controller-registry-install-and-configuration

同上,双击 .pkg 包,默认安装,看到提示安装成功即可。

设置一下 Registry Address 地址:

2.3 申请试用许可(trail license)

https://veertu.com/anka-build-trial

完善信息提交后,会有一个成功的提示,如图所示:

激活key

1
2
➜  ~ sudo anka license activate xxxx-3750-xxxx-2265
License activated

查看license信息

1
2
3
4
5
6
7
8
9
10
➜  ~ anka license show
+---------------------+---------------------+
| license_type | com.veertu.anka.ent |
+---------------------+---------------------+
| status | valid |
+---------------------+---------------------+
| expires | 20-dec-2019 |
+---------------------+---------------------+
| max_number_of_cores | 32 |
+---------------------+---------------------+

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

扫一扫,分享到微信

微信分享二维码
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~