You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make tests work with modern openml/services (#218)
Currently still maintain the relevant definition files in this repository to allow them to change independently for a little while when the server is under most active development. We can then consider which changes should be merged to services to reduce duplication again.
the default elasticsearch image, but with indices already built on the test database
16
-
through invocation of the old php code.
17
11
18
12
Between the prebuilt indices and the baked-in database, when all images have already been
19
13
pulled, a `docker compose up` step should only take seconds. 🚀
20
14
21
-
## Building `openml/elasticsearch8-prebuilt`
22
-
The `openml/elasticsearch8-prebuilt` is not made with a Dockerfile, because it requires
23
-
steps of running containers, which to the best of my knowledge is not facilitated by
24
-
docker (not even through [multi-stage builds](https://docs.docker.com/build/building/multi-stage/)).
25
-
So, instead we build the container state locally and then use [`docker commit`](https://docs.docker.com/engine/reference/commandline/commit/).
26
-
27
-
1. run `docker compose up`, but with the `elasticsearch` service pointing to
28
-
`docker.elastic.co/elasticsearch/elasticsearch:8.10.4` instead of `openml/elasticsearch8-prebuilt`.
29
-
2. build the indices from the `php-api` container:
30
-
31
-
1. Connect to the container: `docker exec -it server-api-php-api-1 /bin/bash`
32
-
2. (optional) Edit `/var/www/openml/index.php` and set L56 to `development` instead of `production`,
33
-
this will show progress of building the indices, or print out any error that may occur.
34
-
3. Build the indices: `php /var/www/openml/index.php cron build_es_indices`
35
-
4. Exit the container with `exit`.
36
-
37
-
3. Make a commit of the elastic search container with prebuilt indices: `docker commit elasticsearch openml/elasticsearch8-prebuilt`
38
-
4. Push the image created by the commit: `docker push openml/elasticsearch8-prebuilt`
39
-
40
15
## Building for multiple platforms
41
16
42
-
Following Docker's "[multi-platform images](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiTutyczsOCAxUUhv0HHe_VA6QQFnoECBAQAQ&url=https%3A%2F%2Fdocs.docker.com%2Fbuild%2Fbuilding%2Fmulti-platform%2F&usg=AOvVaw0YP_mkj5WTYD-0weEfrfDv&opi=89978449)"
17
+
Following Docker's "[multi-platform images](https://docs.docker.com/build/building/multi-platform/)"
43
18
documentation, we can build multi-platform images in a few simple steps:
44
19
45
20
1. Only the first time, create a docker-container driver: `docker buildx create --name container --driver=docker-container`
0 commit comments