いつも docker build -t [tag] . でやっているけど、
docker build -t [tag] -f [Dockerfile名] [Dockerfile名があるディレクトリ]で割りとフレキシブルにビルドできる。
例えば /dockerfile/myDockerfileがあって、 /で実行するときは
docker build -t tag -f ./dockerfile/myDockerfile ./dockerfile
<?php | |
use Curl\Curl; | |
$curl_url = "https://api.imagga.com/v1/tagging" | |
$curl = new Curl(); | |
$curl->setopt(CURLOPT_HEADER, FALSE); | |
$curl->setopt(CURLOPT_RETURNTRANSFER, TRUE); | |
$curl->setBasicAuthentication($api_key, $api_secret); | |
$curl->get($curl_url, array( | |
'url' => $file, | |
'language' => 'ja' |
<?php | |
use Curl\Curl; | |
$api_url = env('GOOGLE_CLOUDVISION_API_URL'); | |
$api_key = env('GOOGLE_CLOUDVISION_API_KEY'); | |
$curl = new Curl(); | |
$curl_url = $api_url . $api_key; | |
$curl->setHeader('Content-Type', 'application/json'); | |
$image_path = 'image_path'; | |
$file = file_get_contents($image_path); | |
$send_json = json_encode([ |
<?php | |
$file = file_get_contents($image_path); | |
$ch = curl_init(); | |
curl_setopt_array($ch,[ | |
CURLOPT_URL => $api_url . '?APIKEY=' . $api_key, | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_POST => true, | |
CURLOPT_POSTFIELDS => [ | |
'modelName' => 'food', | |
'image' => new CURLFile($image_path) |
<?php | |
$api_url = env('WATSON_RECOGNITION_API_URL'); | |
$api_key = env('WATSON_RECOGNITION_API_KEY'); | |
$api_mode = "v3/classify"; | |
$curl = new Curl(); | |
$curl_url = $api_url . $api_mode; | |
$image_path = 'image_path'; | |
$curl->get($curl_url, array( | |
'url' => $image_path, | |
'classifier_ids' => 'default', |
https://k8sjp.connpass.com/event/85336/ kubernetes meetup 11回目 今回のkubernetes Meetupは、18/5/2-5/4 に開催された KubeCon + CloudNativeCon Europe 2018 Recap スペシャルです。
Kubeconのスライドや公演の動画は全て公開されているので、興味があるセッションがあれば見るといいとのことでした。