Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.67 KB

containers.md

File metadata and controls

63 lines (45 loc) · 1.67 KB

containers

The standard way of running is using the ISO on a physical server or virtual machine:

wget http://www.tinycorelinux.net/9.x/x86_64/release/CorePure64-9.0.iso
qemu-system-x86_64 -cdrom CorePure64-9.0.iso

This will start the normal "isolinux" boot process, including starting another kernel.

   ( '>')
  /) TC (\   Core is distributed with ABSOLUTELY NO WARRANTY.
 (/-_--_-\)           www.tinycorelinux.net

Press <Enter> to begin or F2, F3, or F4 to view boot options.
boot:

And that works fine, virtualization can be hardware-accelerated with KVM (or similar)

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

But when building packages and cross-compiling, it can be useful to run in a container...

cc

The Tiny Core Linux distribution is also available as a standard OCI container image:

$ sudo podman run -it boot2podman-docker-tinycore.bintray.io/tinycore:9.0-x86_64
/ $ grep -i pretty /etc/os-release
PRETTY_NAME="TinyCoreLinux 9.0"

A container build image is available, that feature tinycore with compiletc package:

$ sudo podman run -it boot2podman-docker-tinycore.bintray.io/tinycore-compiletc:9.0-x86_64
/ $ cc --version
cc (GCC) 7.2.0

go

Another add-on image to it is also available, that includes the go compiler environment:

$ sudo podman run -it boot2podman-docker-tinycore.bintray.io/tinycore-go:1.10.4
/ $ go version
go version go1.10.4 linux/amd64

This sets up the needed variables (such as $PATH/$GOPATH), and includes git command:

/ $ go get github.com/golang/example/hello
/ $ hello
Hello, Go examples!