bibendi / dip

The dip is a CLI dev–tool that provides native-like interaction with a Dockerized application.
MIT License
1.26k stars 44 forks source link

`DIP_CURRENT_USER` added #168

Closed willtcarey closed 8 months ago

willtcarey commented 8 months ago

Context

Adds a DIP_CURRENT_USER variable to the special variables that dip exposes.

Related tickets

Checklist:

I haven't added tests, but I couldn't find any tests for the existing special variables.

This is my dip config and terminal command showing it working.

# Required minimum dip version
version: '7.1'

compose:
  files:
    - docker-compose.yml
    - docker-compose.$USER.yml

environment:
  USER_ID: ${DIP_CURRENT_USER}

interaction:
  bash:
    description: Open the Bash shell in app's container
    service: app
    command: bash
    compose_run_options: [no-deps]

CleanShot 2024-02-26 at 21 06 50@2x

bibendi commented 8 months ago

https://github.com/bibendi/dip/releases/tag/v7.8.0