Slide 1

Slide 1 text

Visual Studio Codeの Dev Containersを使って 開発環境構築してみよう 日本仮想化技術株式会社 VirtualTech.jp 2024/11/20 1

Slide 2

Slide 2 text

資料は後ほど公開します 2

Slide 3

Slide 3 text

3 自己紹介

Slide 4

Slide 4 text

[資料] 4

Slide 5

Slide 5 text

[資料] 4

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Remote Development

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Dev Containers

Slide 32

Slide 32 text

拡張機能

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

Dev Container 開発コンテナー

Slide 37

Slide 37 text

Open Folder in Container

Slide 38

Slide 38 text

dev-container-lesson01 Enter

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

ワークスペース内に構成を追加 する

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

Node.js & TypeScript

Slide 43

Slide 43 text

(既定) ※

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

フォルダーを信用して続行

Slide 49

Slide 49 text

許可

Slide 50

Slide 50 text

リモートを開いています... 開発コンテナー:〜

Slide 51

Slide 51 text

.devcontainer

Slide 52

Slide 52 text

node -v npm -v

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

// For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node { "name": "Node.js & TypeScript", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm" // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", // Configure tool-specific properties. // "customizations": {}, // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" }

Slide 55

Slide 55 text

"name": "Node.js & TypeScript",

Slide 56

Slide 56 text

"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm"

Slide 57

Slide 57 text

"features": {},

Slide 58

Slide 58 text

"forwardPorts": [],

Slide 59

Slide 59 text

yarn install "postCreateCommand": "yarn install",

Slide 60

Slide 60 text

"customizations": { "vscode": { "extensions": [ ... ], "settings": { ... } } },

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

リモート接続を終了する

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

削除

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

削除

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content