From e997f8af5fa92718f5dfb8698e2b082d58bbf6e1 Mon Sep 17 00:00:00 2001 From: FlexibleToast Date: Tue, 25 Jul 2023 16:52:33 -0500 Subject: [PATCH] Add devcontainer and .gitattributes --- .devcontainer/devcontainer.json | 50 +++++++++++++++++++++++++++++++++ .gitattributes | 3 ++ 2 files changed, 53 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .gitattributes diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d340142 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,50 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/debian +{ + "name": "Docker outside of Docker", + // SELinux fix + "workspaceMount": "", + "runArgs": ["--volume=${localWorkspaceFolder}:/workspaces/${localWorkspaceFolderBasename}:Z"], + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/base:bullseye", + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { + "version": "latest", + "enableNonRootDocker": "true", + "moby": "true" + } + }, + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "streetsidesoftware.code-spell-checker" + ], + "settings": { + "cSpell.words": [ + "Containerfile", + "datadir", + "devcontainers", + "dockercompose", + "gradio", + "moby", + "universonic", + "webui" + ], + "files.associations": { + "*.yml": "dockercompose", + "*.yaml": "dockercompose" + } + } + } + } + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..314766e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto eol=lf +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf