Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from sloppyio/feature/composelib
Browse files Browse the repository at this point in the history
feature/composelib
  • Loading branch information
malud authored Mar 22, 2018
2 parents c2ad652 + 629afae commit 4cc8fca
Show file tree
Hide file tree
Showing 4,017 changed files with 961 additions and 689,605 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 5 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SRCPATH := ./cmd
APPNAME := sloppose
VERSION_NAMESPACE := github.com/sloppyio/sloppose/command

.PHONY: all test build-dev osx linux win clean
.PHONY: all generate test build-dev osx linux win clean

define build
GOOS=$(1) GOARCH=$(2) go build -ldflags "-X ${VERSION_NAMESPACE}.VersionName=`git describe --exact-match --abbrev=0` -X ${VERSION_NAMESPACE}.BuildName=`git log -1 --format=%h`" -o $(BUILDPATH)/$(APPNAME)_$(1)_$(2)$(3) $(SRCPATH)
Expand All @@ -17,7 +17,7 @@ define zip
endef

test:
go test -v -race -timeout 30s -covermode=atomic -coverprofile=coverage.txt ./pkg/...
go test -v -race -timeout 30s -covermode=atomic -coverprofile=coverage.txt ./pkg/converter

coverage-show:
go tool cover -html=coverage.txt
Expand All @@ -34,6 +34,9 @@ dev-osx:
build-dev:
go build -ldflags "-X ${VERSION_NAMESPACE}.VersionName=`git describe --exact-match --abbrev=0`" -o ./$(APPNAME) $(SRCPATH)

generate:
go run pkg/config/schemas/generate.go

osx:
@echo "Building osx binaries..."
@$(call build,darwin,amd64,)
Expand Down
126 changes: 3 additions & 123 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/docker/libcompose"
branch = "master"
[prune]
non-go = true
go-tests = true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Small tool to convert docker-compose files to sloppy.io compatible ones.

Supports docker-compose versions **2** and **3**.
Supports docker-compose version **3**.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion command/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (c *Convert) Run(args []string) error {
}

reader := &converter.ComposeReader{}
buf, err := reader.ReadAll(flagSet.Args())
buf, err := reader.Read(flagSet.Args()[0])
if err != nil {
return err
}
Expand Down
5 changes: 5 additions & 0 deletions pkg/config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# sloppose/pkg/config

Contains auto generated code from json schemas in `./schemas`.

Schema Source: https://github.com/docker/compose/tree/master/compose/config .
Loading

0 comments on commit 4cc8fca

Please sign in to comment.