mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-05-03 12:54:30 +02:00
Display Docker image version
This commit is contained in:
parent
e48a1b685b
commit
0ec4c5d795
@ -5,6 +5,9 @@ docker-compose*
|
|||||||
env
|
env
|
||||||
test-configuration
|
test-configuration
|
||||||
.netbox/.git*
|
.netbox/.git*
|
||||||
|
.netbox/.pre-commit-config.yaml
|
||||||
|
.netbox/.readthedocs.yaml
|
||||||
|
.netbox/.tx
|
||||||
.netbox/contrib
|
.netbox/contrib
|
||||||
.netbox/scripts
|
.netbox/scripts
|
||||||
.netbox/upgrade.sh
|
.netbox/upgrade.sh
|
||||||
|
@ -89,6 +89,7 @@ COPY docker/housekeeping.sh /opt/netbox/housekeeping.sh
|
|||||||
COPY docker/launch-netbox.sh /opt/netbox/launch-netbox.sh
|
COPY docker/launch-netbox.sh /opt/netbox/launch-netbox.sh
|
||||||
COPY configuration/ /etc/netbox/config/
|
COPY configuration/ /etc/netbox/config/
|
||||||
COPY docker/nginx-unit.json /etc/unit/
|
COPY docker/nginx-unit.json /etc/unit/
|
||||||
|
COPY VERSION /opt/netbox/VERSION
|
||||||
|
|
||||||
WORKDIR /opt/netbox/netbox
|
WORKDIR /opt/netbox/netbox
|
||||||
|
|
||||||
@ -99,7 +100,9 @@ RUN mkdir -p static /opt/unit/state/ /opt/unit/tmp/ \
|
|||||||
&& chmod -R g+w /opt/unit/ media reports scripts \
|
&& chmod -R g+w /opt/unit/ media reports scripts \
|
||||||
&& cd /opt/netbox/ && SECRET_KEY="dummyKeyWithMinimumLength-------------------------" /opt/netbox/venv/bin/python -m mkdocs build \
|
&& cd /opt/netbox/ && SECRET_KEY="dummyKeyWithMinimumLength-------------------------" /opt/netbox/venv/bin/python -m mkdocs build \
|
||||||
--config-file /opt/netbox/mkdocs.yml --site-dir /opt/netbox/netbox/project-static/docs/ \
|
--config-file /opt/netbox/mkdocs.yml --site-dir /opt/netbox/netbox/project-static/docs/ \
|
||||||
&& SECRET_KEY="dummyKeyWithMinimumLength-------------------------" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
|
&& SECRET_KEY="dummyKeyWithMinimumLength-------------------------" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input \
|
||||||
|
&& mkdir /opt/netbox/netbox/local \
|
||||||
|
&& echo "edition: Community (Docker image $(cat /opt/netbox/VERSION))" > /opt/netbox/netbox/local/release.yaml
|
||||||
|
|
||||||
ENV LANG=C.utf8 PATH=/opt/netbox/venv/bin:$PATH
|
ENV LANG=C.utf8 PATH=/opt/netbox/venv/bin:$PATH
|
||||||
ENTRYPOINT [ "/usr/bin/tini", "--" ]
|
ENTRYPOINT [ "/usr/bin/tini", "--" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user