feat: containerize (#19)

* feat: containerize

* Stripping reduces binary size, fully static linking makes the binary more portable

Co-authored-by: sh0rez <me@shorez.de>
This commit is contained in:
Jeroen Op 't Eynde 2021-06-03 14:58:12 +02:00 committed by GitHub
parent 3e1757637e
commit 1f8d4c6fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 47 additions and 15 deletions

View file

@ -96,7 +96,7 @@ func newImporter(paths []string) (*importer, error) {
var docUtilPaths = []string{
"doc-util/main.libsonnet",
"github.com/sh0rez/docsonnet/doc-util/main.libsonnet",
"github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet",
}
func (i *importer) Import(importedFrom, importedPath string) (contents jsonnet.Contents, foundAt string, err error) {

View file

@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"github.com/sh0rez/docsonnet/pkg/docsonnet"
"github.com/jsonnet-libs/docsonnet/pkg/docsonnet"
)
func To(pkg docsonnet.Package, dir string, opts Opts) (int, error) {

View file

@ -8,9 +8,9 @@ import (
"strings"
"github.com/google/go-jsonnet/formatter"
"github.com/sh0rez/docsonnet/pkg/docsonnet"
"github.com/sh0rez/docsonnet/pkg/md"
"github.com/sh0rez/docsonnet/pkg/slug"
"github.com/jsonnet-libs/docsonnet/pkg/docsonnet"
"github.com/jsonnet-libs/docsonnet/pkg/md"
"github.com/jsonnet-libs/docsonnet/pkg/slug"
)
type Opts struct {

View file

@ -3,7 +3,7 @@ package render
import (
"testing"
"github.com/sh0rez/docsonnet/pkg/docsonnet"
"github.com/jsonnet-libs/docsonnet/pkg/docsonnet"
"github.com/stretchr/testify/assert"
)