Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

マイクラ自動化枠第1回資料

277 views

Published on

マイクラ自動化01「湧き潰し自動化でプログラミング& Azure 入門!コンテナも一気に理解!」#くらでべ #マイクラ #Minecraft

https://www.youtube.com/watch?v=f06rYspossI

Published in: Software
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD TH1S BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD TH1S BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

マイクラ自動化枠第1回資料

  1. 1. ワールド (端末がサーバ 代わり) (8⼈まで) ワールド (Realm) (Microsoft 管理) (同時11⼈) 俺ワールド (⾃宅サーバ) (⼤⼈数) 俺ワールド (クラウド) (⼤⼈数) お⼿持ちのPCや ゲーム機・スマホ
  2. 2. マイクラのサーバの構成 Linux / Windows / macOS Java実⾏環境 Minecraft Server (Java)
  3. 3. コンテナとは?
  4. 4. ・⼀度作ればどこでも動作する ・ (仮想化と⽐較して) 同量のリソースでよりたくさん動かせる ・すぐに利⽤できる コンテナのメリット
  5. 5. コンテナの定義 (マイクラコンテナの例) FROM openjdk:8u201-jre-alpine RUN apk add --no-cache -U openssl imagemagick lsof su-exec shadow bash curl iputils wget git jq mysql-client tzdata rsync nano python python-dev py2-pip RUN pip install mcstatus <<SNIP>> EXPOSE 25565 25575 RUN echo 'hosts: files dns' > /etc/nsswitch.conf <<SNIP>> ADD https://github.com/itzg/rcon- cli/releases/download/${RCON_CLI_VER}/rcon- cli_${RCON_CLI_VER}_linux_${ARCH}.tar.gz /tmp/rcon-cli.tgz RUN tar -x -C /usr/local/bin -f /tmp/rcon-cli.tgz rcon-cli && rm /tmp/rcon-cli.tgz ADD https://github.com/itzg/mc-server- runner/releases/download/${MC_SERVER_RUNNER_VER}/mc-server- runner_${MC_SERVER_RUNNER_VER}_linux_${ARCH}.tar.gz /tmp/mc- server-runner.tgz RUN tar -x -C /usr/local/bin -f /tmp/mc-server-runner.tgz mc-server- runner && rm /tmp/mc-server-runner.tgz <<SNIP>> VOLUME ["/data","/mods","/config"] COPY server.properties /tmp/server.properties WORKDIR /data ENTRYPOINT [ "/start" ] ENV UID=1000 GID=1000 JVM_XX_OPTS="-XX:+UseG1GC" MEMORY="1G" TYPE=VANILLA VERSION=LATEST FORGEVERSION=RECOMMENDED SPONGEBRANCH=STABLE SPONGEVERSION= LEVEL=world PVP=true DIFFICULTY=easy ENABLE_RCON=true RCON_PORT=25575 RCON_PASSWORD=minecraft LEVEL_TYPE=DEFAULT GENERATOR_SETTINGS= WORLD= MODPACK= MODS= SERVER_PORT=25565 ONLINE_MODE=TRUE CONSOLE=true SERVER_NAME="Dedicated Server" REPLACE_ENV_VARIABLES="FALSE" ENV_VARIABLE_PREFIX="CFG_" COPY start* / RUN dos2unix /start* && chmod +x /start* https://github.com/itzg/dockerfiles/blob/master/minecraft-server/Dockerfile
  6. 6. コンテナの定義(続き) FROM: どのコンテナイメージを元にするかを宣⾔ RUN: イメージ内でコマンドを実⾏する EXPOSE: どのポート番号を開けるかを宣⾔ ADD: リモートから圧縮されたファイルも含めて追加する VOLUME: コンテナの外部のストレージをコンテナ内部にマウントする COPY: ローカルにあるファイルを追加する WORKDIR: ワーキングディレクトリを指定する ENV: 環境変数の設定 ENTRYPOINT: コンテナ起動時に実⾏するコマンドを指定する
  7. 7. コンテナのビルド・実行 $ docker build イメージを作成する $ docker images イメージを⼀覧表⽰する $ docker run イメージを実⾏する $ docker ps 実⾏中のコンテナを表⽰する $ docker logs コンテナのログを表⽰ $ docker stop コンテナを停⽌する
  8. 8. コンテナのビルド・実行 cd OneDrive - Microsoft/FY19/くらでべ/ネタ枠/dockerfiles/minecraft-server docker build -t rioriost/minecraft-server . docker images docker run -itd --rm -e EULA=TRUE rioriost/minecraft-server docker ps docker logs docker stop docker rm `docker ps -aq`
  9. 9. コンテナレジストリ 最も有名・巨⼤なのはDockerHub(https://hub.docker.com) イメージをPush / Pull / Searchすることが可能 AzureにもAzure Container Registryというサービスがある
  10. 10. コンテナレジストリ ブラウザでのデモ https://hub.docker.com ターミナルでのデモ(レジストリへのプッシュ・プル) docker push rioriost/minecraft-server docker images -aq | xargs docker rmi docker pull rioriost/minecraft-server
  11. 11. ワールド (端末がサーバ 代わり) (8⼈まで) ワールド (Realm) (Microsoft 管理) (同時11⼈) 俺ワールド (⾃宅サーバ) (⼤⼈数) 俺ワールド (クラウド) (⼤⼈数) お⼿持ちのPCや ゲーム機・スマホ
  12. 12. 今回のポイント ・マイクラでコマンドを実⾏するには サーバを⽴てれば良い ・コンテナなら アプリをたくさん・すぐに・どこでも動かせる ・コンテナの使い⽅ ・コンテナレジストリ

×