{"id":15020540,"url":"https://github.com/hyuksun98/docker_project","last_synced_at":"2026-02-25T09:33:42.857Z","repository":{"id":196423497,"uuid":"694927539","full_name":"hyuksun98/docker_project","owner":"hyuksun98","description":"Contest Exhibit: container-based embedded system virtualization","archived":false,"fork":false,"pushed_at":"2024-01-04T16:25:34.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T08:44:29.805Z","etag":null,"topics":["container-based-virtualization","docker","orangepi-zero","orangepi-zero3","raspberry-pi-4"],"latest_commit_sha":null,"homepage":"","language":"C","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/hyuksun98.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":"2023-09-22T01:35:55.000Z","updated_at":"2024-03-10T13:22:28.000Z","dependencies_parsed_at":"2024-01-04T17:46:16.305Z","dependency_job_id":null,"html_url":"https://github.com/hyuksun98/docker_project","commit_stats":null,"previous_names":["includekhs/docker_project","hyuksun98/docker_project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hyuksun98/docker_project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyuksun98%2Fdocker_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyuksun98%2Fdocker_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyuksun98%2Fdocker_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyuksun98%2Fdocker_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyuksun98","download_url":"https://codeload.github.com/hyuksun98/docker_project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyuksun98%2Fdocker_project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29816091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["container-based-virtualization","docker","orangepi-zero","orangepi-zero3","raspberry-pi-4"],"created_at":"2024-09-24T19:55:14.552Z","updated_at":"2026-02-25T09:33:42.824Z","avatar_url":"https://github.com/hyuksun98.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2nd KHU (Kyung Hee University) College of Electronics and Information Engineering Creative Innovation Project\n\n### Team Name: My Life is NG(New Generation)\n### Contest Introduction: Container-Based Embedded System Virtualization\u003cbr\u003e\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"542\" alt=\"KakaoTalk_20231009_164827855\" src=\"https://github.com/includekhs/docker_project/assets/117493461/fe82280e-bfbc-455c-b1e9-6bfd7c23a9f9\"\u003e\u003c/p\u003e\n\nWe are building embedded system virtualization using Docker containers.\n\nWe aim to implement a single Dockerfile script that is compatible with various hardware platforms, allowing applications to run in containers.\n\nUltimately, we plan to present a prototype for open-source and embedded system virtualization.\u003cbr\u003e\u003cbr\u003e\n\nWe already pushed our own Docker Image on Docker Hub using ```docker buildx build``` command. You can pull the image:\n\n```\ndocker pull includekhs/final:6.0\n```\n\u003cbr\u003e\u003cbr\u003e\nUsed IoT Devices (Orange Pi Zero, Raspberry Pi 4, Orange Pi Zero 3):\n\n- Raspberry Pi 4 (Broadcom BCM2711) $~$ : Sensor(DHT11) application, publisher\n- Orange Pi Zero (Allwinner H2+) $~$ : Sensor(DHT22) application, publisher\n- Orange Pi Zero 3 (Allwinner H618) $~$ : MQTT broker and subscriber\u003cbr\u003e\u003cbr\u003e\n\nUsed Libraries:\n```\npyA20==0.2.1\npaho-mqtt==1.6.1\nAdafruit_DHT==1.4.0\nsqlite3=3.40.1\n```\n\u003cbr\u003e\n\n## Alert\nAfter you entered into container, you should set the environment variable which specify the mqtt broker ip address(choose between 2 solutions): \n\n- Solution 1. Setting ```export BROKER={ip_address}```\n- Solution 2. Add some layer ```ENV BROKER={ip_address}``` to Dockerfile\n\n\u003cbr\u003e\u003cbr\u003e\n\n## Raspberry pi 4\nTo use the DHT sensor on Raspberry Pi 4, GPIO control is required. We used the Adafruit_DHT library for this purpose.\n\n- ```rpi_sensor.py``` reads temperature and humidity data from the sensor.\n- ```rpi_mqtt.py``` sends the temperature and humidity data read from the sensor to the MQTT broker (Orange Pi Zero 3) using the paho-mqtt library.\n\nSource code related to this can be easily found and implemented as there are various resources available.\u003cbr\u003e\u003cbr\u003e\n\n## Orangepi zero\nTo use the DHT sensor on Orange Pi Zero, GPIO control is required. We used open-source pyA20 resources from GitHub.\n\n1. DHT22 sensor reference: https://github.com/jingl3s/DHT11-DHT22-Python-library-Orange-PI.git\n2. pyA20 reference: https://github.com/LinhDNguyen/orangepi_zero_gpio.git\n\n- ```opi_sensor.py``` reads temperature and humidity data from the sensor.\n  \n- ```opi_mqtt.py``` sends the temperature and humidity data read from the sensor to the MQTT broker (Orange Pi Zero 3) using the paho-mqtt library.\n  \n- ```/DHT11-DHT22-Python-library-Orange-PI/dht.py``` reads temperature and humidity data from the DHT22 sensor and contains helper functions for data validation.\n\n- ```/orangepi_zero_gpio``` is an installation file for the pyA20 library.\n\n\u003cbr\u003e\n\n## Orangepi zero3 (UPDATED: 23/10/06)\nOrange Pi Zero 3 operates as an MQTT broker and receives temperature/humidity data from Orange Pi Zero and Raspberry Pi 4.\u003cbr\u003e\n\n- ```mqtt_broker.py``` receives the temperature and humidity data from Orange pi Zero and Raspberry pi 4. \u003cbr\u003e\u003cbr\u003e\n\n**UPDATED**: We have used ```sqlite3``` database library for using ```docker volume```. And we added ```init_db.py``` file which role is initializing the database configuration.\n\n**UPDATED**: Also, ```mqtt_broker.py``` has ```INSERT``` sql command to operate database\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyuksun98%2Fdocker_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyuksun98%2Fdocker_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyuksun98%2Fdocker_project/lists"}