Blame

0c19e1 Hargata Softworks 2024-01-27 22:56:52 1
# Getting Started
2
## Docker
3
The Docker Container Repository is the most reliable and up-to-date distribution channel for LubeLogger.
4
You need to have Docker Windows installed and Virtualization enabled(typically a BIOS setting).
5
cf899e Hargata Softworks 2024-04-19 14:54:45 6
You will then clone the following files onto your computer from the repository
7
- .env
8
- docker-compose.yml(docker-compose-traefik.yml if using Traefik)
0c19e1 Hargata Softworks 2024-01-27 22:56:52 9
10
In the .env file you will find the following and here are the explanations for the variables.
11
```
12
LC_ALL=en_US.UTF-8 <- Locale and Language Settings, this will affect how numbers, currencies, and dates are formatted.
13
LANG=en_US.UTF-8 <- Same as above. Note that some languages don't have UTF-8 encodings.
14
MailConfig__EmailServer="" <- Email SMTP settings used only for configuring multiple users(to send their registration token and forgot password tokens)
15
MailConfig__EmailFrom="" <- Same as above.
16
MailConfig__Port=587 <- Same as above.
17
MailConfig__Username="" <- Same as above.
18
MailConfig__Password="" <- Same as above.
19
```
20
ff9a45 Hargata Softworks 2024-09-28 20:06:35 21
See [[Environment Variables|Advanced/Environment Variables]] for additional configuration
38a385 Hargata Softworks 2024-04-16 23:30:49 22
0c19e1 Hargata Softworks 2024-01-27 22:56:52 23
Once you're happy with the configuration, run the following commands to pull down the image and run container.
24
```
25
docker pull ghcr.io/hargata/lubelogger:latest
7da8aa Hargata Softworks 2024-04-23 22:17:27 26
docker compose up -d
0c19e1 Hargata Softworks 2024-01-27 22:56:52 27
```
28
By default the app will start listening at localhost:8080, this port can be configured in the docker-compose file.
29
92fc09 Hargata Softworks 2024-07-31 18:25:52 30
### Kubernetes Deployment
4cd21d Hargata Softworks 2024-07-31 18:16:33 31
[Helm Chart](https://artifacthub.io/packages/helm/anza-labs/lubelogger) provided by [Anza-Labs](https://github.com/anza-labs)
32
bf3d85 Hargata Softworks 2024-04-07 19:56:23 33
### Docker Manual Build(For Advanced Users)
34
1. Install Docker
87db70 Hargata Softworks 2024-04-07 19:57:02 35
2. Clone the repo
bf3d85 Hargata Softworks 2024-04-07 19:56:23 36
3. CHECK culture in .env file, default is en_US, also setup SMTP for user management if you want that.
37
4. Run docker build -t lubelogger -f Dockerfile .
38
5. CHECK docker-compose.yml and make sure the mounting directories look correct.
39
6. If using traefik, use docker-compose.traefik.yml
40
7. Run docker-compose up
41
120a93 Hargata Softworks 2024-07-03 15:17:07 42
### Edge-tagged Image
43
The `:edge` tagged Docker image may contain features that are considered experimental/not fully tested but have been merged into the main branch, use at your own risk. If you're building the Docker image manually and are cloning directly from the main branch of the repository, your local copy of the repository will contain those experimental features.
44
0c19e1 Hargata Softworks 2024-01-27 22:56:52 45
## Windows Standalone Executable
b3564d Hargata Softworks 2024-02-23 03:09:40 46
Windows Standalone Executables(EXE) are provided, and can be found under assets for the [latest release](https://github.com/hargata/lubelog/releases/latest)
47
ef104e Hargata Softworks 2024-09-28 20:04:54 48
![](/Installation/Getting%20Started/a/image-1727553838581.png)
0c19e1 Hargata Softworks 2024-01-27 22:56:52 49
73b328 Hargata Softworks 2024-01-27 22:59:57 50
To run the server, you just have to download the zip archive attached to the release, usually named LubeLogger_vNNN_win_x64.zip, extract the archive and double click on CarCareTracker.exe
0c19e1 Hargata Softworks 2024-01-27 22:56:52 51
52
Occassionally you might run into an issue regarding a missing folder, to fix that, just create a "config" folder where CarCareTracker.exe is located.
53
54
If you wish to set up SMTP when using this approach, you will have to configure the environment settings in appsettings.json located in the same folder as CarCareTracker.exe
55
You just have to add the MailConfig section into it, but I provided the full appsettings.json anyways as an example.
56
```
57
{
58
"Logging": {
59
"LogLevel": {
60
"Default": "Information",
61
"Microsoft.AspNetCore": "Warning"
62
}
63
},
64
"AllowedHosts": "*",
65
"UseDarkMode": false,
66
"EnableCsvImports": true,
67
"UseMPG": true,
68
"UseDescending": false,
69
"EnableAuth": false,
70
"HideZero": false,
71
"EnableAutoReminderRefresh": false,
72
"EnableAutoOdometerInsert": false,
73
"UseUKMPG": false,
74
"UseThreeDecimalGasCost": true,
75
"VisibleTabs": [ 0, 1, 4, 2, 3, 6, 5, 8 ],
76
"DefaultTab": 8,
77
"UserNameHash": "",
78
"UserPasswordHash": "",
79
"MailConfig": {
80
"EmailServer": "",
81
"EmailFrom": "",
82
"UseSSL": true,
83
"Port": 587,
84
"Username": "",
85
"Password": ""
86
}
87
}
88
89
```
90
When using this approach, the default port the app will be listening on is 5000, so you will navigate to localhost:5000
91
985a94 Hargata Softworks 2024-09-14 21:03:49 92
## Linux Baremetal
ef104e Hargata Softworks 2024-09-28 20:04:54 93
Linux executables are provided and can be found under assets for the [latest release](https://github.com/hargata/lubelog/releases/latest)
94
b11c9f Hargata Softworks 2024-10-04 20:02:24 95
[Youtube Tutorial](https://www.youtube.com/playlist?list=PL2aZOA2wNP8tR21myT_s0T0tneoRi0vdT)
97c2ea Hargata Softworks 2024-10-04 19:57:32 96
ef104e Hargata Softworks 2024-09-28 20:04:54 97
To run the Linux executable, download the zip file named LubeLogger_vNNN_linux_x64.zip, extract it and run the following commands:
98
985a94 Hargata Softworks 2024-09-14 21:03:49 99
```
100
chmod 777 ./CarCareTracker
101
./CarCareTracker
102
```
103
0c19e1 Hargata Softworks 2024-01-27 22:56:52 104
## Test that It Works
105
Whichever path you choose, once you get the app up and running, just navigate to the IP address and port the server is listening to and you should be able to see the app