Skip to content

DIP_CURRENT_USER added#168

Merged
bibendi merged 4 commits intobibendi:masterfrom
willtcarey:current-user-env
Feb 28, 2024
Merged

DIP_CURRENT_USER added#168
bibendi merged 4 commits intobibendi:masterfrom
willtcarey:current-user-env

Conversation

@willtcarey
Copy link
Contributor

@willtcarey willtcarey commented Feb 27, 2024

Context

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

Related tickets

Checklist:

  • I have added tests
  • I have made corresponding changes to the documentation

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

@willtcarey willtcarey requested a review from bibendi February 27, 2024 16:52
@willtcarey willtcarey requested a review from bibendi February 27, 2024 22:10
@bibendi bibendi merged commit 3d32d14 into bibendi:master Feb 28, 2024
@bibendi
Copy link
Owner

bibendi commented Feb 28, 2024

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

@willtcarey willtcarey deleted the current-user-env branch February 28, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants