Move upstream to code.dumpstack.io
This commit is contained in:
parent
fb9b03029b
commit
144a8547bc
@ -1,5 +1,5 @@
|
|||||||
[![Build Status](https://travis-ci.org/jollheef/out-of-tree.svg?branch=master)](https://travis-ci.org/jollheef/out-of-tree)
|
[![Build Status](https://travis-ci.org/jollheef/out-of-tree.svg?branch=master)](https://travis-ci.org/jollheef/out-of-tree)
|
||||||
[![Go Report Card](https://goreportcard.com/badge/github.com/jollheef/out-of-tree)](https://goreportcard.com/report/github.com/jollheef/out-of-tree)
|
[![Go Report Card](https://goreportcard.com/badge/code.dumpstack.io/tools/out-of-tree)](https://goreportcard.com/report/code.dumpstack.io/tools/out-of-tree)
|
||||||
|
|
||||||
# [out-of-tree](https://out-of-tree.io)
|
# [out-of-tree](https://out-of-tree.io)
|
||||||
|
|
||||||
@ -34,12 +34,12 @@ Also check out [docker post-installation steps](https://docs.docker.com/install/
|
|||||||
|
|
||||||
## Build from source
|
## Build from source
|
||||||
|
|
||||||
$ go get -u github.com/jollheef/out-of-tree
|
$ go get -u code.dumpstack.io/tools/out-of-tree
|
||||||
$ out-of-tree bootstrap
|
$ out-of-tree bootstrap
|
||||||
|
|
||||||
Then you can check it on kernel module example:
|
Then you can check it on kernel module example:
|
||||||
|
|
||||||
$ cd $GOPATH/src/github.com/jollheef/out-of-tree/examples/kernel-module
|
$ cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree/examples/kernel-module
|
||||||
$ out-of-tree kernel autogen # generate kernels based on .out-of-tree.toml
|
$ out-of-tree kernel autogen # generate kernels based on .out-of-tree.toml
|
||||||
$ out-of-tree pew
|
$ out-of-tree pew
|
||||||
|
|
||||||
@ -83,6 +83,6 @@ Read [Qemu API](qemu/README.md).
|
|||||||
|
|
||||||
### Generate images
|
### Generate images
|
||||||
|
|
||||||
$ cd $GOPATH/src/github.com/jollheef/out-of-tree/tools/qemu-debian-img/
|
$ cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree/tools/qemu-debian-img/
|
||||||
$ docker run --privileged -v $(pwd):/shared -e IMAGE=/shared/ubuntu1404.img -e RELEASE=trusty -t gen-ubuntu1804-image
|
$ docker run --privileged -v $(pwd):/shared -e IMAGE=/shared/ubuntu1404.img -e RELEASE=trusty -t gen-ubuntu1804-image
|
||||||
$ docker run --privileged -v $(pwd):/shared -e IMAGE=/shared/ubuntu1604.img -e RELEASE=xenial -t gen-ubuntu1804-image
|
$ docker run --privileged -v $(pwd):/shared -e IMAGE=/shared/ubuntu1604.img -e RELEASE=xenial -t gen-ubuntu1804-image
|
||||||
|
5
debug.go
5
debug.go
@ -13,9 +13,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jollheef/out-of-tree/config"
|
|
||||||
qemu "github.com/jollheef/out-of-tree/qemu"
|
|
||||||
"github.com/logrusorgru/aurora"
|
"github.com/logrusorgru/aurora"
|
||||||
|
|
||||||
|
"code.dumpstack.io/tools/out-of-tree/config"
|
||||||
|
"code.dumpstack.io/tools/out-of-tree/qemu"
|
||||||
)
|
)
|
||||||
|
|
||||||
func firstSupported(kcfg config.KernelConfig, ka config.Artifact,
|
func firstSupported(kcfg config.KernelConfig, ka config.Artifact,
|
||||||
|
3
gen.go
3
gen.go
@ -7,8 +7,9 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jollheef/out-of-tree/config"
|
|
||||||
"github.com/naoina/toml"
|
"github.com/naoina/toml"
|
||||||
|
|
||||||
|
"code.dumpstack.io/tools/out-of-tree/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func genConfig(at config.ArtifactType) (err error) {
|
func genConfig(at config.ArtifactType) (err error) {
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jollheef/out-of-tree/config"
|
"code.dumpstack.io/tools/out-of-tree/config"
|
||||||
"github.com/naoina/toml"
|
"github.com/naoina/toml"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
2
main.go
2
main.go
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
kingpin "gopkg.in/alecthomas/kingpin.v2"
|
kingpin "gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
||||||
"github.com/jollheef/out-of-tree/config"
|
"code.dumpstack.io/tools/out-of-tree/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func findFallback(kcfg config.KernelConfig, ki config.KernelInfo) (rootfs string) {
|
func findFallback(kcfg config.KernelConfig, ki config.KernelInfo) (rootfs string) {
|
||||||
|
4
pew.go
4
pew.go
@ -20,8 +20,8 @@ import (
|
|||||||
"github.com/otiai10/copy"
|
"github.com/otiai10/copy"
|
||||||
"github.com/remeh/sizedwaitgroup"
|
"github.com/remeh/sizedwaitgroup"
|
||||||
|
|
||||||
"github.com/jollheef/out-of-tree/config"
|
"code.dumpstack.io/tools/out-of-tree/config"
|
||||||
qemu "github.com/jollheef/out-of-tree/qemu"
|
"code.dumpstack.io/tools/out-of-tree/qemu"
|
||||||
)
|
)
|
||||||
|
|
||||||
var somethingFailed = false
|
var somethingFailed = false
|
||||||
|
@ -9,7 +9,7 @@ Features:
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
$ go get github.com/jollheef/out-of-tree/qemu
|
$ go get code.dumpstack.io/tools/out-of-tree/qemu
|
||||||
|
|
||||||
### Generate root image
|
### Generate root image
|
||||||
|
|
||||||
@ -30,12 +30,12 @@ Note: qemu on macOS since v2.12 (24 April 2018) supports Hypervisor.framework.
|
|||||||
|
|
||||||
#### Generate image
|
#### Generate image
|
||||||
|
|
||||||
$ cd $GOPATH/src/github.com/jollheef/out-of-tree/tools/qemu-debian-img
|
$ cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree/tools/qemu-debian-img
|
||||||
$ ./bootstrap.sh
|
$ ./bootstrap.sh
|
||||||
|
|
||||||
### Fill configuration file
|
### Fill configuration file
|
||||||
|
|
||||||
$ $EDITOR $GOPATH/src/github.com/jollheef/out-of-tree/qemu/test.config.go
|
$ $EDITOR $GOPATH/src/code.dumpstack.io/tools/out-of-tree/qemu/test.config.go
|
||||||
|
|
||||||
### Run tests
|
### Run tests
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ Note: qemu on macOS since v2.12 (24 April 2018) supports Hypervisor.framework.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
$ go get github.com/jollheef/out-of-tree/qemu
|
$ go get code.dumpstack.io/tools/out-of-tree/qemu
|
||||||
|
|
||||||
Minimal example:
|
Minimal example:
|
||||||
|
|
||||||
@ -71,4 +71,4 @@ Minimal example:
|
|||||||
|
|
||||||
More information and list of all functions see at go documentation project, or just run locally:
|
More information and list of all functions see at go documentation project, or just run locally:
|
||||||
|
|
||||||
$ godoc github.com/jollheef/out-of-tree/qemu
|
$ godoc code.dumpstack.io/tools/out-of-tree/qemu
|
||||||
|
Loading…
Reference in New Issue
Block a user