Skip to content

Dockerfile: Add docker CLI and compose CLI plugin#208

Merged
ricardosalveti merged 1 commit intomainfrom
add-docker-compose
Aug 8, 2022
Merged

Dockerfile: Add docker CLI and compose CLI plugin#208
ricardosalveti merged 1 commit intomainfrom
add-docker-compose

Conversation

@mike-sul
Copy link
Copy Markdown
Contributor

@mike-sul mike-sul commented Aug 8, 2022

The "oe-builtin" App preload requires docker compose utility since
we moved from the python-based docker-compose to the golang-based
plugin of docker CLI utility.

Signed-off-by: Mike [email protected]

@mike-sul mike-sul force-pushed the add-docker-compose branch 2 times, most recently from 2bd9549 to 76510f9 Compare August 8, 2022 10:07
@mike-sul
Copy link
Copy Markdown
Contributor Author

mike-sul commented Aug 8, 2022

Comment thread Dockerfile Outdated
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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added apt-get clean to clean the cache.

@mike-sul mike-sul force-pushed the add-docker-compose branch from 76510f9 to fff161f Compare August 8, 2022 13:56
Comment thread Dockerfile Outdated
&& 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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need - && rm -rf /var/lib/apt/lists/*

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I added, not sure it makes significant difference though.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@mike-sul mike-sul force-pushed the add-docker-compose branch from fff161f to 3ed4303 Compare August 8, 2022 14:19
Comment thread Dockerfile
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 \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ricardosalveti ricardosalveti merged commit 3c7e4ad into main Aug 8, 2022
@mike-sul mike-sul deleted the add-docker-compose branch August 8, 2022 16:14
Tim-Anderson pushed a commit to Tim-Anderson/lmp-manifest that referenced this pull request Aug 30, 2022
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants