Skip to content

javanile/pwd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PWD

Lint Code Base

The best way to get around the path change problem with Docker for Windows.

Why?

The purpose of pwd is to detect the equivalent path of the current directory if it were mounted inside a docker container. Since Docker does a path transformation from Windows to Linux, it can often be useful to know this path in advance.

Requirements

Installation

For PowerShell user

PS C:\Users\SamSepiol> curl git.io/make.bat -o setup; .\setup

For cmd.exe user

curl -fsSL https://deno.land/x/install/install.sh | sh

Chocolatey (Windows):

choco install deno

Scoop (Windows):

scoop install deno

For Python developer

C:\Users\SamSepiol> pip install make.bat

For NodeJS developer

C:\Users\SamSepiol> npm install -g make.bat

For PHP developer

C:\Users\SamSepiol> npm install -g make.bat

Usage

As a standard GNU Make simply you

C:\Users\SamSepiol\MrProject> pwd 
/host_mnt/c/Users/SamSepiol/MrProject

Documentation

Alternative installation

NodeJS

Requirements

Manual setup

%USERPROFILE%\AppData\Local\Microsoft\WindowsApps

Development

docker run
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /usr/bin/docker:/usr/bin/docker