Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SEP-2024-team-D
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nahodil, Petr
SEP-2024-team-D
Commits
c94cc621
Commit
c94cc621
authored
2 months ago
by
Capůrka, Josef
Browse files
Options
Downloads
Plain Diff
merge conflict readme resolved
parents
c22df3af
cbb3be9f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Docker/.env
+1
-0
1 addition, 0 deletions
Docker/.env
Docker/docker-compose-sqlite.yaml
+2
-1
2 additions, 1 deletion
Docker/docker-compose-sqlite.yaml
Docker/docker-compose.yaml
+3
-1
3 additions, 1 deletion
Docker/docker-compose.yaml
readme.md
+8
-5
8 additions, 5 deletions
readme.md
with
14 additions
and
7 deletions
Docker/.env
0 → 100644
+
1
−
0
View file @
c94cc621
CLUB_USERS_API="http://vyuka.profinit.eu:8080/"
This diff is collapsed.
Click to expand it.
Docker/docker-compose-sqlite.yaml
+
2
−
1
View file @
c94cc621
...
...
@@ -10,9 +10,10 @@ services:
environment
:
-
DOTNET_RUNNING_IN_CONTAINER=true
-
SqliteConnectionString=Data Source=/var/lib/sqlite/data/airplanes.db
-
ClubUsersApi=${CLUB_USERS_API}
volumes
:
-
sqlite_data:/var/lib/sqlite/data
restart
:
unless-stopped
restart
:
on-failure
volumes
:
sqlite_data
:
This diff is collapsed.
Click to expand it.
Docker/docker-compose.yaml
+
3
−
1
View file @
c94cc621
...
...
@@ -10,10 +10,11 @@ services:
environment
:
-
DOTNET_RUNNING_IN_CONTAINER=true
-
NpgsqlConnectionString=Host=postgresdb;Port=5432;Database=flightlog;Username=postgres;Password=secret
-
ClubUsersApi=${CLUB_USERS_API}
depends_on
:
postgresdb
:
condition
:
service_healthy
restart
:
unless-stopped
restart
:
on-failure
networks
:
-
default
...
...
@@ -25,6 +26,7 @@ services:
retries
:
5
start_period
:
10s
timeout
:
10s
restart
:
on-failure
container_name
:
postgresdb
environment
:
POSTGRES_USER
:
postgres
...
...
This diff is collapsed.
Click to expand it.
readme.md
+
8
−
5
View file @
c94cc621
...
...
@@ -19,8 +19,6 @@ Před nasazením aplikace je nutné zajistit následující:
#### Možnost 1
-
Stáhněte si komprimovaný soubor z
**Moodle**
obsahující projekt
**FlightLog**
a rozbalte ho.
#### Možnost 2
-
Otevřete terminál a spusťte následující příkaz:
```
bash
git clone https://gitlab.fel.cvut.cz/nahodpe1/sep-2024-team-d
```
...
...
@@ -40,17 +38,21 @@ sudo systemctl enable docker
Přesuňte se do složky projektu:
```
bash
cd
sep-2024-team-d
cd
sep-2024-team-d
/Docker
```
### 4️⃣ Nastavení url na API pilotů
Složka
**sep-2024-team-d/Docker**
obsahuje soubor
**.env**
, který obsahuje hodnotu CLUB_USERS_API. Tuto hodnotu nastavte na url k API pilotů.
todo přidat emoji 5
### 4️⃣ Nasazení aplikace s Docker Compose
Spusťte následující příkaz pro sestavení a spuštění kontejnerů:
Spuštění s databází Postgre (použitý dockerfile
`docker-compose.yaml`
)
-
Spuštění s databází Postgre (použitý dockerfile
`docker-compose.yaml`
)
```
bash
docker compose up
--build
```
Spuštění s databází SQLite
-
Spuštění s databází SQLite
```
bash
docker compose
-f
docker-compose-sqlite.yaml up
--build
```
...
...
@@ -71,6 +73,7 @@ docker compose -f docker-compose-sqlite.yaml up --build
```bash
docker-compose logs postgresdb
```
todo: chceme jim dávat git?
-
**Chyba při stahování repozitáře?**
- Ověřte, že na Gitlabu máte přidaný SSH klíč.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment