55 lines
2.1 KiB
HTML
55 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Docker Compose Status</title>
|
|
<meta charset="utf-8">
|
|
<link href="../base1/bootstrap.min.css" type="text/css" rel="stylesheet">
|
|
<link href="../base1/spiri.css" type="text/css" rel="stylesheet">
|
|
<script src="../base1/cockpit.js"></script>
|
|
<script src="../base1/jquery-3.7.1.min.js"></script>
|
|
</head>
|
|
<!-- <div id="editor" class="editor-border" style="height: 500px; width: 100%;"></div> -->
|
|
<body>
|
|
<div class="container mt-5 mb-5">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2 class="fw-bold">Docker Compose Editor</h2>
|
|
<p>
|
|
Docker compose files define the logic and configuration settings for many services present on the drone regardless of their current active state. Changes to these files will only take effect once saved and activated. Simply rebooting the drone will <u>not</u> apply the changes.
|
|
<br><br>The current health status of the drone's docker containers can be found in the <a href="">Docker Status</a> page.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
<div class="col-md-2">
|
|
<img src="assets/icons/docker.svg" class="me-2"/>
|
|
<label for="composeFile" class="form-label"><b>Compose File</b></label>
|
|
<select id="composeFileSelection" class="form-select mt-2"></select>
|
|
</div>
|
|
|
|
<div class="col-12 mt-2">
|
|
<button class="btn btn-primary" id="save">Save</button>
|
|
<button class="btn btn-primary" id="saveAndRun">Save & Run</button>
|
|
<button class="btn btn-danger" id="stop">Stop</button>
|
|
</div>
|
|
|
|
<div class="col-12 mt-2">
|
|
<pre id="result" class="mt-2 mb-3"></pre>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
<div class="col-12">
|
|
<div id="composeEditor" class="code-editor"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="../base1/ace/ace.js"></script>
|
|
<script src="docker-compose.js"></script>
|
|
|
|
</body>
|
|
|
|
</html> |