FreeCAD Docker CLI mode/it: Difference between revisions

From FreeCAD Documentation
(Created page with "Tutte le dipendenze di FreeCAD sono già installate, compatibili tra loro e configurate in modo appropriato, consentendo di iniziare a sviluppare molto rapidamente. * Facile da usare e leggero. * Offre prestazioni migliori in termini di velocità. * Non è necessario aggiungere percorsi a FreeCAD per importarlo in Python.")
(Created page with "# Inviare l'immagine Docker.")
Line 37: Line 37:
==Installazione==
==Installazione==


# Pull the Docker image.{{Code|lang=bash|code=
# Inviare l'immagine Docker.{{Code|lang=bash|code=
docker pull amrit3701/freecad-cli:latest
docker pull amrit3701/freecad-cli:latest
}}
}}

Revision as of 09:47, 8 April 2023

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

Panoramica

L'immagine Docker di FreeCAD compilata senza GUI. Questa immagine Docker è specifica per gli sviluppatori che desiderano utilizzare FreeCAD solo da riga di comando (CLI).

Vantaggi

Tutte le dipendenze di FreeCAD sono già installate, compatibili tra loro e configurate in modo appropriato, consentendo di iniziare a sviluppare molto rapidamente.

  • Facile da usare e leggero.
  • Offre prestazioni migliori in termini di velocità.
  • Non è necessario aggiungere percorsi a FreeCAD per importarlo in Python.

Repository Docker

Prerequisiti

  • 3 GB di spazio libero
  • Docker

Installazione

  1. Inviare l'immagine Docker.
    docker pull amrit3701/freecad-cli:latest
    
  2. When you successfully pulled Docker image, now you can run image.
    docker run -it amrit3701/freecad-cli:lastest bash
    


Informazioni aggiuntive

Extend Docker image

You can also extend this Docker images to add additional dependencies for your project. For eg

# Dockerfile

FROM amrit3701/freecad-cli:lastest

# Add additional dependencies

# pip3.8 install <some_package>

Import FreeCAD in Python

After running Docker image, just run Python.

$ docker run -it amrit3701/freecad-cli:lastest bash
root@f0ec904cf9b9:/# python3.8
Python 3.8.5 (default, Jul 20 2020, 19:48:14)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import FreeCAD
>>> import Part
>>> import Draft
>>> import Arch

Avviare FreeCADCmd

To launch FreeCAD inside Docker image, just run FreeCADCmd command.

Discussione

FreeCAD forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=45877