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

Generating docker images on both x64 and arm64 (multi-arch) #676

Closed
Tracked by #564
peterzhuamazon opened this issue Oct 4, 2021 · 4 comments
Closed
Tracked by #564

Generating docker images on both x64 and arm64 (multi-arch) #676

peterzhuamazon opened this issue Oct 4, 2021 · 4 comments

Comments

@peterzhuamazon
Copy link
Member

No description provided.

@peterzhuamazon
Copy link
Member Author

Docker Hub Staging:
https://hub.docker.com/r/opensearchstaging/opensearch/tags?page=1&ordering=last_updated&name=1.1.0-multi-test
https://hub.docker.com/r/opensearchstaging/opensearch-dashboards/tags?page=1&ordering=last_updated&name=1.1.0-multi-test

We have generated the multi-test image in staging for 1.1.0 with an older tarball for testing purposes.
This is NOT the final release and only a test run to see if the setup works.

Thanks.

@peterzhuamazon
Copy link
Member Author

A weird error showed up when using docker compose to test multi-arch image:
total 260
-rw-r--r--  1 opensearch opensearch  11358 Sep 30 16:56 LICENSE.txt
-rw-r--r--  1 opensearch opensearch 215355 Sep 30 17:03 NOTICE.txt
-rw-r--r--  1 opensearch opensearch   1761 Sep 30 16:56 README.md
drwxr-xr-x  2 opensearch opensearch    263 Sep 30 17:17 bin
drwxr-xr-x  1 opensearch opensearch    150 Oct  4 18:57 config
drwxr-xr-x  2 root       root            6 Oct  4 18:54 data
drwxr-xr-x  9 opensearch opensearch    107 Sep 30 17:03 jdk
drwxr-xr-x  3 opensearch opensearch   4096 Sep 30 17:03 lib
drwxr-xr-x  1 opensearch opensearch     69 Oct  4 18:57 logs
-rw-r--r--  1 opensearch opensearch   3634 Sep 30 17:18 manifest.yml
drwxr-xr-x 19 opensearch opensearch   4096 Sep 30 17:04 modules
-rwxr-xr-x  1 opensearch opensearch   5204 Oct  4 18:06 opensearch-docker-entrypoint.sh
-rwxr-xr-x  1 opensearch opensearch   2107 Oct  4 18:06 opensearch-onetime-setup.sh
-rwxrwxr-x  1 opensearch opensearch   3092 Sep 30 16:55 opensearch-tar-install.sh
drwxr-xr-x  6 opensearch opensearch     59 Sep 30 17:17 performance-analyzer-rca
drwxr-xr-x  1 opensearch opensearch     33 Sep 30 17:18 plugins
-rwxrwxr-x  1 opensearch opensearch    315 Oct  4 18:57 securityadmin_demo.sh

The data folder will set to root owner, but when running docker run directly it wont happen.

Seems like a issue when mounting
    volumes:
      - opensearch-data1:/usr/share/opensearch/data

Seems like a bug that if any volume created after dockerfile, compose will make the mount happen with root but why this never happen before on single arch image is curious.

docker/compose#3270

@peterzhuamazon
Copy link
Member Author

New PR: #677

@peterzhuamazon
Copy link
Member Author

We will use another ticket for the releasing on production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants