GithubHelp home page GithubHelp logo

docker-demo-env's Introduction

概要

Docker勉強会用サンプル

説明

  • node・・・Node.jsのサンプルプログラム
  • java・・・バージョン違い(JDK20と21)、ベースOS違い(corretto22)
  • salesforce・・・Salesforceにおける開発環境

コンテナ実行環境の導入手順

勉強会においては、Dockerコンテナを扱います。
Dockerコンテナの実行環境は以下の2つのどちらかの手順に従って準備をお願いします。

Docker Desktop(要インストール)

  1. DockerをDLし、インストールします
    インストール前のメモリの空きが2GB以上であること
    ※Dockerを常用しない場合は、自動起動をオフにしておくことをおすすめします
  2. Windows TerminalをDLし、インストールします(オプション)
    複数のコマンドを同時に実行するときに便利
  3. 当ソースのディレクトリをDockerの共有ドライブの設定に加える
    c:\docker-demoを含むパスを追加
    共有ドライブの設定
  4. Docker Desktopが起動していることを確認し、Windows Terminalで以下のコマンドを実行し、エラーなく実行されることを確認する
    warningは問題なし
    docker info
    

Docker プレイグラウンド(オンライン)

  1. dockr hubのアカウントを取得
    既にある場合は不要
  2. docker play groundにログイン
    login docker play ground

使い方

前提条件としてDocker Desktopをインストールしていること

node

  1. nodeディレクトリ配下に移動
  2. docker compose up -dを実行
  3. ブラウザでlocalhost:3000を実行
  4. 終了時:docker compose down`を実行

java、corretto22

  1. VSCodeの拡張機能 Remote Developmentをインストール
  2. .devcontainerフォルダがあるディレクトリに移動
  3. [Shift]+[Ctrl]+[P]で「Dev Containers:Rebuild and Reopen in container」

docker-demo-env's People

Contributors

comefigo avatar

Watchers

 avatar

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.