Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Use Docker Compose in Bash (Windows Subsystem for Linux) from your IDE on Windows

License

Notifications You must be signed in to change notification settings

TheFrankyJoe/docker-compose-wsl

Repository files navigation

Docker Compose WSL

Use Docker Compose from your Windows Subsystem for Linux (WSL) distribution from an IDE that integrate Docker Compose like PyCharm on Windows

This tool will translate the Windows path(s) passed to the docker-compose binary, but also the one(s) inside the docker-compose file(s) passed as argument(s).

Download

The latest binary can be found on the release page

Usage in PyCharm

  1. Download the latest binary
  2. Move the binary to any directory accessible by the PyCharm IDE
  3. In PyCharm, go to File > Settings...
  4. In the Settings window, go to Build, Execution, Deployment > Docker > Tools and set the Docker Compose executable path to the docker-compose-wsl binary path

Remarks

This tool should work with any IDE that use the docker-compose command-line tool, but was only tested with PyCharm

Build from source

  1. Download and install the latest Python 3 interpreter

  2. Open a command prompt

  3. Install virtualenv

    > pip install virtualenv
    
  4. Create and activate the new virtual environment

    > virtualenv docker-compose-wsl
    > docker-compose-wsl\Scripts\activate
    
  5. Install the dependencies in the virtual environment

    (docker-compose-wsl) > pip install -r requirements.txt
    
  6. Run PyInstaller in order to create the binary

    (docker-compose-wsl) > pyinstaller --onefile .\docker-compose-wsl.spec
    
  7. The binary will be available in the dist directory

Thanks

  • Andy-5 for WSLGit which served as the inspiration for creating this tool

About

Use Docker Compose in Bash (Windows Subsystem for Linux) from your IDE on Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages