Tagbangers Blog

小川 岳史

asdf + Poetry + IntelliJ で Python 開発環境を作る

asdf のインストール タグバンガーズではツールのバージョン管理として asdf を使っています。 brew などさまざまな方法でインストールできます。 https://asdf-vm.com/guide/getting-started.html Python のインストール asdf plugin-add python asdf install python 3.11.7 asdf local python 3.11.7 Poetry のインストール asdf plugin-add poetry asdf install poetry latest asdf global poet...

Spring Cloud Kubernetes を試してみる

はじめに Spring Cloud Kubernetes は Kubernetes ネイティブ API を使用した Spring Cloud の共通インターフェイスの実装で、次の 4 つの Spring Boot Starter がある。 spring-cloud-starter-kubernetes: Kubernetes Service からサービス名を解決する Discovery Client の実装。 spring-cloud-starter-kubernetes-config: Kubernetes ConfigMap と Secret から application properti...

IntelliJ IDEA で Nuxt.js のデバッグ

IntelliJ IDEA で Nuxt.js のデバッグを行う場合、以下の 1 行を nuxt.config.js に追加する必要があります。 build: { extend(config, ctx) { // この 1 行を追加 config.devtool = ctx.isClient ? 'eval-source-map' : 'inline-source-map' } }, 詳しくはこちら。 https://medium.com/@fernalvarez/nuxt-js-debugging-for-webstorm-9b4ef5415a5

Spring I/O 2019 Slides

Keynote Juergen Hoeller / Ben Hale / Violeta Georgieva and Sébastien Deleuze https://twitter.com/sdeleuze/status/1129017544013221888 Moving from Imperative to Reactive Paul Harris The State of Java Relational Persistence Maciej Walkowiak https://speakerdeck.com/maciejwalkowiak/the-state-of-java-rela...

Spring Cloud Contract の Pact 対応

先日行われた Spring Fest 2018 で「Spring Data REST と Spring Cloud Contract」というタイトルで登壇させていただきました。 デモがあればわかりやすかった、というご意見をいただきましたので、ちょっとしたサンプルコードを公開しました。 話のもとになっているスライドはこちらです。 https://www.slideshare.net/OgawaTakeshi/spring-datarestandspringcloudcontract 今回のサンプルコードは Angular で作られたフロントエンドアプリが Consumer として Pact を生...

Amazon Linux に Google Chrome をインストールする

PhantomJS の開発が終了したらしい。 https://github.com/ariya/phantomjs/issues/15344 ということで、CI サーバ上で動作しているヘッドレスブラウザを Chrome にかえるべく以下のサイトにたどり着きました。 https://intoli.com/blog/installing-google-chrome-on-centos/ 以下のコマンドで一発インストール OK。 curl https://intoli.com/install-google-chrome.sh | bash 試した環境は以下の通り。 $ cat /etc/system...

The temporary upload location [/tmp/tomcat.***] is not valid

Spring Boot のアプリでファイルアップロードの機能が突然以下のようなエラーで機能しなくなるようなことがありました。 java.io.IOException: The temporary upload location [/tmp/tomcat.4973725229945795147.5000/work/Tomcat/localhost/ROOT] is not valid 原因は以下。 https://github.com/spring-projects/spring-boot/issues/5009 https://github.com/spring-projects/spring...

Spring I/O 2018 Day2 Slides

Spring Boot 2.0 Web Applications by Stéphane Nicoll / Brian Clozel Time to graph up with Spring Data Neo4j by Gerrit Meier Documenting RESTful APIs with Spring REST Docs and RAML by Mathias Düsterhöft Monitor Your Spring Boot Application with Logs, Metrics, Pings, and Traces [Workshop] by Philipp Kr...

Bamboo + Android + Firebase Test Lab + SonarQube

Android プロジェクトを Bamboo にのせて CI してみます。 それぞれ以下のような役割です。 Bamboo: CI サーバ Firebase Test Lab: Android のテストをクラウド上の仮想、もしくは物理端末で実行してくれるサービス SonarQube: コード解析。今回は Firebase で実施したインスツルメントテストのカバレッジを反映します 1. Firebase にプロジェクトを作成 コンソールぽちぽち。 CI からの認証用にサービスアカウントを作っておく。 2. Bamboo サーバに Google Cloud SDK のセットアップ https://c...