Giter Site home page Giter Site logo

compose-file's People

Contributors

aanand avatar amenophis avatar dnephin avatar vdemeester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

compose-file's Issues

attachable property not supported in network definition

Is this the official parser for the compose v3 file as used by docker? In docker-compose 1.10 rc2 all networks created by docker-compose are attachable. docker deploy though does not do this and does not recognise the attachable property.

template test failures

With github.com/stretchr/testify v1.2.1 template tests fail as follows:

=== RUN   TestEscaped 
--- FAIL: TestEscaped (0.00s) 
        template_test.go:21:  
                        Error Trace:    template_test.go:21 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestEscaped 
=== RUN   TestInvalid 
--- PASS: TestInvalid (0.00s) 
=== RUN   TestNoValueNoDefault 
--- FAIL: TestNoValueNoDefault (0.00s) 
        template_test.go:46:  
                        Error Trace:    template_test.go:46 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestNoValueNoDefault 
        template_test.go:46:  
                        Error Trace:    template_test.go:46 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestNoValueNoDefault 
=== RUN   TestValueNoDefault 
--- FAIL: TestValueNoDefault (0.00s) 
        template_test.go:54:  
                        Error Trace:    template_test.go:54 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestValueNoDefault 
        template_test.go:54:  
                        Error Trace:    template_test.go:54 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestValueNoDefault 
=== RUN   TestNoValueWithDefault 
--- FAIL: TestNoValueWithDefault (0.00s) 
        template_test.go:62:  
                        Error Trace:    template_test.go:62 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestNoValueWithDefault 
        template_test.go:62:  
                        Error Trace:    template_test.go:62 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestNoValueWithDefault 
=== RUN   TestEmptyValueWithSoftDefault 
--- FAIL: TestEmptyValueWithSoftDefault (0.00s) 
        template_test.go:69:  
                        Error Trace:    template_test.go:69 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestEmptyValueWithSoftDefault 
=== RUN   TestEmptyValueWithHardDefault 
--- FAIL: TestEmptyValueWithHardDefault (0.00s) 
        template_test.go:75:  
                        Error Trace:    template_test.go:75 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestEmptyValueWithHardDefault 
=== RUN   TestNonAlphanumericDefault 
--- FAIL: TestNonAlphanumericDefault (0.00s) 
        template_test.go:81:  
                        Error Trace:    template_test.go:81 
                        Error:          Received unexpected error: 
                                        <nil> 
                        Test:           TestNonAlphanumericDefault 
FAIL 
FAIL    github.com/aanand/compose-file/template 0.004s 

Please update for Docker 18.03.1

This library FTBFS with recent version of Docker client.
The following patch appears to fix the problem:

--- a/loader/loader.go
+++ b/loader/loader.go
@@ -11,9 +11,9 @@

        "github.com/aanand/compose-file/interpolation"
        "github.com/aanand/compose-file/schema"
        "github.com/aanand/compose-file/types"
-       "github.com/docker/docker/runconfig/opts"
+       "github.com/docker/cli/opts"
        units "github.com/docker/go-units"
        shellwords "github.com/mattn/go-shellwords"
        "github.com/mitchellh/mapstructure"
        yaml "gopkg.in/yaml.v2"

How to convert a compose file ?

I am able to compile the code, but not able to understand where shall I provide my compose file to convert it into json.
Could anyone tell me how it can be done?

README file

Can we have a readme listing down usage examples and contributing guide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.