Skip to content
Snippets Groups Projects
Commit 9dbccda1 authored by Neil Schark's avatar Neil Schark
Browse files

build bootstrap structure

parent 242e2668
No related branches found
No related tags found
No related merge requests found
...@@ -17,5 +17,7 @@ RUN pip2 install webob routes pyyaml requests ...@@ -17,5 +17,7 @@ RUN pip2 install webob routes pyyaml requests
RUN python setup.py build RUN python setup.py build
RUN python setup.py install RUN python setup.py install
RUN mkdir /ztp-root
EXPOSE 8080/TCP EXPOSE 8080/TCP
ENTRYPOINT /usr/local/bin/ztps ENTRYPOINT /usr/local/bin/ztps
version: '3'
services:
ztpserver:
image: registry.code.fbi.h-da.de/danet/ztpserver-docker
container_name: ztpserver
ports:
- 0.0.0.0:8080:8080
restart: unless-stopped
volumes:
- ./ztp-root:/ztp-root
- ./ztpserver:/etc/ztpserver
depends_on:
- dss-backend
\ No newline at end of file
[default]
# Location of all ztps boostrap process data files
# default= /usr/share/ztpserver
data_root=/ztp-root
# UID used in the /nodes structure
# default=serialnum
#identifier=<serialnum | systemmac>
# Server URL to-be-advertised to clients (via POST replies) during the bootstrap process
# default=http://ztpserver:8080
#server_url=<URL>
# Enable local logging
# default=True
#logging=<True | False>
# Enable console logging
# default=True
#console_logging=<True | False>
# Console logging format
# default=%(asctime)-15s:%(levelname)s:[%(module)s:%(lineno)d] %(message)s
#console_logging_format=<(Python)logging format>
# Globally disable topology validation in the bootstrap process
# default=False
#disable_topology_validation=<True | False>
[server]
# Note: this section only applies to using the standalone server. If
# running under a WSGI server, these values are ignored
# Interface to which the server will bind to (0:0:0:0 will bind to
# all available IPv4 addresses on the local machine)
# default=0.0.0.0
#interface=<IP addr>
# TCP listening port
# default=8080
#port=<TCP port>
[bootstrap]
# Bootstrap filename (file located in <data_root>/bootstrap)
# default=bootstrap
#filename=<name>
[neighbordb]
# Neighbordb filename (file located in <data_root>)
# default=neighbordb
#filename=<name>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment