|
1 | | -# 🚨 WARNING – Work in Progress! 🚨 |
2 | | - |
3 | | -⚠️ This plugin is **under heavy development** and is **NOT production-ready**. |
4 | | -- Database changes that are required for the current implementation are **missing**. |
5 | | -- Documentation of the data model and functionality is **incomplete**. |
6 | | -- Expect breaking changes, unfinished features, and possible instability. |
7 | | - |
8 | | -Use this code **at your own risk** and only for testing or development purposes. |
9 | | - |
10 | | ---- |
11 | 1 | # CESNET ServicePath Plugin for NetBox |
12 | 2 |
|
13 | 3 | A NetBox plugin for managing service paths and segments in network infrastructure with advanced geographic path visualization. |
@@ -197,21 +187,24 @@ Create a `Dockerfile` extending the official NetBox image: |
197 | 187 | ```dockerfile |
198 | 188 | FROM netboxcommunity/netbox:v4.4 |
199 | 189 |
|
200 | | -# Install PostGIS and geographic libraries |
201 | | -RUN apt-get update && \ |
202 | | - apt-get install -y --no-install-recommends \ |
203 | | - postgresql-client \ |
204 | | - postgis \ |
| 190 | +# copy plugin requirements |
| 191 | +COPY ./plugin_requirements.txt /opt/netbox/ |
| 192 | + |
| 193 | +# Install git and minimal PostGIS runtime dependencies |
| 194 | +RUN apt-get update && apt-get install -y \ |
| 195 | + git \ |
205 | 196 | gdal-bin \ |
206 | | - libgdal-dev \ |
207 | | - libgeos-dev \ |
208 | | - libproj-dev \ |
209 | | - python3-gdal \ |
| 197 | + libgdal34 \ |
| 198 | + libgeos-c1t64 \ |
| 199 | + libproj25 \ |
| 200 | + && apt-get clean \ |
210 | 201 | && rm -rf /var/lib/apt/lists/* |
211 | 202 |
|
212 | | -# Copy plugin requirements |
213 | | -COPY plugin_requirements.txt /opt/netbox/ |
214 | | -RUN /opt/netbox/venv/bin/pip install --no-cache-dir -r /opt/netbox/plugin_requirements.txt |
| 203 | +# Install PostGIS and geospatial Python dependencies |
| 204 | +RUN /usr/local/bin/uv pip install \ |
| 205 | + psycopg2-binary \ |
| 206 | + -r /opt/netbox/plugin_requirements.txt |
| 207 | + |
215 | 208 | ``` |
216 | 209 |
|
217 | 210 | Then create a `plugin_requirements.txt` file: |
|
0 commit comments