rahul desai
rahul desai

Reputation: 59

Vscode Dev Container build with astro error

I'm trying to build/open a project in dev container using vscode. When I do reopen in container I get below error as shown in Image enter image description here

Below are the steps I tried. Added below cmd to dockerfile. COPY packages.txt /packages.txt. COPY requirements.txt /requirements.txt Reinstalled VScode

System Config Windows 11 Home VS code Details Version: 1.86.1 (user setup) Commit: 31c37ee8f63491495ac49e43b8544550fbae4533 Date: 2024-02-07T09:08:20.941Z Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.22621

Docker Version Docker Desktop 4.27.2 (137060)

Upvotes: 1

Views: 410

Answers (1)

S.Honcharov
S.Honcharov

Reputation: 43

The instruction from here helped me: https://selectfrom.dev/enabling-local-airflow-development-147e2d4c9adc

  1. astro dev start

  2. On the left-hand-side of the screen, you’ll see an icon for Remote Explorer. Clicking on it will reveal active containers in the environment. Click the attach to container icon to get started.

It is recommended attaching to the webserver (the Postgres container does not have the appropriate libraries and the scheduler only allows for read-only on files). After you select the container, a new Visual Studio Code window will open.

  1. Click Open Folder. Browse to:

    /usr/local/airflow/

Here, you will find the files from the folder you initialized on your local machine.

Upvotes: 0

Related Questions