Skip to content

Make on windows volume path problem #5

@depsir

Description

@depsir

I have been trying to build digit on windows, with docker and docker toolbox, but I'm facing lot of problems.
The first one is that docker is unable to mount volumes correctly due to the fact that ${PWD} returns a windows style path, including C:/ which doesn't play well with docker volume syntax.

One possible solution is to define a variable using shell pwd, but I am not sure this will work on linux/mac too:

ROOTDIR=$(shell pwd)

And then use it instead of ${PWD}:

@docker run --rm=true \
    -v $(ROOTDIR):/go/src/$(SCM_SERVICE)/$(SCM_TEAM)/$(PROJECT)/ \
    ...

bonus question: anyone managed to build digit on windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions