Skip to content

Commit fc24b9d

Browse files
committed
try add orcaslicer
1 parent a665222 commit fc24b9d

3 files changed

Lines changed: 100 additions & 0 deletions

File tree

.github/workflows/orcaslicer.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- .github/workflows/orcaslicer.yml
8+
- orcaslicer/**
9+
jobs:
10+
orcaslicer:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: true
17+
- name: Login
18+
uses: docker/login-action@v1
19+
with:
20+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
21+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
22+
- name: Setup QEMU
23+
uses: docker/setup-qemu-action@v1
24+
- name: Setup Docker
25+
uses: docker/setup-buildx-action@v1
26+
- name: Build Docker
27+
uses: docker/build-push-action@v2
28+
with:
29+
push: true
30+
context: ${{ github.job }}
31+
file: ${{ github.job }}/Dockerfile
32+
platforms: linux/amd64
33+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}:latest
34+
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}:buildcache
35+
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}:buildcache,mode=max
36+
- name: Push Docker Description
37+
uses: peter-evans/dockerhub-description@v2
38+
with:
39+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
40+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
41+
repository: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}
42+
short-description: '使用参考 README,信息参考:https://www.dosk.win/'

orcaslicer/Dockerfile

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Pull the baseimage
2+
FROM jlesage/baseimage-gui:ubuntu-24.04-v4.10.6
3+
4+
# Install orcaslicer
5+
RUN \
6+
echo "**** install packages ****" && \
7+
apt-get update && \
8+
DEBIAN_FRONTEND=noninteractive \
9+
apt-get install --no-install-recommends -y \
10+
curl \
11+
firefox \
12+
locales-all \
13+
gstreamer1.0-alsa \
14+
gstreamer1.0-gl \
15+
gstreamer1.0-gtk3 \
16+
gstreamer1.0-libav \
17+
gstreamer1.0-plugins-bad \
18+
gstreamer1.0-plugins-base \
19+
gstreamer1.0-plugins-good \
20+
gstreamer1.0-plugins-ugly \
21+
gstreamer1.0-pulseaudio \
22+
gstreamer1.0-qt5 \
23+
gstreamer1.0-tools \
24+
gstreamer1.0-x \
25+
libgstreamer-plugins-bad1.0 \
26+
libwebkit2gtk-4.1-0 \
27+
fonts-wqy-microhei \
28+
libwx-perl && \
29+
echo "**** add icon ****" && \
30+
APP_ICON_URL="https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/orcaslicer-logo.png" && \
31+
install_app_icon.sh "$APP_ICON_URL" && \
32+
echo "**** install orcaslicer from appimage ****" && \
33+
RELEASE_URL=$(curl -sX GET "https://api.github.com/repos/OrcaSlicer/OrcaSlicer/releases/latest" | awk '/url/{print $4;exit}' FS='[""]') && \
34+
DOWNLOAD_URL=$(curl -sX GET "${RELEASE_URL}" | awk '/browser_download_url.*Ubuntu2404/{print $4;exit}' FS='[""]') && \
35+
cd /tmp && \
36+
curl -o \
37+
/tmp/orca.app -L \
38+
"${DOWNLOAD_URL}" && \
39+
chmod +x /tmp/orca.app && \
40+
./orca.app --appimage-extract && \
41+
mv squashfs-root /opt/orcaslicer && \
42+
echo "**** cleanup ****" && \
43+
mkdir -p /config/xdg/config && \
44+
apt-get autoclean && \
45+
rm -rf \
46+
/config/.cache \
47+
/config/.launchpadlib \
48+
/var/lib/apt/lists/* \
49+
/var/tmp/* \
50+
/tmp/*
51+
52+
# Copy the start script
53+
COPY startapp.sh /startapp.sh
54+
55+
# Set the application name
56+
RUN set-cont-env APP_NAME "OrcaSlicer"

orcaslicer/startapp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
exec /opt/orcaslicer/AppRun

0 commit comments

Comments
 (0)