可以通过yes来提示许可协议的Dockerfile怎么写?
docker build -t "{user}/{tags}" .则构建失败。docker logs {container id}, 显示信息如下:
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring ttf-mscorefonts-installer
TrueType core fonts for the Web EULA END-USER LICENSE AGREEMENT FOR
MICROSOFT SOFTWARE
...
Do you accept the EULA license terms? [yes/no]
Run Code Online (Sandbox Code Playgroud)这是我的 SQL:
SELECT t.uid, array_agg(t.place) FROM tour_tracking t WHERE (orderon::time BETWEEN '18:00:00' AND '20:00:00') GROUP BY t.uid;
原点结果:
|---------------|----------------------|
| uid | place |
|---------------|----------------------|
| a01 | {hk, hk, jp} |
|---------------|----------------------|
| a02 | {jp, jp, jp, jp, uk} |
|---------------|----------------------|
现在我想为每个分组的 uid 指望每个 DISTINCT 位置。希望的结果:
|---------------|--------------------------------------|
| uid | place |
|---------------|--------------------------------------|
| a01 | something like this: {hk,2, jp,1} |
|---------------|--------------------------------------|
| a02 | {jp:4, uk:1} |
|---------------|--------------------------------------|
我尝试组合一些count()sql 查询但不起作用..,如何进行正确的查询?
PostgreSQL 版本:10.3