{"id":16813713,"url":"https://github.com/albertoimpl/wasm-docker-hello","last_synced_at":"2026-02-03T00:01:37.617Z","repository":{"id":86217022,"uuid":"557887453","full_name":"Albertoimpl/wasm-docker-hello","owner":"Albertoimpl","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-04T12:16:22.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T11:50:53.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Albertoimpl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-26T13:46:41.000Z","updated_at":"2022-10-26T13:50:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a5fd62b-e145-4d3d-b9fe-f5b851f0a4e0","html_url":"https://github.com/Albertoimpl/wasm-docker-hello","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Albertoimpl/wasm-docker-hello","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albertoimpl%2Fwasm-docker-hello","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albertoimpl%2Fwasm-docker-hello/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albertoimpl%2Fwasm-docker-hello/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albertoimpl%2Fwasm-docker-hello/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Albertoimpl","download_url":"https://codeload.github.com/Albertoimpl/wasm-docker-hello/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albertoimpl%2Fwasm-docker-hello/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261417603,"owners_count":23155077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T10:27:39.598Z","updated_at":"2026-02-03T00:01:37.521Z","avatar_url":"https://github.com/Albertoimpl.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker and WASM\n\nTesting https://docs.docker.com/desktop/wasm/\n\n## Install WASI SDK\n\nhttps://github.com/WebAssembly/wasi-sdk\n\n```shell\nwget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-16/wasi-sdk-16.0-macos.tar.gz\ntar xvf wasi-sdk-16.0-macos.tar.gz\n```\n\n## Creating a WASM module using WASI SDK\n\n```shell\nexport WASI_SDK_PATH=`pwd`/wasi-sdk-16.0\nCC=\"${WASI_SDK_PATH}/bin/clang\"\n$CC hello-world.c -o hello-world.wasm\n```\n\n## Building a docker image\n\nhttps://github.com/docker/docs/blob/main/desktop/wasm/index.md\n\n```shell\ndocker buildx build . --file=Dockerfile --tag=albertoimpl/hello-wasm-docker --platform wasi/wasm32\n```\n\nJust 9.65kB!\n\n```shell\ndocker images\nREPOSITORY                                                          TAG       IMAGE ID       CREATED      SIZE\nalbertoimpl/hello-wasm-docker                                       latest    22617e0cb703   8 days ago   9.65kB\nhello-world                                                         latest    e18f0a777aef   8 days ago   7.04kB\n```\n\n## Running the docker image\n\n```shell\ndocker run --runtime=io.containerd.wasmedge.v1 --platform=wasi/wasm32 albertoimpl/hello-wasm-docker\n```\n\nAs fast as a docker hello world:\n\n```asciidoc\ntime docker run hello-world\n0.07s user 0.04s system 17% cpu 0.584 total\n\ntime docker run --runtime=io.containerd.wasmedge.v1 --platform=wasi/wasm32 albertoimpl/hello-wasm-docker\n0.07s user 0.03s system 18% cpu 0.548 total\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertoimpl%2Fwasm-docker-hello","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertoimpl%2Fwasm-docker-hello","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertoimpl%2Fwasm-docker-hello/lists"}