Swift 4 Migration

Before Migration versions: Xcode 8.3.2 Swift 3.2 CocoaPods: 1.3.1 Pods: pod 'APIKit' pod 'Crashlytics' pod 'CryptoSwift' pod 'Fabric' pod 'Firebase/Core' pod 'Google/Analytics' pod 'GoogleIDFASupport' pod 'Himotoki' pod 'PureLayout' pod 'SDWebImage' pod 'SVProgressHUD' pod 'SwiftyRSA' pod 'TTTAttributedLabel' Upgrade to Xcode9 (with swift3.2) Don’t touch these, yet Swift Conversion Convertion to Swift 4 is available Validate Project Settings Update to recommended settings Some Pod build will fail (CryptoSwift) In case of CryptoSwift, it already release swift 4 support version. Read more →

2017 09 17 Use Multi Stage Docker Build

I had wrote Dockerfile like this, to deploy Node.js application written by TypeScrpt to k8s FROM node:8.5.0 RUN apt-get update \ && apt-get install -y --no-install-recommends \ apt-transport-https \ && rm -rf /var/lib/apt/lists/* RUN apt-get update \ && apt-get install -y --no-install-recommends \ いろいろ && rm -rf /var/lib/apt/lists/* EXPOSE 3000 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY package.json yarn.lock /usr/src/app/ RUN yarn install COPY . /usr/src/app RUN Read more →

tsc –watch –skipLibCheck

tsc --watch --skipLibCheck good speed. normal full compile Files: 464 Lines: 97878 Nodes: 431416 Identifiers: 142914 Symbols: 108604 Types: 37006 Memory used: 230040K I/O read: 0.05s I/O write: 1.35s Parse time: 1.27s Bind time: 0.59s Check time: 4.40s Emit time: 3.50s Total time: 9.77s full compile + skipLibCheck Files: 464 Lines: 97878 Nodes: 431416 Identifiers: 142914 Symbols: 92415 Types: 17081 Memory used: 199322K I/O read: 0.04s I/O write: 0. Read more →

Migrated to Github Pages

I migrated this blog to github pages hosting, as a result. The CGP load balancer is expencive for just routing GS hosted content. This is memo for that. On GitHub Pages, choose project page(USER.github.io/PROJECT.github.io) and publish /docs setting. It seems that we can use only top directory pushlish setting, if we choose user page(USER.github.io). On hugo, add one line in config.toml. publishDir = "docs" build and push, then, https://yokomotod.github.io/yokomotod-io.github.io becomes to visible. Read more →

Deploy Hugo on Google Cloud Storage

Deploy part of the Hugo blog site created in last post. Deploy target:Google Cloud Storage About Hugo, I saw a lot of articles that deploy to GitHub Pages. It’s easy and cost free, but I did’t want to set this blog as my GitHub user page, nor create dummy GitHub account. Therefore, I deployed on Google Cloud Storage, in Google Cloud Platform. No particular reason why not AWS S3. Read more →

Hello, Hugo.

A happy new year. I start my blog from this year, with Hugo, with multilingal feature. Setup Install hugo. brew update brew install hugo Generate new site. hugo new site yokomotod.io Choose theme By searching theme which support multilingal mode, I found hugo-theme-bootstrap4-blog and hugo-theme-foundation6-blog. This time I chose hugo-theme-bootstrap4-blog. git clone https://github.com/alanorth/hugo-theme-bootstrap4-blog.git themes/hugo-theme-bootstrap4-blog Configuration config.toml baseurl = "http://yokomotod.io/" theme = "hugo-theme-bootstrap4-blog" # Put all language under sub directories (/en, /ja). Read more →