Multiarch fixes [stage]
This commit is contained in:
20
.github/workflows/docker-push.yml
vendored
20
.github/workflows/docker-push.yml
vendored
@@ -51,12 +51,11 @@ jobs:
|
|||||||
latest=${{ contains(github.event.head_commit.message, '[release]') == true }}
|
latest=${{ contains(github.event.head_commit.message, '[release]') == true }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=${{ env.XPIPE_TAG }}
|
type=raw,value=${{ env.XPIPE_TAG }}
|
||||||
- name: Build and push Docker image (amd64)
|
- name: Build and push Docker image
|
||||||
id: push
|
id: push
|
||||||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
@@ -64,22 +63,7 @@ jobs:
|
|||||||
"XPIPE_VERSION=${{ env.XPIPE_VERSION }}"
|
"XPIPE_VERSION=${{ env.XPIPE_VERSION }}"
|
||||||
"XPIPE_REPOSITORY=${{ env.XPIPE_REPOSITORY }}"
|
"XPIPE_REPOSITORY=${{ env.XPIPE_REPOSITORY }}"
|
||||||
"XPIPE_PACKAGE=${{ env.XPIPE_PACKAGE }}"
|
"XPIPE_PACKAGE=${{ env.XPIPE_PACKAGE }}"
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64,linux/arm64
|
||||||
- name: Build and push Docker image (arm64)
|
|
||||||
id: push
|
|
||||||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile.aarch64
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
build-args: |
|
|
||||||
"XPIPE_VERSION=${{ env.XPIPE_VERSION }}"
|
|
||||||
"XPIPE_REPOSITORY=${{ env.XPIPE_REPOSITORY }}"
|
|
||||||
"XPIPE_PACKAGE=${{ env.XPIPE_PACKAGE }}"
|
|
||||||
platforms: linux/arm64
|
|
||||||
if: contains(github.event.head_commit.message, '[release]')
|
|
||||||
- name: Generate artifact attestation
|
- name: Generate artifact attestation
|
||||||
uses: actions/attest-build-provenance@v1
|
uses: actions/attest-build-provenance@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
11
Dockerfile
11
Dockerfile
@@ -1,5 +1,12 @@
|
|||||||
ARG START_DOCKER=false
|
FROM scratch AS base
|
||||||
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
|
|
||||||
|
FROM base AS build-arm64
|
||||||
|
ENV BASE_IMAGE_TAG=arm64v8-ubuntunoble
|
||||||
|
|
||||||
|
FROM base AS build-amd64
|
||||||
|
ENV BASE_IMAGE_TAG=ubuntunoble
|
||||||
|
|
||||||
|
FROM ghcr.io/linuxserver/baseimage-kasmvnc:${BASE_IMAGE_TAG}
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND="noninteractive"
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
|
|||||||
@@ -1,83 +0,0 @@
|
|||||||
ARG START_DOCKER=false
|
|
||||||
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-ubuntunoble
|
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND="noninteractive"
|
|
||||||
|
|
||||||
ENV TITLE="XPipe Webtop"
|
|
||||||
ARG XPIPE_VERSION
|
|
||||||
ARG XPIPE_REPOSITORY
|
|
||||||
ARG XPIPE_PACKAGE
|
|
||||||
|
|
||||||
# prevent Ubuntu's firefox stub from being installed
|
|
||||||
COPY /root/etc/apt/preferences.d/firefox-no-snap /etc/apt/preferences.d/firefox-no-snap
|
|
||||||
|
|
||||||
RUN echo "**** install packages ****" && \
|
|
||||||
add-apt-repository -y ppa:mozillateam/ppa && \
|
|
||||||
apt-get update && \
|
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
|
||||||
apt-get install --no-install-recommends -y \
|
|
||||||
dolphin \
|
|
||||||
firefox \
|
|
||||||
gwenview \
|
|
||||||
kde-config-gtk-style \
|
|
||||||
kdialog \
|
|
||||||
kio-extras \
|
|
||||||
konsole \
|
|
||||||
kubuntu-settings-desktop \
|
|
||||||
kwin-x11 \
|
|
||||||
kwrite \
|
|
||||||
wget \
|
|
||||||
git \
|
|
||||||
plasma-desktop \
|
|
||||||
plasma-workspace \
|
|
||||||
plymouth-theme-kubuntu-logo \
|
|
||||||
qml-module-qt-labs-platform \
|
|
||||||
alacritty \
|
|
||||||
kitty \
|
|
||||||
tilix \
|
|
||||||
kate \
|
|
||||||
gedit \
|
|
||||||
terminator \
|
|
||||||
systemsettings && \
|
|
||||||
apt-get remove -y plasma-welcome && \
|
|
||||||
apt-get autoclean && \
|
|
||||||
rm -rf \
|
|
||||||
/config/.cache \
|
|
||||||
/config/.launchpadlib \
|
|
||||||
/var/lib/apt/lists/* \
|
|
||||||
/var/tmp/* \
|
|
||||||
/tmp/*
|
|
||||||
|
|
||||||
RUN echo "**** VsCode ****" && \
|
|
||||||
wget -O vscode.deb "https://go.microsoft.com/fwlink/?LinkID=760868" && \
|
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install --no-install-recommends -y "./vscode.deb" && \
|
|
||||||
rm "./vscode.deb"
|
|
||||||
|
|
||||||
# add local files
|
|
||||||
COPY /root /
|
|
||||||
|
|
||||||
# ports and volumes
|
|
||||||
EXPOSE 3000
|
|
||||||
VOLUME /config
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
echo "**** add icon ****" && \
|
|
||||||
curl -L -o \
|
|
||||||
/kclient/public/icon.png \
|
|
||||||
https://rawcdn.githack.com/xpipe-io/xpipe/a097ae7a41131fa358b5343345557ad00a45c309/dist/logo/logo.png
|
|
||||||
|
|
||||||
RUN echo "**** XPipe ****" && \
|
|
||||||
wget "https://github.com/$XPIPE_REPOSITORY/releases/download/$XPIPE_VERSION/xpipe-installer-linux-x86_64.deb" && \
|
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install --no-install-recommends -y "./xpipe-installer-linux-x86_64.deb" && \
|
|
||||||
rm "./xpipe-installer-linux-x86_64.deb"
|
|
||||||
|
|
||||||
RUN mkdir -p "/config/.config/kdedefaults/autostart/" && ln -s "/usr/share/applications/$XPIPE_PACKAGE.desktop" "/config/.config/kdedefaults/autostart/$XPIPE_PACKAGE.desktop"
|
|
||||||
|
|
||||||
RUN echo "**** kde tweaks ****" && \
|
|
||||||
sed -i \
|
|
||||||
"s/applications:org.kde.discover.desktop,/applications:org.kde.konsole.desktop,/g;s#preferred://browser#preferred://browser,applications:$XPIPE_PACKAGE.desktop#g" \
|
|
||||||
/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml
|
|
||||||
Reference in New Issue
Block a user