-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
225 additions
and
1 deletion.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
ARG REPO | ||
FROM ghcr.io/${REPO}:debian-bookworm-av as rootfs | ||
ARG REPO | ||
|
||
# Install packages | ||
RUN \ | ||
echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
libqt5printsupport5 \ | ||
libqt5x11extras5 \ | ||
xz-utils && \ | ||
DOUBLECMD_VERSION=$(curl -sX GET "https://api.github.com/repos/doublecmd/doublecmd/releases/latest" \ | ||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \ | ||
curl -o \ | ||
/tmp/doublecmd.tar.xz -L \ | ||
"https://github.com/doublecmd/doublecmd/releases/download/${DOUBLECMD_VERSION}/doublecmd-$(echo $DOUBLECMD_VERSION| sed 's/^v//g').qt.$(uname -m).tar.xz" && \ | ||
mkdir /opt/doublecmd && \ | ||
tar -xf \ | ||
/tmp/doublecmd.tar.xz -C \ | ||
/opt/doublecmd --strip-components=1 && \ | ||
echo "**** desktop file ****" && \ | ||
DESKTOP_FILE=/usr/share/applications/doublecmd-pa.desktop && \ | ||
echo '[Desktop Entry]' > ${DESKTOP_FILE} && \ | ||
echo 'Type=Application' >> ${DESKTOP_FILE} && \ | ||
echo 'Name=Double Commander PA' >> ${DESKTOP_FILE} && \ | ||
echo 'Icon=doublecmd' >> ${DESKTOP_FILE} && \ | ||
echo 'Exec=/bin/sh -c "$HOME/.local/bin/proot-apps run ghcr.io/'${REPO}':doublecmd %U"' >> ${DESKTOP_FILE} && \ | ||
echo "**** set bin name ****" && \ | ||
echo "doublecmd-pa" > /bin-name && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get autoclean && \ | ||
rm -rf \ | ||
/root/.cache \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* \ | ||
/tmp/* | ||
|
||
COPY ./entrypoint /entrypoint | ||
COPY ./install /install | ||
COPY ./remove /remove | ||
|
||
FROM scratch | ||
COPY --from=rootfs / / |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Start Double Commander | ||
/opt/doublecmd/doublecmd "$@" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
## Desktop and icons install ## | ||
echo "Adding icon" | ||
mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps/ | ||
cp \ | ||
/opt/doublecmd/doublecmd.png \ | ||
$HOME/.local/share/icons/hicolor/scalable/apps/ | ||
echo "Adding start menu entry" | ||
mkdir -p $HOME/.local/share/applications/ | ||
cp \ | ||
/usr/share/applications/doublecmd-pa.desktop \ | ||
$HOME/.local/share/applications/ | ||
echo "Adding desktop shortcut" | ||
mkdir -p $HOME/Desktop | ||
cp \ | ||
/usr/share/applications/doublecmd-pa.desktop \ | ||
$HOME/Desktop/ | ||
chmod +x $HOME/Desktop/doublecmd-pa.desktop |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
echo "Removing icon" | ||
rm -f $HOME/.local/share/icons/hicolor/scalable/apps/doublecmd.png | ||
echo "Removing start menu entry" | ||
rm -f $HOME/.local/share/applications/doublecmd-pa.desktop | ||
echo "Removing desktop shortcut" | ||
rm -f $HOME/Desktop/doublecmd-pa.desktop |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ARG REPO | ||
FROM ghcr.io/${REPO}:alpine-319-av as rootfs | ||
ARG REPO | ||
|
||
# Install packages | ||
RUN \ | ||
echo "**** install packages ****" && \ | ||
apk add --no-cache \ | ||
mumble && \ | ||
echo "**** customize desktop file ****" && \ | ||
sed -i \ | ||
-e "/^Exec=/c Exec=/bin/sh -c \"\$HOME\/.local\/bin\/proot-apps run ghcr.io/${REPO}:mumble %U\"" \ | ||
-e "s/Name=Mumble/Name=Mumble PA/g" \ | ||
-e '/^TryExec=/d' \ | ||
/usr/share/applications/info.mumble.Mumble.desktop && \ | ||
mv \ | ||
/usr/share/applications/info.mumble.Mumble.desktop \ | ||
/usr/share/applications/mumble-pa.desktop && \ | ||
echo "**** set bin name ****" && \ | ||
echo "mumble-pa" > /bin-name && \ | ||
echo "**** cleanup ****" && \ | ||
rm -rf \ | ||
/tmp/* | ||
|
||
COPY ./entrypoint /entrypoint | ||
COPY ./install /install | ||
COPY ./remove /remove | ||
|
||
FROM scratch | ||
COPY --from=rootfs / / |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Start Mumble | ||
mumble "$@" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
## Desktop and icons install ## | ||
echo "Adding icon" | ||
mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps/ | ||
cp \ | ||
/usr/share/icons/hicolor/scalable/apps/mumble.svg \ | ||
$HOME/.local/share/icons/hicolor/scalable/apps/ | ||
echo "Adding start menu entry" | ||
mkdir -p $HOME/.local/share/applications/ | ||
cp \ | ||
/usr/share/applications/mumble-pa.desktop \ | ||
$HOME/.local/share/applications/ | ||
echo "Adding desktop shortcut" | ||
mkdir -p $HOME/Desktop | ||
cp \ | ||
/usr/share/applications/mumble-pa.desktop \ | ||
$HOME/Desktop/ | ||
chmod +x $HOME/Desktop/mumble-pa.desktop |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
echo "Removing icon" | ||
rm -f $HOME/.local/share/icons/hicolor/scalable/apps/mumble.svg | ||
echo "Removing start menu entry" | ||
rm -f $HOME/.local/share/applications/mumble-pa.desktop | ||
echo "Removing desktop shortcut" | ||
rm -f $HOME/Desktop/mumble-pa.desktop |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
ARG REPO | ||
FROM ghcr.io/${REPO}:debian-bookworm-av as rootfs | ||
ARG REPO | ||
|
||
# Install packages | ||
RUN \ | ||
echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
lbzip2 \ | ||
libdbus-glib-1-2 \ | ||
libgtk-3-0 && \ | ||
ZOTERO_VERSION=$(curl -sL https://www.zotero.org/download/ \ | ||
|awk -F'linux-x86_64' '/linux-x86_64/ {print $2}' \ | ||
| awk -F'"' '{print $3}') && \ | ||
curl -o \ | ||
/tmp/zotero.tar.bz2 -L \ | ||
"https://download.zotero.org/client/release/${ZOTERO_VERSION}/Zotero-${ZOTERO_VERSION}_linux-x86_64.tar.bz2" && \ | ||
mkdir /opt/zotero && \ | ||
tar xf \ | ||
/tmp/zotero.tar.bz2 -C \ | ||
/opt/zotero/ --strip-components=1 && \ | ||
echo "**** customize desktop file ****" && \ | ||
sed -i \ | ||
-e "/^Exec=/c Exec=/bin/sh -c \"\$HOME\/.local\/bin\/proot-apps run ghcr.io/${REPO}:zotero %U\"" \ | ||
-e "s/Name=Zotero/Name=Zotero PA/g" \ | ||
-e 's:Icon=zotero.ico:Icon=zotero:g' \ | ||
-e '/^TryExec=/d' \ | ||
/opt/zotero/zotero.desktop && \ | ||
mv \ | ||
/opt/zotero/zotero.desktop \ | ||
/usr/share/applications/zotero-pa.desktop && \ | ||
echo "**** set bin name ****" && \ | ||
echo "zotero-pa" > /bin-name && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get autoclean && \ | ||
rm -rf \ | ||
/root/.cache \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* \ | ||
/tmp/* | ||
|
||
COPY ./entrypoint /entrypoint | ||
COPY ./install /install | ||
COPY ./remove /remove | ||
|
||
FROM scratch | ||
COPY --from=rootfs / / |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Start Zotero | ||
/opt/zotero/zotero "$@" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
## Desktop and icons install ## | ||
echo "Adding icon" | ||
mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps/ | ||
cp \ | ||
/opt/zotero/chrome/icons/default/default256.png \ | ||
$HOME/.local/share/icons/hicolor/scalable/apps/zotero.png | ||
echo "Adding start menu entry" | ||
mkdir -p $HOME/.local/share/applications/ | ||
cp \ | ||
/usr/share/applications/zotero-pa.desktop \ | ||
$HOME/.local/share/applications/ | ||
echo "Adding desktop shortcut" | ||
mkdir -p $HOME/Desktop | ||
cp \ | ||
/usr/share/applications/zotero-pa.desktop \ | ||
$HOME/Desktop/ | ||
chmod +x $HOME/Desktop/zotero-pa.desktop |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
echo "Removing icon" | ||
rm -f $HOME/.local/share/icons/hicolor/scalable/apps/zotero.png | ||
echo "Removing start menu entry" | ||
rm -f $HOME/.local/share/applications/zotero-pa.desktop | ||
echo "Removing desktop shortcut" | ||
rm -f $HOME/Desktop/zotero-pa.desktop |
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