Giter VIP home page Giter VIP logo

labs-make-runbook's Introduction

Docker AI Prompts

What is this project?

Getting started

Docker internal users: You must be opted-out of mandatory sign-in.

  1. Install latest VSIX file https://github.com/docker/labs-ai-tools-vscode/releases
  2. Open your workspace
  3. Execute command >Set OpenAI API key... and enter your OpenAI secret key.
  4. Execute command >save-prompt and enter your prompt URL/ref. Example prompt: https://github.com/docker/labs-ai-tools-for-devs/tree/main/prompts/poem
  5. Execute command >run-prompt

This project is a research prototype. It is ready to try and will give results for any project you try it on.

Development

Local developement

# docker:command=build-and-install
yarn run compile
yarn run package
# Outputs vsix file
code --install-extension your-file.vsix

labs-make-runbook's People

Contributors

colinmcneil avatar slimslenderslacks avatar nicksieger avatar

Stargazers

Abe Shalash avatar  avatar Domingo Scisci avatar Sandro Cícero avatar Evaldo Klock avatar Nikola Balic avatar  avatar Dmitry Nikolaev avatar Jimmy Briggs avatar Francesco Signoretti avatar Tertius Stander avatar buiphananh2612@gmail.com avatar Ryan Elston avatar Phalani Medavarapu avatar Ali Ghanbarzadeh avatar Tyler Titsworth avatar Tony Denmely avatar Liam Goodrick avatar Natraj Yegnaraman avatar Rajkumar Singh avatar Pete Warnock avatar Trunks Neo avatar Sergio Valverde avatar Haroldo Abreu avatar Adrian Salceanu avatar GuiJiangHeng avatar Satcom avatar Sangam Biradar avatar Sugato Ray avatar Michael Yuan avatar perestoronin avatar  avatar Mateen Irshad avatar Cédric avatar cnbrucex avatar Víctor Gallego avatar Eusebie Siebenberg avatar  avatar  avatar  avatar Nelson Auner avatar Rama Narasimhan avatar Alex of House Derp avatar  avatar

Watchers

Fernando Navarro Páez avatar  avatar

labs-make-runbook's Issues

Json: Error: Connection error.

Hi, I tried make runbook v0.0.10

and I had this problem:

Error: Connection error.

This is my docker file:

FROM node:20.13.1-alpine

# Docker Scout -- Vulnerability Scanning solved
RUN apk upgrade busybox 
RUN apk upgrade openssl 

WORKDIR /usr/src/app

COPY ["package.json", "./"]
COPY [".env.example", "./.env"]

RUN npm install

COPY . .

RUN npm run build

EXPOSE 3000

CMD node ./dist/src/main.js

and this is my extension config:

Captura de Pantalla 2024-06-21 a la(s) 18 27 54

Docker Username is now always local-user

Was there a problem with 4fc89a7 - I'm now only seeing local-user, even when there the user is logged in.

Reproduction

Log in to Docker Desktop and then run the "docker" runbook generation - what I'm seeing is that we still see local-user.

InlineCompletionItemProvider is not being registered during activation

This is the code from the previous extension. Inline completion providers are part of the next version of the lsp spec but they have to be registered manually in the current version of VSCode.

  vscode.languages.registerInlineCompletionItemProvider(
    [{ language: "dockerfile" }, { language: "markdown" }],
    {
      provideInlineCompletionItems(
        document: vscode.TextDocument,
        position: vscode.Position,
        context: vscode.InlineCompletionContext,
        token: vscode.CancellationToken
      ): vscode.ProviderResult<
        vscode.InlineCompletionItem[] | vscode.InlineCompletionList
      > {
        return nativeClient.sendRequest("textDocument/inlineCompletion", {
          context: {
            uri: document.uri.toString(),
            position: position,
            triggerKind: context.triggerKind,
          },
        });
      },
    }
  );

This is why the # docker:command=... completion is now longer showing up.

caching markdown blocks

This is so that you don't have to open/edit runbooks in order to bind commands.

The LSP now supports a request called docker/markdown-blocks which will cause the lsp to re-fire all of the current $bind/register notifications using whatever has been cached. If the runbook.md has ever been opened by the user on the current machine (the current docker-lsp volume) then you'll be notified of those cached volumes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.