Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIP_CURRENT_USER added #168

Merged
merged 4 commits into from
Feb 28, 2024
Merged

DIP_CURRENT_USER added #168

merged 4 commits into from
Feb 28, 2024

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

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@bibendi bibendi merged commit 3d32d14 into bibendi:master Feb 28, 2024
4 checks passed
@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.

None yet

2 participants