[mapk0y@kona:~]$ nproc
4
[mapk0y@kona:~]$ docker run -it --cpuset-cpus=1 --rm debian \
> sh -c 'echo "$(nproc): nproc"; echo "$(getconf _NPROCESSORS_ONLN): _NPROCESSORS_ONLN"; echo "$(grep -c processor /proc/cpuinfo): cpuinfo"'
1: nproc
4: _NPROCESSORS_ONLN
4: cpuinfo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- tokyo.txt 2021-03-02 14:18:17.445746977 +0900 | |
+++ osaka.txt 2021-03-02 14:13:22.492293366 +0900 | |
@@ -1,43 +1,11 @@ | |
-AWS Amplify | |
-AWS App Mesh | |
-AWS AppSync | |
-AWS Application Discovery Service | |
AWS Artifact | |
-AWS Audit Manager | |
-AWS Auto Scaling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for pkg-config on Debian GNU/Linux 9.12 (stretch) | |
Build date: 2020-04-06 03:26:45 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for pkg-config on Debian GNU/Linux 9.12 (stretch) | |
Build date: 2020-04-06 03:26:45 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource sakuracloud_server "sv" { | |
count = 2 # <== 2台立ててる | |
name = "sv${format("%02d", count.index)}" | |
} | |
resource sakuracloud_packet_filter "pf" { | |
name = "pf" | |
expressions = { | |
protocol = "ip" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
こちらは起動時の環境変数(PUID、PGUID)で実行ユーザーを変更できる
-e PGID for GroupID - see below for explanation
-e PUID for UserID - see below for explanation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN set -ex \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends xfce4 \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/* |
$ tree
.
├── compose-a.yml
└── compose-b.yml
$ cat compose-a.yml
version: '2'
services:
a:
go getで取得したcliツールのバイナリを持った軽量なDockerイメージをつくる - tehepero note(・ω<) を見てなんとなく挑戦。
ここでやることは static な goose バイナリを用意して scratch イメージに放り込むだけです。
専用の build イメージを作る。キモは build のオプション(-ldflags "-extldflags -static"
)。go-sqlite3 が cgo なので CGO_ENABLED=0 はできない。正直あまりわかってない。
golangで書いたアプリケーションのstatic link化 - okzkメモ こちらの説明が詳しい。
NewerOlder