-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Docker Desktop with docker cli on host
- Loading branch information
Showing
5 changed files
with
2 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
ARG silverblue_version=40 | ||
FROM quay.io/fedora-ostree-desktops/silverblue:${silverblue_version} | ||
|
||
COPY docker-ce.repo /etc/yum.repos.d/docker-ce.repo | ||
COPY docker-release-public-key.asc /etc/pki/rpm-gpg/docker-release-public-key.asc | ||
COPY vscode.repo /etc/yum.repos.d/vscode.repo | ||
COPY microsoft-release-public-key.asc /etc/pki/rpm-gpg/microsoft-release-public-key.asc | ||
|
||
ADD https://desktop.docker.com/linux/main/amd64/160616/docker-desktop-x86_64.rpm /docker-desktop-x86_64.rpm | ||
RUN --mount=type=bind,source=checksums,target=/checksums,z sha256sum -c checksums | ||
|
||
# Copying the pattern for installing Docker Desktop from here | ||
# https://github.com/coreos/rpm-ostree/issues/233#issuecomment-1301194050 | ||
# There have been updates since this was written in Nov 2022 but as of July 2024, this is still the | ||
# recommended way https://github.com/coreos/fedora-coreos-tracker/issues/1681#issuecomment-2211137520 | ||
RUN --mount=type=bind,source=packages.json,target=/packages.json,z \ | ||
rpm-ostree override remove \ | ||
$(jq -r '"--install=\(.add[].name)"' /packages.json | xargs) \ | ||
$(jq -r '.remove[].name' /packages.json | xargs) \ | ||
&& systemctl enable rpm-ostreed-automatic.timer \ | ||
&& mkdir /var/opt \ | ||
&& rpm -Uvh docker-desktop-x86_64.rpm \ | ||
&& mv /var/opt/docker-desktop /usr/lib/opt/docker-desktop \ | ||
&& echo 'L /opt/docker-desktop - - - - ../../usr/lib/opt/docker-desktop' > /usr/lib/tmpfiles.d/docker-desktop.conf \ | ||
&& rpm-ostree cleanup --repomd | ||
|
||
RUN ostree container commit |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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