Skip to content

Add dotfiles functionallity - #362

Merged
Edmundo Gonzalez (edgonmsft) merged 14 commits into
mainfrom
edgonmsft/dotfiles
Jan 13, 2023
Merged

Edmundo Gonzalez (edgonmsft) merged 14 commits into
mainfrom
edgonmsft/dotfiles

Conversation

@edgonmsft

Copy link
Copy Markdown
Contributor

Dotfiles are commonly used as ann extra customization step in devcontainers.

This pr adds 3 more parameters to the up command.
If the values are not present then dotfiles are not executed.

  • dotfiles-repository: Git URL to clone a dotfiles repository from.
  • dotfiles-install-command: Command to install the dotfiles with. If none is given a list of script names (install.sh, install, bootstrap.sh, bootstrap, setup.sh and setup) are checked for in the checked out dotfiles repository and if none is found all top-level dotfiles are symlinked from the container's home folder.
  • dotfiles-target-path: Folder path to clone the dotfiles repository to.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments!

Comment thread src/spec-common/dotfiles.ts Resolved
Comment thread src/test/cli.up.test.ts Resolved
Comment thread src/test/cli.up.test.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainers.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left a few comments.

Comment thread src/spec-common/dotfiles.ts Resolved
Comment thread src/spec-common/injectHeadless.ts Resolved
Comment thread src/spec-common/dotfiles.ts Resolved
Comment thread src/test/cli.up.test.ts Resolved
Comment thread src/spec-common/dotfiles.ts Resolved

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants