-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutorials.html
executable file
·113 lines (98 loc) · 5.11 KB
/
tutorials.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tutorials</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Fichiers CSS additionnel-->
<link rel="stylesheet" href="styles/additionnalStyle.css?v=<?= filemtime('styles/additionnalStyle.css') ?>">
<!-- Fichiers CSS slideShadow-->
<link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">
<link rel="stylesheet" href="styles/styles.css">
<!-- Favicon -->
<link rel="shortcut icon" type="image/png" href="images/mobilitydb-favicon.png"/>
<body>
<!-- Navbar -->
<div w3-include-html="navbar.html"></div>
<!-- UMobilityDB Workshop -->
<div class="w3-row-padding w3-padding-64 w3-container">
<div class="w3-content">
<div class="w3-margin-right">
<h1>MobilityDB Workshop </h1>
<h5>Every module in this workshop illustrates a usage scenario of MobilityDB. The data sets and the tools are described inside each of the modules.</h5>
</div>
<table class="doclink">
<tr>
<td class="w3-center"><a class="w3-button mobdb-blue w3-padding-large w3-block" href="https://docs.mobilitydb.com/MobilityDB-workshop/master/" target="_blank">HTML</a></td>
<td class="w3-center"><a class="w3-button mobdb-blue w3-padding-large w3-block" href="https://docs.mobilitydb.com/MobilityDB-workshop/master/mobilitydb-workshop.pdf" target="_blank">PDF</a></td>
<td class="w3-center"><a class="w3-button mobdb-blue w3-padding-large w3-block" href="https://docs.mobilitydb.com/MobilityDB-workshop/master/mobilitydb-workshop.epub" target="_blank">EPUB</a></td>
</tr>
</table>
<p>Alternatively, if you stand in the "doc" folder, you can generate the Workshop from the sources :</p>
<div class="w3-panel w3-card w3-light-grey">
<h5>HTML</h5>
<div class="w3-code-override notranslate">
xsltproc --stringparam html.stylesheet "docbook.css" --xinclude -o index.html /usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl mobilitydb-workshop.xml<br>
</div>
<h5>PDF</h5>
<div class="w3-code-override notranslate">
dblatex -s texstyle.sty -T native -t pdf -o mobilitydb-workshop.pdf mobilitydb-workshop.xml<br>
</div>
<h5>EPUB</h5>
<div class="w3-code-override notranslate">
dbtoepub -o mobilitydb-workshop.epub mobilitydb-workshop.xml<br>
</div>
<br>
</div>
</div>
</div>
<!-- Docker container -->
<div class="w3-row-padding w3-padding-64 w3-container w3-light-grey">
<div class="w3-content">
<div class="w3-margin-right">
<h1>Docker container</h1>
<h5>The workshop dependencies and data files are available in a Docker container running PostgreSQL-12, PostGIS-2.5 and MobilityDB-develop.</h5>
</div>
<div class="w3-panel w3-card w3-light-grey">
<ul>
<li><p>Pull the prebuilt image from the Docker Hub Registry.</p></li>
<div class="w3-code-override notranslate">
docker pull mobilitydb/mobilitydb:12-2.5-develop-workshop
</div>
<li><p>Create a Docker volume to preserve the PostgreSQL database files outside of the container.</p></li>
<div class="w3-code-override notranslate">
docker volume create mobilitydb_data
</div>
<li><p>Run the Docker container.</p></li>
<div class="w3-code-override notranslate">
docker run --name "mobilitydb" -d -p 25432:5432 -v mobilitydb_data:/var/lib/postgresql mobilitydb/mobilitydb
</div>
<li><p>Enter into the Docker container</p></li>
<div class="w3-code-override notranslate">
docker exec -it mobilitydb bash
</div>
<li><p>Connect to the database (username=docker,db=mobilitydb).</p></li>
<div class="w3-code-override notranslate">
psql -h localhost -p 25432 -d mobilitydb -U docker
</div>
<br>
<h5>The workshop data files are available in the workshop directory inside the container.</h5>
</ul>
</div>
</div>
</div>
<!-- Footer -->
<div w3-include-html="footer.html"></div>
</body>
<script src="js/includeHTML.js"></script>
<script>
((window.gitter = {}).chat = {}).options = {
room: 'MobilityDBProject/MobilityDB'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<script>includeHTML();</script>
</html>