From 2952d87f1db5681330db025e17ab4357a1bdc275 Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Tue, 4 Apr 2023 06:47:04 -0700 Subject: add a postCreateCommand to `git-lfs` Feature (#511) * add a postCreateCommand to git-lfs Feature * debug passing locally but not in CI * update scenario * add GIT_LFS_SKIP_SMUDGE=1 to prevent fetching lfs arifacts in github actions * arguments should be booleans * move example repo to devcontainers org * place script literally anywhere other than /tmp --- src/git-lfs/devcontainer-feature.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/git-lfs/devcontainer-feature.json') diff --git a/src/git-lfs/devcontainer-feature.json b/src/git-lfs/devcontainer-feature.json index 0217469..dc61dea 100644 --- a/src/git-lfs/devcontainer-feature.json +++ b/src/git-lfs/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "git-lfs", - "version": "1.0.7", + "version": "1.1.0", "name": "Git Large File Support (LFS)", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/git-lfs", "description": "Installs Git Large File Support (Git LFS) along with needed dependencies. Useful for base Dockerfiles that often are missing required install dependencies like git and curl.", @@ -13,8 +13,14 @@ ], "default": "latest", "description": "Select version of Git LFS to install" + }, + "autoPull": { + "type": "boolean", + "default": true, + "description": "Automatically pull LFS files when creating the container. When false, running 'git lfs pull' in the container will have the same effect." } }, + "postCreateCommand": "/usr/local/share/pull-git-lfs-artifacts.sh", "installsAfter": [ "ghcr.io/devcontainers/features/common-utils" ] -- cgit v1.2.3