Giter VIP home page Giter VIP logo

Comments (19)

catatsuy avatar catatsuy commented on June 26, 2024

refs #73

from isucon6-final.

edvakf avatar edvakf commented on June 26, 2024

https://isucon6finaldev.blob.core.windows.net/dbf3a7dcbfd5cc8fc4386ce75a8b23098c3c97d4/index.html これを使えば大丈夫かも

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

確認します

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

@matsuu リポジトリのものを使うとこうなります。成果物を使えば大丈夫そうです。

現時点の問題としてはディレクトリを変更して起動できない点です。コピペして無理矢理起動すれば大丈夫そうです。

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

@catatsuy azure用に書き換えてしまったのよくなかったですね。すみません。
azure用tagを作って、単体実行と分離しようかと思います。

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

あー、勘違いしてました。
ディレクトリを変更して起動できない、たしかに。
代替方法考えます。

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

Azure CLIを用意すれば、こんなシェルスクリプトでデプロイ可能です

#!/bin/sh

set -e

RESOURCE_GROUP="${RESOURCE_GROUP:-isucon6-final-dev}"
SSH_PUBLIC_KEY="${SSH_PUBLIC_KEY:-`cat ~/.ssh/id_rsa.pub`}"
PREFIX="${PREFIX:-i6f}"

# azure login
# azure config mode arm
azure group deployment create -f azuredeploy.json -p "{\"sshPublicKey\":{\"value\":\"${SSH_PUBLIC_KEY}\"},\"prefix\":{\"value\":\"${PREFIX}\"}}" -g ${RESOURCE_GROUP}

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

ファイルの代わりにURI指定も可能でした。なのでこれでもok

azure group deployment create \
  --template-uri https://isucon6finaldev.blob.core.windows.net/dbf3a7dcbfd5cc8fc4386ce75a8b23098c3c97d4/azuredeploy.json \
  -p "{\"sshPublicKey\":{\"value\":\"${SSH_PUBLIC_KEY}\"},\"prefix\":{\"value\":\"${PREFIX}\"}}" \
  -g ${RESOURCE_GROUP}

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

azure account list でIDを調べて、azure account set {ID} をしてから実行したら実行できました!

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

実行は出来ましたが、また同じエラー…

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

成果物のJSONを手でダウンロードしてリトライ中

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

AzureのDockerExtensionとansibleのdockerをinstallする処理がかち合っているように見えるのですが、AzureのDockerExtensionは必要ですか?

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

要らないです。トラブルの元なので取り除きます

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

セットアップ自体には成功したようですが、docker周りでエラーが出るのは変わりないので、取り除いた方が良さそうです。

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

ansibleでmysqlの起動を30秒待ってからデータ流し込みを実施されているようですが、
/docker-entrypoint-initdb.d/に初期データを設置して読み込む機能があるので、それを使うほうがいいかもしれません。
https://hub.docker.com/_/mysql/
既に検討済でその方法だと別の問題が出るのあれば無視してくださいすみません。

from isucon6-final.

edvakf avatar edvakf commented on June 26, 2024

おもしろいですね。やりたい。

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

試しにやってみます(30秒でもダメな時はあるので何とかしたいと思っていた)

from isucon6-final.

catatsuy avatar catatsuy commented on June 26, 2024

@matsuu 初回起動時に突っ込むようにしたので、sleepは消しておきます

from isucon6-final.

matsuu avatar matsuu commented on June 26, 2024

👍

from isucon6-final.

Related Issues (20)

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.