Skip to content

Commit ef74581

Browse files
committed
Merge branch 'main' into bug6113
2 parents aef19ca + d7731ab commit ef74581

File tree

1,027 files changed

+11885
-3915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,027 files changed

+11885
-3915
lines changed

.github/workflows/merge-main-into-docker-25.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@ jobs:
1717
with:
1818
ref: docker-25
1919
fetch-depth: 0 # fetch the whole thing to make sure the histories merge
20+
token: ${{ secrets.REPO_TOKEN_FOR_MERGE_AND_PUSH }}
21+
- name: Determine merge commit
22+
id: merge-source
23+
run: |
24+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
25+
echo "sha=$(git rev-parse origin/main)" >> "$GITHUB_OUTPUT"
26+
echo "label=main (latest)" >> "$GITHUB_OUTPUT"
27+
else
28+
echo "sha=${{ github.event.workflow_run.head_sha }}" >> "$GITHUB_OUTPUT"
29+
echo "label=main (${{ github.event.workflow_run.head_sha }})" >> "$GITHUB_OUTPUT"
30+
fi
2031
- name: Merge main into docker-25
21-
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f # v1.4.0
22-
env:
23-
GH_TOKEN: ${{ secrets.REPO_TOKEN_FOR_MERGE_AND_PUSH }}
24-
with:
25-
type: now
26-
from_branch: main
27-
target_branch: docker-25
28-
message: Auto-merging main into docker-25 after successful release build
29-
github_token: ${{ secrets.REPO_TOKEN_FOR_MERGE_AND_PUSH }}
32+
run: |
33+
git config user.name "github-actions[bot]"
34+
git config user.email "github-actions[bot]@users.noreply.github.com"
35+
echo "Merging ${{ steps.merge-source.outputs.sha }} into docker-25..."
36+
git merge ${{ steps.merge-source.outputs.sha }} \
37+
-m "Auto-merging ${{ steps.merge-source.outputs.label }} into docker-25 after successful release build"
38+
git push origin docker-25

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ jobs:
9797
log-accepted-android-sdk-licenses: 'false'
9898
cmdline-tools-version: 9123335 # This corresponds to human-friendly version number 8.0
9999
- name: Start MongoDB
100-
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d #v1.12.0
100+
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 #v1.12.1
101101
with:
102102
mongodb-version: 7.0
103103
- name: Start RabbitMQ
104-
uses: namoshek/rabbitmq-github-action@58b841360ede0e19fc5e4929fc2477ecc09193d8 # v1.1.0
104+
uses: Namoshek/rabbitmq-github-action@80a182e44c7f60bc3417a8689d6a24fe9d08b27b #v1.2.0
105105
with:
106106
version: '3.8.9'
107107
ports: '5672:5672'
@@ -112,6 +112,8 @@ jobs:
112112
AWS_S3_TEST_S3ACCESSKEY: ${{ secrets.AWS_S3_TEST_S3ACCESSKEY }}
113113
GEONAMES_ORG_USERNAMES: ${{ secrets.GEONAMES_ORG_USERNAMES }}
114114
GOOGLE_MAPS_AUTHENTICATION_PARAMS: ${{ secrets.GOOGLE_MAPS_AUTHENTICATION_PARAMS }}
115+
POLAR_DATA_BASE_URL: ${{ secrets.POLAR_DATA_BASE_URL }}
116+
POLAR_DATA_BEARER_TOKEN: ${{ secrets.POLAR_DATA_BEARER_TOKEN }}
115117
APP_PARAMETERS: "-Daws.region=eu-west-1"
116118
JAVA8_HOME: ${{env.JAVA_HOME_8_X64}}
117119
JAVA17_HOME: ${{env.JAVA_HOME_17_X64}}

AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
We want all local variables, fields, and parameters to be declared "final" as far as possible.
2+
3+
We want all literals used as parameters (true, false, numeric literals, Optional.empty() and null) to be prefixed with a comment telling the parameter name.
4+
5+
We want a single exit point in any method only, so no multiple "return" statements.
6+
7+
Avoid unnecessary empty lines. If you feel like you need to separate code within a single method into "sections", consider using double-slash comments to explain what the next section is.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ GEM
4343
dotenv (2.8.1)
4444
emoji_regex (3.2.3)
4545
excon (0.112.0)
46-
faraday (1.10.4)
46+
faraday (1.10.5)
4747
faraday-em_http (~> 1.0)
4848
faraday-em_synchrony (~> 1.0)
4949
faraday-excon (~> 1.1)

Home.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ SAP is at the center of today’s technology revolution, developing innovations
5959
* Amazon
6060
* [[Amazon EC2|wiki/info/landscape/amazon-ec2]]
6161
* [[Upgrading ARCHIVE server|wiki/info/landscape/archive-server-upgrade]]
62+
* [[Upgrading MongoDB Nodes|wiki/info/landscape/mongo-cluster-upgrade]]
6263
* [[EC2 Backup Strategy|wiki/info/landscape/amazon-ec2-backup-strategy]]
6364
* [[Creating an EC2 image from scratch|wiki/info/landscape/creating-ec2-image-from-scratch]]
6465
* [[Upgrading an EC2 image|wiki/info/landscape/upgrading-ec2-image]]

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<p align="center">
2+
<img src="azimuth_logo.png" alt="Sailing Analytics">
3+
</p>
4+
15
# Sailing Analytics
26

37
## About this Project
@@ -20,23 +24,23 @@ More background information is available in the project's Wiki which is currentl
2024

2125
## Quick Start with Docker Compose
2226

23-
If you have built or obtained the ``ghcr.io/sap/sailing-analytics:latest`` multi-platform image (currently available for linux/amd64 and linux/arm64 architectures), try this:
27+
To run the latest release build (currently available for linux/amd64 and linux/arm64 architectures), try this:
2428
```
25-
cd docker
29+
wget "https://github.com/SAP/sailing-analytics/raw/refs/heads/main/docker/docker-compose.yml"
2630
docker-compose up
2731
```
2832
Based on the ``docker/docker-compose.yml`` definition you should end up with three running Docker containers:
2933
- a MongoDB server, listening on default port 27017
3034
- a RabbitMQ server, listening on default port
3135
- a Sailing Analytics server, listening for HTTP requests on port 8888 and for telnet connections to the OSGi console on port 14888
3236

33-
Try a request to [``http://127.0.0.1:8888/index.html``](http://127.0.0.1:8888/index.html) or [``http://127.0.0.1:8888/gwt/status``](http://127.0.0.1:8888/gwt/status) to see if things worked.
37+
Try a request to [``http://127.0.0.1:8888/index.html``](http://127.0.0.1:8888/index.html) or [``http://127.0.0.1:8888/gwt/status``](http://127.0.0.1:8888/gwt/status) to see if things worked. The default login to your local administration console at [``http://127.0.0.1:8888/gwt/AdminConsole.html``](http://127.0.0.1:8888/gwt/AdminConsole.html) uses the user name ``admin`` with password ``admin``.
3438

35-
To use Java 24, use the ``docker-compose-24.yml`` file instead:
39+
To use Java 25, use the ``docker-compose-25.yml`` file instead:
3640

3741
```
38-
cd docker
39-
docker-compose -f docker-compose-24.yml up
42+
wget "https://github.com/SAP/sailing-analytics/raw/refs/heads/main/docker/docker-compose-25.yml"
43+
docker-compose -f docker-compose-25.yml up
4044
```
4145

4246
## Requirements
@@ -74,7 +78,7 @@ See [here](https://www.sapsailing.com/gwt/Home.html#/imprint/:) for a list of co
7478

7579
## Building and Running
7680

77-
Builds usually run on [GitHub Actions](https://github.com/SAP/sailing-analytics/actions/workflows/release.yml) upon every push. A few repository secrets ensure that the build process has the permissions it needs. Pushes to the ``main``, ``docker-24`` and ``releases/*`` branches also publish a [release](https://github.com/SAP/sailing-analytics/releases) after a successful build.
81+
Builds usually run on [GitHub Actions](https://github.com/SAP/sailing-analytics/actions/workflows/release.yml) upon every push. A few repository secrets ensure that the build process has the permissions it needs. Pushes to the ``main``, ``docker-25`` and ``releases/*`` branches also publish a [release](https://github.com/SAP/sailing-analytics/releases) after a successful build.
7882

7983
There are two options for building, detailed below; for both, you need to fulfill a few prerequisites.
8084

@@ -164,13 +168,13 @@ Then, manually trigger the ``release`` workflow with default options. You find t
164168

165169
Release builds will trigger the ``create-docker-image`` workflow which will produce a Docker image of your release and publish it as a "ghcr" package in your repository. Note that package names are computed from the repository name by converting the latter to all lowercase characters. If you want to use your packages in the docker-compose configurations from the ``docker/`` folder, make sure to adjust the package name so it points to your own fork's package registry.
166170

167-
If you want automatic validation of your changes to the ``main`` branch also for newer Java versions, you can use the ``merge-main-into-docker-24`` workflow. It requires another secret:
171+
If you want automatic validation of your changes to the ``main`` branch also for newer Java versions, you can use the ``merge-main-into-docker-25`` workflow. It requires another secret:
168172

169173
```
170174
REPO_TOKEN_FOR_MERGE_AND_PUSH: {a-GitHub-token-enabled-for-push}
171175
```
172176

173-
The workflow will launch automatically after a release has been performed for the ``main`` branch and will try to merge the latest ``main`` branch into ``docker-24`` and pushing the merge result if the merge was successful. This will then trigger a build for the ``docker-24`` branch which, if successul, will in turn produce a release and a docker image for use with Java 24.
177+
The workflow will launch automatically after a release has been performed for the ``main`` branch and will try to merge the latest ``main`` branch into ``docker-25`` and pushing the merge result if the merge was successful. This will then trigger a build for the ``docker-25`` branch which, if successul, will in turn produce a release and a docker image for use with Java 24.
174178

175179
### Run a build locally
176180

azimuth_logo.png

30.3 KB
Loading

azure-pipelines/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resources:
2828
# For available versions, please have a look here (use the tag, not the release name):
2929
# https://github.tools.sap/SAPMobile/sap-mobile-pipeline/releases
3030
# ----------
31-
ref: 'refs/tags/3.13.3'
31+
#ref: 'refs/tags/3.13.3'
3232

3333
#################################################################
3434
######################### Pipeline Start ########################
@@ -53,3 +53,4 @@ extends:
5353
# to determine which app is to be built/released/signed
5454
# Default: Race Manager App
5555
momaAssemblyId: 189
56+
naasReleaseEnabled: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8

configuration/buildAndUpdateProduct.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ if [[ "$@" == "build" ]] || [[ "$@" == "all" ]]; then
671671
PATH=$PATH:$ANDROID_HOME/platform-tools
672672
SDK_MANAGER="$ANDROID_HOME/cmdline-tools/8.0/bin/sdkmanager"
673673
if [ \! -x "$SDK_MANAGER" ]; then
674-
SDK_MANAGER="$ANDROID_HOME/tools/bin/sdkmanager.bat"
674+
SDK_MANAGER="$ANDROID_HOME/tools/bin/sdkmanager"
675675
fi
676676
echo "SDK_MANAGER=${SDK_MANAGER}"
677677
echo "cmdline-tools:"

0 commit comments

Comments
 (0)