Skip to content

Commit 389fbcb

Browse files
authored
Merge branch 'main' into feat/jenkins-stateless-integration
2 parents 89fad7f + eb97059 commit 389fbcb

File tree

13 files changed

+61
-43
lines changed

13 files changed

+61
-43
lines changed

requirements.txt

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
ansible==11.4.0
2-
ansible-compat==25.1.4
3-
ansible-core==2.18.4
4-
ansible-lint==25.1.3
5-
attrs==25.3.0
6-
black==25.1.0
7-
bracex==2.5.post1
8-
cffi==1.17.1
9-
click==8.1.8
10-
cryptography==44.0.2
11-
filelock==3.18.0
12-
importlib_metadata==8.6.1
1+
ansible==13.4.0
2+
ansible-compat==25.12.1
3+
ansible-core==2.20.3
4+
ansible-lint==26.3.0
5+
attrs==25.4.0
6+
black==26.1.0
7+
bracex==2.6
8+
cffi==2.0.0
9+
click==8.3.1
10+
cryptography==46.0.5
11+
distro==1.9.0
12+
filelock==3.25.0
1313
Jinja2==3.1.6
14-
jsonschema==4.23.0
15-
jsonschema-specifications==2024.10.1
16-
MarkupSafe==3.0.2
17-
mypy-extensions==1.0.0
18-
packaging==24.2
19-
pathspec==0.12.1
20-
platformdirs==4.3.7
21-
pycparser==2.22
22-
PyYAML==6.0.2
23-
referencing==0.36.2
24-
resolvelib==1.0.1
25-
rpds-py==0.24.0
26-
ruamel.yaml==0.18.10
14+
jsonschema==4.26.0
15+
jsonschema-specifications==2025.9.1
16+
MarkupSafe==3.0.3
17+
mypy_extensions==1.1.0
18+
packaging==26.0
19+
pathspec==1.0.4
20+
platformdirs==4.9.2
21+
pycparser==3.0
22+
pytokens==0.4.1
23+
PyYAML==6.0.3
24+
referencing==0.37.0
25+
resolvelib==1.2.1
26+
rpds-py==0.30.0
27+
ruamel.yaml==0.19.1
28+
ruamel.yaml.clib==0.2.15
2729
subprocess-tee==0.4.2
28-
wcmatch==10.0
29-
yamllint==1.37.0
30-
zipp==3.21.0
30+
wcmatch==10.1
31+
yamllint==1.38.0

roles/artemis/defaults/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
ansible_managed: "Ansible managed: Do not make changes here - they will be overwritten."
3+
24
artemis_version: # Set to version or local path to war file for non-docker installation and docker tag for docker version
35
is_testserver: false
46
is_multinode_install: false
@@ -347,15 +349,12 @@ artemis_spring_profile_athena: "{% if athena is defined and athena is not none %
347349
artemis_spring_profile_apollon: "{% if apollon_url is defined and apollon_url is not none %},apollon{% endif %}"
348350
artemis_spring_profile_scheduling: "{% if node_id is defined and node_id == 1 %},scheduling{% endif %}"
349351
artemis_spring_profile_docker: "{% if use_docker %},docker{% endif %}"
350-
artemis_spring_profile_iris: "{% if iris is defined and iris is not none %},iris{% endif %}"
351352
artemis_spring_profile_aeolus: "{% if aeolus is defined and aeolus is not none %},aeolus{% endif %}"
352353
artemis_spring_profile_atlas: "{% if atlas is defined and atlas is not none %},atlas{% endif %}"
353-
artemis_spring_profile_lti: "{% if lti.oauth_secret is defined and lti.oauth_secret is not none %},lti{% endif %}"
354354

355355
artemis_spring_profile_core: "{% if artemis_computed_is_core_node %},core{{ artemis_spring_profile_ldap }}{{ artemis_spring_profile_version_control
356356
}}{{ artemis_spring_profile_continuous_integration }}{{ artemis_spring_profile_athena }}{{ artemis_spring_profile_apollon }}{{ artemis_spring_profile_scheduling }}{{ artemis_spring_profile_docker
357-
}}{{ artemis_spring_profile_iris }}{{ artemis_spring_profile_aeolus }}{{ artemis_spring_profile_atlas }}{{ artemis_spring_profile_lti
358-
}}{% endif %}"
357+
}}{{ artemis_spring_profile_aeolus }}{{ artemis_spring_profile_atlas }}{% endif %}"
359358
artemis_spring_profile_buildagent: "{% if continuous_integration.localci is defined and continuous_integration.localci is not none %}{% if continuous_integration.localci.is_build_agent
360359
is defined and continuous_integration.localci.is_build_agent is not none and continuous_integration.localci.is_build_agent %},buildagent{% endif %}{% endif %}"
361360

roles/artemis/templates/artemis-docker.sh.j2

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ PROJECT_DIR="{{ artemis_working_directory }}/Artemis/docker"
66
{% set multi_node_compose_file = "test-server-multi-node-" + artemis_database_type + "-localci.yml" %}
77

88
COMPOSE_FILE="{% if is_multinode_install is defined and is_multinode_install %}{{ multi_node_compose_file }}{% elif continuous_integration.localci is defined %}{{ localci_compose_file }}{% else %}{{ default_compose_file }}{% endif %}"
9+
DOCKER_IMAGE_ENV_FILE="{{ artemis_working_directory }}/Artemis/.env"
910
ENV_FILE="{{ artemis_working_directory }}/docker.env"
1011
{% if continuous_integration.localci is defined %}
1112
export DOCKER_GROUP_ID=$(getent group docker | cut -d: -f3)
@@ -33,10 +34,10 @@ function start {
3334
rm -rf Artemis
3435
git clone https://github.com/ls1intum/Artemis.git -b "$pr_branch" Artemis
3536
sed -i "s/ARTEMIS_DOCKER_TAG=.*/ARTEMIS_DOCKER_TAG='$pr_tag'/g" $ENV_FILE
36-
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" up -d --pull always --no-build --remove-orphans
37+
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" up -d --pull always --no-build --remove-orphans
3738

3839
# Reload Nginx configuration as Nginx may still be running from a previous start. This is necessary to apply the new configuration.
39-
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" exec nginx nginx -s reload || true
40+
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" exec nginx nginx -s reload || true
4041
}
4142

4243
function stop {
@@ -45,10 +46,10 @@ function stop {
4546
echo "Stopping Artemis"
4647

4748
# Get all docker-compose services that are not called nginx.
48-
services=$(docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" ps --services)
49+
services=$(docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" ps --services)
4950
artemis_services=$(echo "$services" | grep -v "^nginx")
5051

51-
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" stop $artemis_services
52+
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" stop $artemis_services
5253
}
5354

5455
function restart {
@@ -58,18 +59,18 @@ function restart {
5859

5960
function artemis_logs {
6061
# Get all docker-compose services matching artemis-app* to be multi-node and single-node compatible.
61-
services=$(docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" ps --services)
62+
services=$(docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" ps --services)
6263
artemis_services=$(echo "$services" | grep "^artemis-app")
6364

64-
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" logs -f $artemis_services
65+
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" logs -f $artemis_services
6566
}
6667

6768
function all_logs {
68-
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" logs -f
69+
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" logs -f
6970
}
7071

7172
function run_docker_compose_cmd {
72-
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$ENV_FILE" "$@"
73+
docker compose --project-directory "$PROJECT_DIR" -f "$PROJECT_DIR/$COMPOSE_FILE" --env-file "$DOCKER_IMAGE_ENV_FILE" --env-file "$ENV_FILE" "$@"
7374
}
7475

7576
# read subcommand `artemis-docker subcommand server` in variable and remove base command from argument list

roles/artemis/templates/artemis.env.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ ARTEMIS_ATHENA_SECRET='{{ athena.secret }}'
192192
ARTEMIS_ATLAS_ENABLED='{{ atlas.enabled }}'
193193
{% if atlas.atlasml is defined %}
194194
ARTEMIS_ATLAS_ATLASML_ENABLED='{{ atlas.atlasml.enabled }}'
195-
ARTEMIS_ATLAS_ATLASML_BASEURL='{{ atlas.atlasml.base-url }}'
196-
ARTEMIS_ATLAS_ATLASML_AUTHTOKEN='{{ atlas.atlasml.auth-token }}'
195+
ARTEMIS_ATLAS_ATLASML_BASEURL='{{ atlas.atlasml.base_url }}'
196+
ARTEMIS_ATLAS_ATLASML_AUTHTOKEN='{{ atlas.atlasml.auth_token }}'
197197
{% endif %}
198198
{% endif %}
199199
{% if apollon_url is defined %}

roles/artemis/templates/artemis.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ExecStart=/usr/bin/java \
1414
-Dsun.jnu.encoding=UTF-8 \
1515
-Djava.security.egd=file:/dev/./urandom \
1616
-Dhazelcast.slow.operation.detector.stacktrace.logging.enabled=true \
17-
-Xmx{{ (artemis_system_ram_proportion * ansible_memory_mb.real.total) | int }}m \
17+
-Xmx{{ (artemis_system_ram_proportion * ansible_facts.memory_mb.real.total) | int }}m \
1818
-XX:+ShowCodeDetailsInExceptionMessages \
1919
-XX:+HeapDumpOnOutOfMemoryError \
2020
--add-modules java.se \

roles/broker/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
ansible_managed: "Ansible managed: Do not make changes here - they will be overwritten."
3+
24
# user.yml task
35
artemis_user_name: artemis
46
artemis_user_comment: Artemis

roles/firewall/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
ansible_managed: "Ansible managed: Do not make changes here - they will be overwritten."
3+
24
wireguard_port: 51820
35

46
firewall_hostgroup: default # Can be 'registry', 'nodes', 'proxy' or left blank for default rules

roles/proxy/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
ansible_managed: "Ansible managed: Do not make changes here - they will be overwritten."
3+
24
servers: []
35
# - name:
46
# ssl_certificate_path:

roles/redis/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
ansible_managed: "Ansible managed: Do not make changes here - they will be overwritten."
3+
14
redis:
25
username: artemis
36
password: #FIXME

roles/registry/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
ansible_managed: "Ansible managed: Do not make changes here - they will be overwritten."
3+
24
# user.yml task
35
artemis_user_name: artemis
46
artemis_user_comment: Artemis

0 commit comments

Comments
 (0)