How To Create Docker Image For Go Client ?

suresh18888
suresh18888 Member Posts: 3

Hi Team,

Tried Creating the Docker image for Go client, but Facing the Below Error seems the Go package has issues, can someone help on this?





# solace.dev/go/messaging/internal/impl/constants

53

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:35:2: undefined: ccsmp.SolClientSessionPropTopicDispatch

54

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:35:56: undefined: ccsmp.SolClientPropEnableVal

55

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:36:2: undefined: ccsmp.SolClientSessionPropSendBlocking

56

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:36:56: undefined: ccsmp.SolClientPropDisableVal

57

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:37:2: undefined: ccsmp.SolClientSessionPropReapplySubscriptions

58

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:37:56: undefined: ccsmp.SolClientPropEnableVal

59

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:38:2: undefined: ccsmp.SolClientSessionPropIgnoreDupSubscriptionError

60

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:38:56: undefined: ccsmp.SolClientPropEnableVal

61

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:39:2: undefined: ccsmp.SolClientSessionPropReconnectRetries

62

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:40:2: undefined: ccsmp.SolClientSessionPropGuaranteedWithWebTransport

63

/go/pkg/mod/solace.dev/go/messaging@v1.0.1/internal/impl/constants/default_properties.go:40:2: too many errors

Tagged:

Answers

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 959 admin
    edited May 2022 #2

    Hi @suresh18888

    Amazing - you have to love it when you get an error that says "too many errors"

    Can you provide some more context? What is the base image that you're using and what commands are you using to try to create the container? Obviously it would be amazing if you could put everything in a git repo so we could clone and re-create the issue easily ;)

  • suresh18888
    suresh18888 Member Posts: 3

    Hi Marc ,

    Thanks For the Response here you can find the Docker file

    The Repo is in golang

    solacegotest/Dockerfile at main · suresh-kolanji/solacegotest (github.com)

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 538 admin

    Hi Suresh! Looks like the https://github.com/suresh-kolanji/solacegotest repo is private and I was not able to check it out.

    In the meantime, if you can perhaps put more information to how you reproduced the error and what version of the solace.dev/go/messaging client you are using.It might be that you are using an older version of the API and you are attempting to vendor the project in your docker image which used to error before we put in the fix in v1.0.1

  • suresh18888
    suresh18888 Member Posts: 3

    Hi Tamimi ,


    I have made the Repo public now.