Many Docker Building Fixes/Improvements (#6552)
* Update DockerBuild.sh Ensure that the X11 server allows connections from the Docker container. * Update DockerBuild.sh Removed fix for X11. Will add to DockerRun.sh * Update DockerRun.sh Added help comment to fix and ensure that your X11 server allows connections from the Docker container. * linxu build with docker in readme Add build on linux with docker section * Update README.md * Update README.md * Update README.md remove low ram thing * Update Dockerfile --------- Co-authored-by: samthebest699 <106000727+samthebest699@users.noreply.github.com> Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
5115ceb8f8
commit
1cf90efe03
4 changed files with 18 additions and 9 deletions
|
@ -2,7 +2,6 @@
|
||||||
PROJECT_ROOT=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
|
PROJECT_ROOT=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# Wishlist hint: For developers, creating a Docker Compose
|
# Wishlist hint: For developers, creating a Docker Compose
|
||||||
# setup with persistent volumes for the build & deps directories
|
# setup with persistent volumes for the build & deps directories
|
||||||
# would speed up recompile times significantly. For end users,
|
# would speed up recompile times significantly. For end users,
|
||||||
|
|
|
@ -5,6 +5,8 @@ set -x
|
||||||
# -h $HOSTNAME \
|
# -h $HOSTNAME \
|
||||||
# If there's problems with the X display, try this
|
# If there's problems with the X display, try this
|
||||||
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
# If you get an error like "Authorization required, but no authorization protocol specified," run line 9 in your terminal before rerunning this program
|
||||||
|
# xhost +local:docker
|
||||||
docker run \
|
docker run \
|
||||||
`# Use the hosts networking. Printer wifi and also dbus communication` \
|
`# Use the hosts networking. Printer wifi and also dbus communication` \
|
||||||
--net=host \
|
--net=host \
|
||||||
|
|
|
@ -68,14 +68,14 @@ WORKDIR OrcaSlicer
|
||||||
RUN ./BuildLinux.sh -u
|
RUN ./BuildLinux.sh -u
|
||||||
|
|
||||||
# Build dependencies in ./deps
|
# Build dependencies in ./deps
|
||||||
RUN ./BuildLinux.sh -d
|
RUN ./BuildLinux.sh -dr
|
||||||
|
|
||||||
# Build slic3r
|
# Build slic3r
|
||||||
RUN ./BuildLinux.sh -s
|
RUN ./BuildLinux.sh -sr
|
||||||
|
|
||||||
# Build AppImage
|
# Build AppImage
|
||||||
ENV container podman
|
ENV container podman
|
||||||
RUN ./BuildLinux.sh -i
|
RUN ./BuildLinux.sh -ir
|
||||||
|
|
||||||
# It's easier to run Orca Slicer as the same username,
|
# It's easier to run Orca Slicer as the same username,
|
||||||
# UID and GID as your workstation. Since we bind mount
|
# UID and GID as your workstation. Since we bind mount
|
||||||
|
|
14
README.md
14
README.md
|
@ -103,12 +103,20 @@ Explore the latest developments in Orca Slicer with our nightly builds. Feedback
|
||||||
- Run => Options tab => Document Versions: uncheck `Allow debugging when browsing versions`
|
- Run => Options tab => Document Versions: uncheck `Allow debugging when browsing versions`
|
||||||
- menu bar: Product => Run
|
- menu bar: Product => Run
|
||||||
|
|
||||||
- Ubuntu
|
- Linux (All Distros)
|
||||||
- Dependencies **Will be auto-installed with the shell script**: `libmspack-dev libgstreamerd-3-dev libsecret-1-dev libwebkit2gtk-4.0-dev libosmesa6-dev libssl-dev libcurl4-openssl-dev eglexternalplatform-dev libudev-dev libdbus-1-dev extra-cmake-modules libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev cmake git texinfo`
|
- Docker
|
||||||
|
- Dependencies: Docker [Installation Instructions](https://www.docker.com/get-started/), git
|
||||||
|
- clone this repository `git clone https://github.com/SoftFever/OrcaSlicer`
|
||||||
|
- run `cd OrcaSlicer`
|
||||||
|
- run `./DockerBuild.sh`
|
||||||
|
- To run OrcaSlicer:
|
||||||
|
- run `./DockerRun.sh`
|
||||||
|
- For most common errors, open `DockerRun.sh` and read the comments.
|
||||||
|
- Ubuntu
|
||||||
|
- Dependencies **Will be auto installed with the shell script**: `libmspack-dev libgstreamerd-3-dev libsecret-1-dev libwebkit2gtk-4.0-dev libosmesa6-dev libssl-dev libcurl4-openssl-dev eglexternalplatform-dev libudev-dev libdbus-1-dev extra-cmake-modules libgtk2.0-dev libglew-dev libudev-dev libdbus-1-dev cmake git texinfo`
|
||||||
- run 'sudo ./BuildLinux.sh -u'
|
- run 'sudo ./BuildLinux.sh -u'
|
||||||
- run './BuildLinux.sh -dsir'
|
- run './BuildLinux.sh -dsir'
|
||||||
|
|
||||||
|
|
||||||
# Note:
|
# Note:
|
||||||
If you're running Klipper, it's recommended to add the following configuration to your `printer.cfg` file.
|
If you're running Klipper, it's recommended to add the following configuration to your `printer.cfg` file.
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue