improvements
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
panel/
|
||||
|
||||
__pycache__/
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
FROM kicad/kicad:10.0.4
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends python3-pip \
|
||||
&& python3 -m pip install --break-system-packages kikit==1.8.0 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /workspace
|
||||
ENTRYPOINT ["kikit"]
|
||||
@@ -44,3 +44,23 @@ See all values in [default.json](https://raw.githubusercontent.com/yaqwsx/KiKit/
|
||||
|
||||
Check the kikit panelization [examples](https://yaqwsx.github.io/KiKit/latest/panelization/examples/).
|
||||
|
||||
# The container solution
|
||||
|
||||
Dockerfile.kikit, based on kicad/kicad:10.0.4 with KiKit 1.8.0.
|
||||
|
||||
## Build once:
|
||||
|
||||
```
|
||||
docker build -f Dockerfile.kikit -t kicad10-kikit:1.8.0 .
|
||||
```
|
||||
|
||||
## Run panelization:
|
||||
|
||||
```
|
||||
docker run --rm --user "$(id -u):$(id -g)" \
|
||||
-v "$PWD:/workspace" \
|
||||
kicad10-kikit:1.8.0 \
|
||||
panelize -p myPreset.json \
|
||||
Board_Game_Timer.kicad_pcb \
|
||||
panel/Board_Game_Timer_Panel.kicad_pcb
|
||||
```
|
||||
|
||||
+4
-5
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"layout": {
|
||||
"type": "grid",
|
||||
"rows": 1,
|
||||
"cols": 2,
|
||||
"rows": 2,
|
||||
"cols": 3,
|
||||
"hspace": "2.1mm",
|
||||
"vspace": "2.1mm"
|
||||
},
|
||||
@@ -31,9 +31,8 @@
|
||||
},
|
||||
"tooling": {
|
||||
"type": "3hole",
|
||||
"layout": "3hole",
|
||||
"hoffset": "6mm",
|
||||
"voffset": "6mm",
|
||||
"hoffset": "3mm",
|
||||
"voffset": "3mm",
|
||||
"size": "2mm",
|
||||
"paste": true,
|
||||
"soldermaskmargin": "0mm"
|
||||
|
||||
Reference in New Issue
Block a user