Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi, I've got a problem with the Docker Installation Prerequisites on Windows.

Options
UV6R85WBE
UV6R85WBE Posts: 24 🧑🏻‍🚀 - Cadet

Hi,

I've got a problem with the Docker Installation Prerequisites on Windows.
https://documentation.spryker.com/docs/docker-installation-prerequisites-windows

The point "Install Unison" does not work completely for me.

Here are my questions:

  1. I have no idea what unison and OCaml are used for. Can someone explain what it is needed for ?

  2. I can't complete the Unison installation.
    The last command, named:

"shell make UISTYLE=text sudo cp src/unison /usr/local/bin/unison sudo cp src/unison-fsmonitor /usr/local/bin/unison-fsmonitor"

Does not work completely for me.

I tried only "sudo make UISTYLE=text" this worked.

But the part
"sudo cp src/unison /usr/local/bin/unison sudo cp src/unison-fsmonitor /usr/local/bin/unison-fsmonitor"

does not work

it says:

make: *** No rule to make target 'sudo'. Stop.

How to get this completed ?

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    I have no idea what unison and OCaml are used for. Can someone explain what it is needed for ?

    These are dependencies for docker-sync.

    Basically our guide just refers to original one from the author of docker-sync - https://docker-sync.readthedocs.io/en/latest/getting-started/installation.html#windows.

  • UV6R85WBE
    UV6R85WBE Posts: 24 🧑🏻‍🚀 - Cadet
    edited March 2020
    Options

    Ok, this answers my first question. Thx. Do you also have an idea when it comes to my second question ?

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited March 2020
    Options

    I just checked and seems that there is formatting corrupted in this version of the documentation you are reffering to.
    Here is the correct one - https://documentation.spryker.com/v3/docs/docker-install-prerequisites-windows-201907

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    But it doesn't mean that you will succeed in installing docker for windows correctly in the end. Personally I wasn't able to run docker as there are some errors due to marshaling something.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    For me the only option is to use Vagrant in Windows at the moment.

  • UV6R85WBE
    UV6R85WBE Posts: 24 🧑🏻‍🚀 - Cadet
    edited March 2020
    Options

    So this means that spryker in docker running windows as os is not officially provided ?

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited March 2020
    Options

    This means that for some it works ok. But for some, as for me, for example, it doesn't work. Spryker has nothing to do with this unfortunately.

  • UV6R85WBE
    UV6R85WBE Posts: 24 🧑🏻‍🚀 - Cadet
    Options

    Ok, thank you very much !

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    At the same time the team responsible for docker solution is working on the alternatives to docker-sync. So hopefully soon it will be working for all in Windows as well.

  • UV6R85WBE
    UV6R85WBE Posts: 24 🧑🏻‍🚀 - Cadet
    Options

    Sounds well

  • UV6R85WBE
    UV6R85WBE Posts: 24 🧑🏻‍🚀 - Cadet
    Options

    Another question/problem:

    https://documentation.spryker.com/v3/docs/docker-install-prerequisites-windows-201907

    What went wrong if I get "cp: cannot stat 'src/unison': No such file or directory"

    in the point "d. Compile and install Unison:"

    ?

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    Wrong path? You are not in the correct directory or something? IDK.

  • UV6R85WBE
    UV6R85WBE Posts: 24 🧑🏻‍🚀 - Cadet
    edited March 2020
    Options

    I'm in

    /home/adminlnx/ocaml-4.06.0/unison-2.51.2

    if I see the point c. Change the directory:

    cd unison-2.51.2
    

    this should be the right one I guess

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    Then everything should work flawlessly. ¯_(ツ)_/¯

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    If installation of proper version on host is the problem,
    you can use custom docker-sync image with exact version you have on the host:

    docker build --build-arg "OCAML_VERSION=4.06.0" --build-arg "UNISON_VERSION=2.51.2" -t custom-docker-image-unison .
    

    and deploy.yml file

    ...
    docker:
    ...
      mount:
        docker-sync:
        ...
          image: custom-docker-image-unison
    

    However you would need to build image everytime after you prune docker images. Or you can just push it in dockerhub and use public tag.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    Options

    @US04LPPLG Would you be able to put this in the instruction? Thanks forehand.