← NodeJS Teams

Windows Setup

Configure git

  • Run this command to configure git to use Unix style line endings by default.
PS C:\GitHub\node-openid-provider> git config --global core.autocrlf false
PS C:\GitHub\node-openid-provider>

Set up Docker for Windows for Node.js development

  • Install Docker for Windows

  • Call x8100 and place two requests:

    Ask for local admin access to your machine (if you don’t have it already).

    You need to convert from BitLocker to SecureDoc. Let support know you need to do this because you’re using Docker for Windows. They’ll decrypt the hard drive and encrypt it again with SecureDoc - the process takes a few hours.

  • At this point you should be able to mount volumes in docker containers. You can test this with the following command.

    docker run --rm -v c:/Users:/data alpine ls /data

    If you get a list of directories - mounting is working correctly.

PS C:\GitHub\test-windows\node-sso-formatter> docker run --rm -v c:/Users:/data alpine ls /data
ADMINI~1
All Users
Classic .NET AppPool
Default
Default User
DefaultAppPool
Public
desktop.ini
rimacias
snikolov
wmnlb
PS C:\GitHub\test-windows\node-sso-formatter>
  • If you can’t mount correctly - restart Docker for Windows (right click on tray icon, select restart) and unshare and share your drives (right click on tray icon > Settings > Shared Drives, uncheck, apply, check again, apply)

Issues

  • In some cases we’re unable to execute script files that were cloned from github inside a docker container. If that happens rename the script file, create a new one with the same name and paste the contents of the original file.

    Here’s an example error message for this issue:

/bin/sh: ./bin/mock-vault-data.sh: not found
error Command failed with exit code 127.