Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateway - run the georchestra gateway with a Java runtime 21 (fixes geor/geor#4285) #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
ansible.groups = {
"mygeorchestra" => ["georchestra"]
}
# If needed to test a part of the playbook by limiting to a specific tag
#ansible.raw_arguments = ["-t", "datahub"]
# If needed to pass arguments to ansible, then you can use the ANSIBLE_ARGS environment variables, e.g.:
# ANSIBLE_ARGS="-t datahub" vagrant provision
ansible.raw_arguments = Shellwords.shellsplit(ENV['ANSIBLE_ARGS']) if ENV['ANSIBLE_ARGS']
end

config.vm.post_up_message = "geOrchestra SDI installed, congrats! See https://www.georchestra.org/community.html for help and bug reports"
Expand Down
15 changes: 15 additions & 0 deletions roles/georchestra/tasks/gateway.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
---
- name: Add the adoptium signing key
apt_key:
url: https://packages.adoptium.net/artifactory/api/gpg/key/public
state: present

- name: Set up the adoptium debian repository
apt_repository:
repo: deb https://packages.adoptium.net/artifactory/deb/ bookworm main
state: present

- name: Install temurin-21-jre
apt:
pkg: temurin-21-jre
state: latest

- name: install the georchestra-gateway package
apt:
pkg: georchestra-gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ After=syslog.target

[Service]
User=www-data
ExecStart=/usr/bin/java -Dserver.port={{ gateway.port }} -Dgeorchestra.datadir=/etc/georchestra -jar /usr/share/lib/georchestra-gateway/georchestra-gateway.jar
ExecStart=/usr/lib/jvm/temurin-21-jre-amd64/bin/java -Dserver.port={{ gateway.port }} -Dgeorchestra.datadir=/etc/georchestra -jar /usr/share/lib/georchestra-gateway/georchestra-gateway.jar
SuccessExitStatus=143
StandardOutput=append:{{ logs_basedir }}/gateway.log
StandardError=append:{{ logs_basedir }}/gateway.log
Expand Down