Git Product home page Git Product logo

build-containers's Introduction

Slic3r Container Images

This repository contains a submodule and the relevant Dockerfile container images to pre-build a functioning compilation environment on Linux with Docker or podman.

These images are available on Docker Hub.

Usage

Note: these commands run the same with podman 3.0.1 or newer; just replace docker for podman

  1. Clone this repository with submodules.
git clone --recurse-submodules [email protected]:slic3r/build-containers.git
  1. Copy slic3r/deps to the directory of the container you want to build.
cp -R slic3r/deps appimage-base/slic3r/deps
  1. Build the container.
docker build -t slic3r-appimage-base appimage-base
  1. Start the container in interactive mode, mounting the /build directory and /source to a suitable output directory and where the Slic3r source code is checked out.
docker run --rm -it -v /build:/path/to/build/output -v /source:/path/to/Slic3r/source slic3r-appimage-base
  1. In the container, run cmake to configure the build directory and start the build. You can pass higher numbers to -j to build in more parallel workers.
cmake -DCMAKE_PREFIX_PATH=${1}/usr/local -DSLIC3R_STATIC=1 /source
make -j4 Slic3r

Images

  • docker.io/slic3r/slic3r-appimage-build
    • Prebuilt dependencies on Ubuntu Bionic (18.04 LTS)
    • Suitable for static linking for Slic3r builds.
    • Dependencies are located in /opt/dependencies/usr/local prefix for CMake.
  • docker.io/slic3r/ubuntu-build
    • Suitable for building dynamically-linked dependencies for Slic3r on Debian (stable/testing/sid)
  • docker.io/slic3r/debian-build
    • Suitable for building dynamically-linked dependencies for Slic3r on Debian (stable/testing/sid)
  • docker.io/slic3r/fedora-build
    • Fedora-based container with Slic3r dependencies installed from pacakge manager.
    • Suitable for building dynamically-linked dependencies for Slic3r on Fedora.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.