Giter Club home page Giter Club logo

docker-ai2-live's Introduction

docker-ai2-live

可用來建立 App Inventor 2 離線版之 docker container,須配合 AiLiveComplete 使用。

建立 image

git clone https://github.com/t301000/docker-ai2-live.git
cd docker-ai2-live
docker build -t IMAGE_NAME[:TAG] .

範例

建立名稱為 ai2-live 的 image,其 tag 為 v1

docker build -t ai2-live:v1 .

建立 container

準備工作:

  1. 下載 AiLiveComplete
  2. 將下載的檔案解壓縮,解壓縮出來的資料夾名稱為 Ai2LiveComplete
  3. 修改 Ai2LiveComplete 下的 startAIServer.sh
找到:
java -ea -cp "$JAR_FILE" \
  com.google.appengine.tools.KickStart \
  com.google.appengine.tools.development.DevAppServerMain "$@" $WEB_APP
改成:(最後加入 & ,丟到背景執行)
java -ea -cp "$JAR_FILE" \
  com.google.appengine.tools.KickStart \
  com.google.appengine.tools.development.DevAppServerMain "$@" $WEB_APP &

建立 container

先將路徑切換到 Ai2LiveComplete 所在目錄,執行以下指令:

docker run -d --name=ai2_live -p 8888:8888 -v $(pwd)/Ai2LiveComplete:/ai2 ai2-live:v1

使用之 image 為 ai2-live, tag 為 v1, container 命名為 ai2_live,將目前路徑下的 Ai2LiveComplete 掛載到 container 中的 /ai2

瀏覽 localhost:8888 或是 ip:8888 即可開始使用囉!!

docker-ai2-live's People

Contributors

t301000 avatar

Stargazers

Wanddy Huang(黄仁祥) avatar JMcn avatar

Watchers

James Cloos avatar  avatar

Forkers

houcy

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.