exemple dockerfile

This commit is contained in:
Tom MOGULJAK 2024-03-24 19:50:53 +01:00
parent cc92379958
commit 9335a9f50b
7 changed files with 235 additions and 1 deletions

1
.obsidian/app.json vendored Normal file
View File

@ -0,0 +1 @@
{}

3
.obsidian/appearance.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"accentColor": ""
}

30
.obsidian/core-plugins-migration.json vendored Normal file
View File

@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}

20
.obsidian/core-plugins.json vendored Normal file
View File

@ -0,0 +1,20 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"canvas",
"outgoing-link",
"tag-pane",
"page-preview",
"daily-notes",
"templates",
"note-composer",
"command-palette",
"editor-status",
"bookmarks",
"outline",
"word-count",
"file-recovery"
]

155
.obsidian/workspace.json vendored Normal file
View File

@ -0,0 +1,155 @@
{
"main": {
"id": "5592aab14f66c563",
"type": "split",
"children": [
{
"id": "9e1cbafd0088d3c3",
"type": "tabs",
"children": [
{
"id": "4ff11dd078ab66bf",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "README.md",
"mode": "source",
"source": false
}
}
}
]
}
],
"direction": "vertical"
},
"left": {
"id": "b94b45054e7382f7",
"type": "split",
"children": [
{
"id": "3747cb665b3512ab",
"type": "tabs",
"children": [
{
"id": "ff2e07594e5df190",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical"
}
}
},
{
"id": "0e0ebac4a3febaa0",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
},
{
"id": "16abcfdb9b2d6541",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {}
}
}
]
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "b59bd8f018fd0080",
"type": "split",
"children": [
{
"id": "c556a5f4dbffcf8b",
"type": "tabs",
"children": [
{
"id": "7f5703816bb04d4d",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "README.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "54691d14942355f2",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "README.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "534e289695f35e27",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
},
{
"id": "6669f469ad5e0124",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "README.md"
}
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
"switcher:Ouvrir le sélecteur rapide": false,
"graph:Ouvrir la vue graphique": false,
"canvas:Créer une nouvelle toile": false,
"daily-notes:Ouvrir la note quotidienne": false,
"templates:Insérer le modèle": false,
"command-palette:Ouvrir la palette de commandes": false
}
},
"active": "4ff11dd078ab66bf",
"lastOpenFiles": [
"img",
"Nouveau dossier",
"Pasted image 20240320140145.png"
]
}

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM httpd:alpine3.17
LABEL maintainer="Tom Moguljak"
LABEL version="1.8"
LABEL tp="3"
COPY ./dayScheduler/ /usr/local/apache2/htdocs/
RUN sed -i 's/Work Day Scheduler/Tom Moguljak/g' /usr/local/apache2/htdocs/index.html
ENV school="IUT"
ENV level="1.8"
HEALTHCHECK --interval=1m --timeout=1s \
CMD curl --fail http://localhost:80/ || exit 1

View File

@ -181,4 +181,14 @@ services:
restart: unless-stopped restart: unless-stopped
``` ```
**Étape 5** : **Étape 5** : Ensuite nous devons nous connecter à grafana afin de créer la connection entre prometheus et grafana.
Pour ce connecter on peut utiliser un compte par défaut, on doit juste mettre "admin" comme nom d'utilisateur et comme mot de passe.
On peut skip aussi la demande de changer le mot de passe juste après.
**Étape 6** : Une fois sur la page d'accueil, on va aller sur l'onglet "Connections" et appuyer sur "add new connection"
**Étape 7** : Dans la barre de recherche on écrit prometheus, on clique ensuite sur Prometheus et enfin "Add new data source" en haut à droite
**Étape 8** : Maintenant on doit configurer la configuration de la connection avec prometheus. Il suffit juste de mettre le lien "http://prometheus:9090" dans la catégorie Connection et ensuite appuyer sur "Save & Test" à la fin de la page.
**Étape 9** : Il faut ensuite cliquer sur "Data sources", on peut alors voir qu'on a bien réussi à connecter prometheus. Dorénavant il faut cliquer sur "Build a dashboard" et ensuite sur