apps4u / Omega2-Docker

Dockerfile for automated builds in Docker Hub of the Omega2's SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Omega2-Docker

Based on borromeotlhs' dockerfile I wrote a more refined version that sets everything beforehand (no menuconfig needed).

How to use

Pull and run from my Docker Hub with the command:

docker run -it --name omega2-sdk-app -v /my_host_dir:/remote jlcs/omega2-sdk bash

If necessary (the built image being less than 1GB is an indicative) run make to build the SDK.

To resume the created container:

docker container ls -a              # Check the container's name if you didn't use --name
docker start <container-name>	      # Start the omega2SDK container
docker attach <container-name> 	    # Start interactive console

How to compile C code

Once you are in the Docker container, some environment variables are set (maybe not) for you to use:

mipsel-openwrt-linux-gcc [options] 

The compiler binaries are generated inside the directory:

/lede/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/bin/

Note: The 'el' in mipsel indicates it is a Little Endian version of MIPS.

I found a bug

Make a pull-request or create an issue.

About

Dockerfile for automated builds in Docker Hub of the Omega2's SDK