-
-
Notifications
You must be signed in to change notification settings - Fork 5
[WIP] Update to function as out-of-the-box test server #13
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
base: main
Are you sure you want to change the base?
Changes from all commits
c4d4927
d1673a0
456586a
4ab1036
273d8e9
7ac2879
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| server=http://nginx:80/api/v1/xml | ||
| server=http://nginx:8000/api/v1/xml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| CONFIG=api_key=AD000000000000000000000000000000;server=http://php-api:80/ | ||
| CONFIG=api_key=abc;server=http://php-api:80/ | ||
| JAVA=/usr/bin/java | ||
| JAR=/usr/local/lib/evaluation-engine.jar | ||
| LOG_DIR=/logs | ||
| LOG_DIR=/logs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,16 @@ | ||
| #!/bin/sh | ||
|
|
||
| # We need to remove the default 127.0.0.1 localhost map to | ||
| # ensure the remap to the static nginx ip address is respected. | ||
| # Updating /etc/hosts in place isn't always allowed ("Resource Busy"), | ||
| # directly overwriting it instead seems to bypass that protection. | ||
| cp /etc/hosts /etc/hosts.new | ||
| sed -i '/^127.0.0.1.*localhost/d' /etc/hosts.new | ||
| sed -i -E 's/^(::1\t)localhost (.*)$/\1\2/g' /etc/hosts.new | ||
| cat /etc/hosts.new > /etc/hosts | ||
| rm /etc/hosts.new | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For other containers updating /etc/hosts through configuration was sufficient. |
||
| printenv | grep -v HOME >> /etc/environment | ||
|
|
||
| touch /cron.log | ||
| /usr/sbin/crond -l 4 && tail -f /cron.log | ||
| /usr/sbin/crond -l 4 && tail -f /cron.log | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| services: | ||
| database: | ||
| image: "openml/test-database:20240105" | ||
| image: "openml/test-database:v0.1.20260129" | ||
| container_name: "openml-test-database" | ||
| environment: | ||
| MYSQL_ROOT_PASSWORD: ok | ||
|
|
@@ -54,11 +54,15 @@ services: | |
| context: config/nginx | ||
| container_name: openml-nginx | ||
| ports: | ||
| - "8000:80" | ||
| - "8000:8000" | ||
| networks: | ||
| default: | ||
| ipv4_address: 172.28.0.2 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the static ip address is required so that we can add entries to |
||
|
|
||
|
|
||
| php-api: | ||
| profiles: ["all", "minio", "rest-api", "frontend", "evaluation-engine"] | ||
| image: openml/php-rest-api:v1.2.1 | ||
| image: openml/php-rest-api:v1.2.4 | ||
| container_name: "openml-php-rest-api" | ||
| ports: | ||
| - "8080:80" # also known as /api (nginx) | ||
|
|
@@ -78,6 +82,8 @@ services: | |
| start_interval: 5s | ||
| timeout: 3s | ||
| interval: 1m | ||
| extra_hosts: | ||
| - "localhost=172.28.0.2" | ||
|
|
||
| email-server: | ||
| profiles: ["all", "frontend"] | ||
|
|
@@ -108,7 +114,7 @@ services: | |
|
|
||
| minio: | ||
| profiles: ["all", "minio", "evaluation-engine"] | ||
| image: openml/test-minio:v0.1.20241110 | ||
| image: openml/test-minio:v0.1.20260129 | ||
| container_name: "openml-minio" | ||
| ports: | ||
| - "9000:9000" # also known as /data (nginx) | ||
|
|
@@ -133,6 +139,8 @@ services: | |
| depends_on: | ||
| php-api: | ||
| condition: service_healthy | ||
| extra_hosts: | ||
| - "localhost=172.28.0.2" | ||
|
|
||
| croissants: | ||
| profiles: ["all"] | ||
|
|
@@ -157,7 +165,15 @@ services: | |
| depends_on: | ||
| php-api: | ||
| condition: service_healthy | ||
| extra_hosts: | ||
| - "localhost=172.28.0.2" | ||
|
|
||
| networks: | ||
| default: | ||
| name: openml-services | ||
| ipam: | ||
| driver: default | ||
| config: | ||
| - subnet: 172.28.0.0/16 | ||
| ip_range: 172.28.1.0/24 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These removed updates are now embedded in the state of the database on the new image