android lcm 框架,GitHub - paullcm/android-go-mobile: Docker image for Android and golang / gomobile de...

Android, Go, and gomobile

This image was built for use with Drone CI but can be used with any docker setup you want.

This image includes:

Android SDK, NDK, tools, and API version 28 at /usr/local/android-sdk

Go lang 1.10.3 at /usr/local/go

$GOPATH set to /workspace/go

A go directory with an initialized gomobile installed at /go

This image comes with gomobile checkedout and preinitialized (time and space consuming). In order to install this predone work from the image into your Drone CI workspace (a docker volume mounted to /workspace), you will want your first pipeline step to be:

go-link:

image: openpriv/android-go-mobile

commands:

- cp -as /go /workspace/go

cp -as recreates the directory structure from /go in /workspace/go but for each file, it just creates a symlink. This is the quickest and most efficent way to mirror the work supplied with the image into your workspace.

Re-arrange docker file

Change base image openjdk:8 to ubuntu:16.04

Install libgl & vim & curl & others

Build docker image & make .apk

docker build . -t android-gomobile

docker run -d --name gomob android-gomobile

docker exec -it gomob /bin/bash

cd go/src/golang.org/x/mobile/example/basic/

gomobile build

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值