Dockerfile: Add docker CLI and compose CLI plugin#208
Conversation
2bd9549 to
76510f9
Compare
| RUN mkdir -p /etc/apt/keyrings \ | ||
| && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \ | ||
| && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \ | ||
| && apt-get update && apt-get install -y docker-ce-cli=5:20.10.14~3-0~ubuntu-focal |
There was a problem hiding this comment.
the stuff above this clears out the apt-cache after installing things to produce a smaller image. maybe we should fold this into that logic or also clear out the apt-cache here.
There was a problem hiding this comment.
added apt-get clean to clean the cache.
76510f9 to
fff161f
Compare
| && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \ | ||
| && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \ | ||
| && apt-get update && apt-get install -y docker-ce-cli=5:20.10.14~3-0~ubuntu-focal \ | ||
| && apt-get clean |
There was a problem hiding this comment.
you also need - && rm -rf /var/lib/apt/lists/*
There was a problem hiding this comment.
ok, I added, not sure it makes significant difference though.
There was a problem hiding this comment.
i have no idea, mine is 254M, but i don't clean it ever.
The "oe-builtin" App preload requires `docker compose` utility now since we moved from the python-based `docker-compose` to the golang-based plugin of `docker` CLI utility. Signed-off-by: Mike <[email protected]>
fff161f to
3ed4303
Compare
| RUN mkdir -p /etc/apt/keyrings \ | ||
| && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \ | ||
| && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \ | ||
| && apt-get update && apt-get install -y docker-ce-cli=5:20.10.14~3-0~ubuntu-focal \ |
There was a problem hiding this comment.
It seems they are not removing older ce-cli packages, but this might cause the dockerfile to fail on rebuilds in case they decide to clean it up.
I think it is ok for now, but we might just have to switch to latest at some point.
Relevant changes: - d323df3 Merge pull request foundriesio#208 from Freescale/backport-207-to-honister - 32aff9b linux-boundary: bump revision to bb58f0ee - b123854 Merge pull request foundriesio#204 from boundarydevices/honister - 9e698af u-boot-boundary: fix fw_env.config management - b4df0cf Merge pull request foundriesio#201 from chrisdimich/honister - 2ebd2e0 nitrogen8mp: Define nxp as default BSP - 657e750 Merge pull request foundriesio#200 from chrisdimich/honister - 8f6984a u-boot-boundary: bump revision to 3d5e7f60 - b30688b linux-boundary: bump revision to 04f4286f Signed-off-by: Ricardo Salveti <[email protected]>
The "oe-builtin" App preload requires
docker composeutility sincewe moved from the python-based
docker-composeto the golang-basedplugin of
dockerCLI utility.Signed-off-by: Mike [email protected]