{"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849820019", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849820019, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTgyMDAxOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:44:39Z", "updated_at": "2021-05-27T17:52:58Z", "author_association": "OWNER", "body": "This pattern appears to work, executed at the root of a checkout of `datasette`:\r\n```\r\ndocker run -it -v `pwd`:/mnt --platform linux/amd64 \\\r\n datasetteproject/datasette:0.57a1 bash -c '\r\n pip install \"pytest>=5.2.2,<6.3.0\" \\\r\n \"pytest-xdist>=2.2.1,<2.3\" \\\r\n \"pytest-asyncio>=0.10,<0.16\" \\\r\n \"beautifulsoup4>=4.8.1,<4.10.0\" \\\r\n \"black==21.5b1\" \\\r\n \"pytest-timeout>=1.4.2,<1.5\" \\\r\n \"trustme>=0.7,<0.8\" \\\r\n && cd /mnt && pytest'\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849815361", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849815361, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTgxNTM2MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:36:51Z", "updated_at": "2021-05-27T17:36:51Z", "author_association": "OWNER", "body": "To run the test suite... need to install a few more dependencies: https://github.com/simonw/datasette/blob/7b106e106000713bbee31b34d694b3dadbd4818c/setup.py#L71-L79\r\n\r\nAnd then mount the `tests/` folder into the container and run `pytest`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849806581", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849806581, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTgwNjU4MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:22:37Z", "updated_at": "2021-05-27T17:34:27Z", "author_association": "OWNER", "body": "```\r\n~ % docker run -it --platform linux/arm/v7 -v `pwd`:/mnt -p 8001:8001 datasetteproject/datasette:0.57a1 python -c 'import platform; print(platform.uname())'\r\nUnable to find image 'datasetteproject/datasette:0.57a1' locally\r\n0.57a1: Pulling from datasetteproject/datasette\r\nee0a2cc24f29: Pull complete \r\nca231153300d: Pull complete \r\n6073fc53d406: Pull complete \r\nbb2a6a6421dd: Pull complete \r\n14c15f441034: Pull complete \r\n28d113f72ba5: Pull complete \r\n40516c2c3785: Pull complete \r\nDigest: sha256:8dd469efa0b34b9e946c4e91496fc7bec702efec9c0f5ec548ccd4030f3263b2\r\nStatus: Downloaded newer image for datasetteproject/datasette:0.57a1\r\nuname_result(system='Linux', node='c2e1a05732ed', release='4.19.121-linuxkit', version='#1 SMP Thu Jan 21 15:36:34 UTC 2021', machine='armv7l')\r\n```\r\nShorter version:\r\n```\r\n~ % docker run -it --platform linux/ppc64le datasetteproject/datasette:0.57a1 python -c 'import platform; print(platform.uname())'\r\nUnable to find image 'datasetteproject/datasette:0.57a1' locally\r\n0.57a1: Pulling from datasetteproject/datasette\r\nc840eb5e9aed: Pull complete \r\nfc17d8b577ec: Pull complete \r\n712a0ad995f8: Pull complete \r\n56101149914c: Pull complete \r\ne6241dfe9d38: Pull complete \r\n41ed85039888: Pull complete \r\n26beeabe9213: Pull complete \r\nDigest: sha256:8dd469efa0b34b9e946c4e91496fc7bec702efec9c0f5ec548ccd4030f3263b2\r\nStatus: Downloaded newer image for datasetteproject/datasette:0.57a1\r\nuname_result(system='Linux', node='0fe85887fa30', release='4.19.121-linuxkit', version='#1 SMP Thu Jan 21 15:36:34 UTC 2021', machine='ppc64le')\r\n~ % \r\n```\r\n\r\nOK! Now I need to figure out how to run the full test suite on each one, then I can call this done.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849805778", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849805778, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTgwNTc3OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:21:11Z", "updated_at": "2021-05-27T17:21:22Z", "author_association": "OWNER", "body": "This helps:\r\n```\r\n~ % docker run -it --platform linux/s390x -v `pwd`:/mnt \\\r\n -p 8001:8001 datasetteproject/datasette:0.57a1 \\\r\n python -c 'import platform; print(platform.uname())'\r\n```\r\n`uname_result(system='Linux', node='d14916ca91df', release='4.19.121-linuxkit', version='#1 SMP Thu Jan 21 15:36:34 UTC 2021', machine='s390x')`", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849804684", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849804684, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTgwNDY4NA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:19:16Z", "updated_at": "2021-05-27T17:19:16Z", "author_association": "OWNER", "body": "Having pushed that to Docker Hub the following _seems_ to work on my laptop:\r\n\r\n docker run --platform linux/s390x \\\r\n -v `pwd`:/mnt -p 8001:8001 \\\r\n datasetteproject/datasette:0.57a1 datasette -p 8001 -h 0.0.0.0\r\n\r\nI'd like to confirm that this is correctly emulating the architecture and running the correct published image though.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849801969", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849801969, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTgwMTk2OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:14:49Z", "updated_at": "2021-05-27T17:14:49Z", "author_association": "OWNER", "body": "Job completed in 13m38s - results are here: https://hub.docker.com/r/datasetteproject/datasette/tags?page=1&ordering=last_updated&name=0.57a1\r\n\r\n\"datasetteproject_datasette_Tags\"\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849797767", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849797767, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTc5Nzc2Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:08:13Z", "updated_at": "2021-05-27T17:08:13Z", "author_association": "OWNER", "body": "Related issue: #1272 - being able to run the test suite inside Docker inside GitHub Actions would be incredibly helpful here.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849793312", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849793312, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTc5MzMxMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T17:01:16Z", "updated_at": "2021-05-27T17:01:16Z", "author_association": "OWNER", "body": "https://github.com/simonw/datasette/runs/2687196350 is a run of https://github.com/simonw/datasette/blob/main/.github/workflows/push_docker_tag.yml to publish the new `0.57a1` alpha to Docker Hub.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849788412", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849788412, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTc4ODQxMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T16:53:28Z", "updated_at": "2021-05-27T16:53:28Z", "author_association": "OWNER", "body": "(Should also update https://docs.datasette.io/en/stable/contributing.html#release-process with notes on how this works)", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1344#issuecomment-849788159", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1344", "id": 849788159, "node_id": "MDEyOklzc3VlQ29tbWVudDg0OTc4ODE1OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-05-27T16:53:04Z", "updated_at": "2021-05-27T16:53:04Z", "author_association": "OWNER", "body": "I'm going to release a `0.57a1` alpha to Docker Hub using the new buildx mechanism.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 903986178, "label": "Test Datasette Docker images built for different architectures"}, "performed_via_github_app": null}