Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend-clients
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
frontend-clients
Commits
b02b6cea
Commit
b02b6cea
authored
9 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6301: OZG-6468: Fix health checks. Fix startup dependencies.
parent
52b72ff3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
alfa-client/apps/alfa-e2e/docker-compose.yml
+35
-4
35 additions, 4 deletions
alfa-client/apps/alfa-e2e/docker-compose.yml
alfa-client/apps/alfa-e2e/start-e2e-environment.sh
+13
-13
13 additions, 13 deletions
alfa-client/apps/alfa-e2e/start-e2e-environment.sh
with
48 additions
and
17 deletions
alfa-client/apps/alfa-e2e/docker-compose.yml
+
35
−
4
View file @
b02b6cea
...
...
@@ -28,6 +28,11 @@ services:
-
27018:27017
environment
:
-
MONGODB_EXTRA_FLAGS=--profile=2
healthcheck
:
test
:
echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval
:
10s
timeout
:
10s
retries
:
5
vorgang-manager
:
image
:
docker.ozg-sh.de/vorgang-manager:${VORGANG_MANAGER_DOCKER_IMAGE:-snapshot-latest}
...
...
@@ -105,6 +110,7 @@ services:
depends_on
:
-
vorgang-manager
-
user-manager
-
zufi-manager
elastic
:
image
:
docker.elastic.co/elasticsearch/elasticsearch:8.3.2
...
...
@@ -162,7 +168,8 @@ services:
-
9092:8080
-
9000:9000
depends_on
:
-
mongodb
mongodb
:
condition
:
service_healthy
zufi-manager-pvog
:
#TODO Ändere mich auf snapshot-latest
...
...
@@ -175,8 +182,10 @@ services:
-
OZGCLOUD_PVOG_ENDPOINTS_VERWALTUNGSOBJEKTE_PATH=/v2/verwaltungsobjekte
-
OZGCLOUD_PVOG_URL=http://smocker:8080
depends_on
:
-
mongodb
-
smocker
mongodb
:
condition
:
service_healthy
smocker-curl
:
condition
:
service_completed_successfully
zufi-manager
:
#TODO Ändere mich auf snapshot-latest
...
...
@@ -189,10 +198,32 @@ services:
ports
:
-
19090:9190
depends_on
:
-
zufi-manager-pvog
mongodb
:
condition
:
service_healthy
zufi-manager-pvog
:
condition
:
service_completed_successfully
smocker
:
image
:
thiht/smocker
ports
:
-
7080:8080
-
7081:8081
healthcheck
:
test
:
[
'
CMD-SHELL'
,
"
wget
--spider
localhost:8081/version"
,
]
interval
:
5s
timeout
:
5s
retries
:
5
smocker-curl
:
image
:
alpine/curl
volumes
:
-
./src/fixtures/smocker:/mocks:ro
command
:
>
sh -c "curl -X POST http://smocker:8081/mocks -H 'Content-Type: application/x-yaml' --data-binary @/mocks/pvog-mock.yaml &&
curl -X POST http://smocker:8081/mocks -H 'Content-Type: application/x-yaml' --data-binary @/mocks/mocks.yaml"
depends_on
:
smocker
:
condition
:
service_healthy
\ No newline at end of file
This diff is collapsed.
Click to expand it.
alfa-client/apps/alfa-e2e/start-e2e-environment.sh
+
13
−
13
View file @
b02b6cea
...
...
@@ -66,7 +66,7 @@ echo
echo
echo
"Starting VorgangManager and Alfa Server for normal operations."
$DOCKER_COMPOSE_CMD
up
-d
vorgang-manager alfa
$DOCKER_COMPOSE_CMD
up
-d
vorgang-manager alfa
zufi-manager zufi-manager-pvog
waitForServerStarted
()
{
(
$DOCKER_COMPOSE_CMD
logs |
awk
'BEGIN{RS="\0"} /Started AlfaServerApplication/ && /Started VorgangManagerServerApplication/ { exit 1 }'
)
...
...
@@ -81,19 +81,19 @@ do
done
echo
echo
echo
"Init smocker"
while
[
$(
curl
-sw
'%{http_code}'
"http://localhost:7081/version"
-o
/dev/null
)
-ne
200
]
;
do
echo
-n
"."
sleep
1
done
#
echo
#
echo "Init smocker"
#
while [ $(curl -sw '%{http_code}' "http://localhost:7081/version" -o /dev/null) -ne 200 ]; do
#
echo -n "."
#
sleep 1
#
done
curl
-X
POST http://localhost:7081/mocks
-H
'Content-Type: application/x-yaml'
--data-binary
@src/fixtures/smocker/mocks.yaml
curl
-X
POST http://localhost:7081/mocks
-H
'Content-Type: application/x-yaml'
--data-binary
@src/fixtures/smocker/pvog-mock.yaml
#
curl -X POST http://localhost:7081/mocks -H 'Content-Type: application/x-yaml' --data-binary @src/fixtures/smocker/mocks.yaml
#
curl -X POST http://localhost:7081/mocks -H 'Content-Type: application/x-yaml' --data-binary @src/fixtures/smocker/pvog-mock.yaml
echo
echo
"Start Zufi"
$DOCKER_COMPOSE_CMD
up zufi-manager zufi-manager-pvog
--wait
#
echo
#
echo "Start Zufi"
#
$DOCKER_COMPOSE_CMD up zufi-manager zufi-manager-pvog --wait
echo
#
echo
echo
"done."
\ No newline at end of file
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