{"id":18894594,"url":"https://github.com/redthing1/openenclave-dev-docker","last_synced_at":"2026-02-13T13:52:13.227Z","repository":{"id":231948227,"uuid":"774040818","full_name":"redthing1/openenclave-dev-docker","owner":"redthing1","description":"docker image for openenclave development","archived":false,"fork":false,"pushed_at":"2024-03-20T20:44:17.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T07:29:26.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/redthing1.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}},"created_at":"2024-03-18T20:54:11.000Z","updated_at":"2024-04-06T23:20:33.000Z","dependencies_parsed_at":"2024-04-07T02:10:12.426Z","dependency_job_id":"d65c8751-79ec-4d42-9294-f1b1ba1f5403","html_url":"https://github.com/redthing1/openenclave-dev-docker","commit_stats":null,"previous_names":["redthing1/openenclave-dev-docker"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fopenenclave-dev-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fopenenclave-dev-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fopenenclave-dev-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fopenenclave-dev-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redthing1","download_url":"https://codeload.github.com/redthing1/openenclave-dev-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869225,"owners_count":19710486,"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-11-08T08:23:28.918Z","updated_at":"2026-02-13T13:52:08.154Z","avatar_url":"https://github.com/redthing1.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# openenclave-dev-docker\n\ndocker image for openenclave development\n\n+ based on the [offiical openenclave base image](https://github.com/openenclave/openenclave/blob/45280ac3134cfa8f74eb2fe9c911ec0dc2727dbb/.jenkins/infrastructure/docker/dockerfiles/linux/base/README.md)\n+ builds the sdk within the container\n+ can build openenclave projects to binaries\n+ does not require working sgx, only simulation mode\n\n# usage\n\n## build\nbuild the container image:\n```sh\ndocker build --pull -t openenclave-dev -f ./openenclave-dev.docker .\n```\n\n## run container\nrun a container:\n+ for running in **sgx hardware**, add `--device \u003csgx_device\u003e`, with the correct device as described in [openenclave docker documentation](https://github.com/openenclave/openenclave/blob/master/docs/GettingStartedDocs/Contributors/BuildingInADockerContainer.md).\n+ for running in **simulation mode**, no special device is necessary\n\nrun a container (sgx hardware support)\n```sh\nsudo docker run --device \u003csgx_device\u003e --rm -it openenclave-dev\n```\n\nrun a container (sgx simulation support)\n```sh\ndocker run --rm -it openenclave-dev\n```\n\n## run enclave program\n\ndemonstrate that it works:\n```sh\n# source openenclave paths (pkg-config, etc.)\n. /opt/openenclave/share/openenclave/openenclaverc\n# go to helloworld sample and build\ncd ~/openenclave/samples/helloworld\nmake -j\n# run the helloworld sample in sgx simulation mode\n./host/helloworld_host ./enclave/enclave.signed --simulate\n```\n\nto run the demo directly in this repo:\n```sh\n# mount this dir into the container\ndocker run --rm -it -v $(pwd):/prj openenclave-dev\n# inside the container:\ncd /prj/demo/helloworld\n. /opt/openenclave/share/openenclave/openenclaverc\nmake -j\n# run the helloworld sample in sgx simulation mode\n./host/helloworld_host ./enclave/enclave.signed --simulate\n```\n\n# release\n\nexport the built container image:\n```sh\ndocker save openenclave-dev | zstd --compress -T0 --long -16 \u003e /path/to/openenclave-dev.tar.zst\n```\n\nload the built container image:\n```sh\nzstd -c -d /path/to/openenclave-dev.tar.zst | docker load\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredthing1%2Fopenenclave-dev-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredthing1%2Fopenenclave-dev-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredthing1%2Fopenenclave-dev-docker/lists"}