{"id":16138833,"url":"https://github.com/tungbq/localenv","last_synced_at":"2025-03-18T16:31:02.828Z","repository":{"id":240360306,"uuid":"802414226","full_name":"tungbq/LocalEnv","owner":"tungbq","description":"🐳 LocalEnv - Local Containerized Environment supports various languages.","archived":false,"fork":false,"pushed_at":"2024-05-22T23:50:11.000Z","size":58,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T17:15:42.686Z","etag":null,"topics":["container","development","docker","environment","golang","goovy","javascript","local","python","tooling"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tungbq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2024-05-18T08:21:31.000Z","updated_at":"2024-05-22T23:50:12.000Z","dependencies_parsed_at":"2024-05-23T00:25:24.929Z","dependency_job_id":null,"html_url":"https://github.com/tungbq/LocalEnv","commit_stats":null,"previous_names":["tungbq/localenv","tungbq/cei"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2FLocalEnv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2FLocalEnv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2FLocalEnv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2FLocalEnv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tungbq","download_url":"https://codeload.github.com/tungbq/LocalEnv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244259890,"owners_count":20424635,"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":["container","development","docker","environment","golang","goovy","javascript","local","python","tooling"],"created_at":"2024-10-09T23:45:46.989Z","updated_at":"2025-03-18T16:31:02.820Z","avatar_url":"https://github.com/tungbq.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🐳 LocalEnv\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eLocal Containerized Environment supports various programming languages\u003c/p\u003e\n\n## Introduction 👋\n\nLocalEnv is a tool designed for local development, allowing you to execute code in multiple languages without installing numerous tools on your PC. With [Docker](https://www.docker.com/) as the only prerequisite, you can seamlessly run code in various environments.\n\n## Prerequisites 🔓\n\nBefore you begin, ensure that you have [Docker](https://docs.docker.com/engine/install/) installed. It's also helpful to have a basic understanding of Docker concepts.\n\n## Key Features 🚀\n\n- **Quickly write and run code**: LocalEnv allows you to rapidly write and execute code in containerized environments locally.\n\n- **[localenv](./localenv) script**: The repository includes a convenient `localenv` script that simplifies the execution of code in different languages within Docker containerized environments.\n\n- **[env](./env/) folder**: Contains the code and document for each supported language.\n\n- **[config.yaml](./config.yaml) file**: This config file allows users to configure their target environment settings easily. This includes specifying Docker images, default container names, and base commands for each language.\n\n## Demo 🔥\n\n```bash\n# Clone LocalEnv repository\ngit clone https://github.com/tungbq/LocalEnv.git\ncd LocalEnv\n# Execute python code\n./localenv python env/python/demo.py\n# Execute javascript code\n./localenv javascript env/javascript/demo.js\t\n```\n\n## Supported Environment 🚀\n\nCurrent support languages in below table\n\n| Language   | Quick Start                                     | User guide                      | Image                                                 |\n| ---------- | ----------------------------------------------- | ------------------------------- | ----------------------------------------------------- |\n| Python     | `./localenv python env/python/demo.py`          | [python](./env/python/)         | [Find](https://hub.docker.com/_/python)               |\n| Powershell | `./localenv powershell env/powershell/demo.ps1` | [powershell](./env/powershell/) | [Find](https://hub.docker.com/_/microsoft-powershell) |\n| Groovy     | `./localenv groovy env/groovy/demo.groovy`      | [groovy](./env/groovy/)         | [Find](https://hub.docker.com/_/groovy)               |\n| Javascript | `./localenv javascript env/javascript/demo.js`  | [javascript](./env/javascript/) | [Find](https://hub.docker.com/_/node/)                |\n| Golang     | `./localenv golang env/golang/demo.go`          | [go](./env/golang/)             | [Find](https://hub.docker.com/_/golang/)              |\n| Java       | `./localenv java env/java/demo.java`            | [java](./env/java/)             | [Find](https://hub.docker.com/_/openjdk)              |\n\n## Usage 📖\n\nTo use the LocalEnv tool, follow these steps:\n\n### 1. Clone\n\nClone the repository:\n\n```bash\ngit clone https://github.com/tungbq/LocalEnv.git\ncd LocalEnv\n```\n\n### 2. Configure\n\nConfigure your environment:\n\n- Edit the [config.yaml](config.yaml) file to specify the details of the environment you want to use, for example:\n\n```yaml\n# File: ./config.yaml\npython:\n  image: 'python:3.12'\n  default_container_name: 'pyEnv'\n  base_command: 'python'\n```\n\n### 3. Code\n\nWrite your own code under [env](./env/), for example:\n\n- Python: [python](./env/python/)\n- Powershell: [powershell](./env/powershell/)\n\n### 4. Run\n\nRun a script:\n\n- Use the following command format to run your script within the containerized environment:\n\n```bash\n./localenv \u003clanguage\u003e \u003cscript_path\u003e\n```\n\nFor example, to run a Python script:\n\n```bash\n./localenv python env/python/demo.py\n```\n\n### 5. More\n\nRefer to the user guide for detailed instructions on using each supported environment. Links to the user guides are available in the table above.\n\n## Troubleshooting\n\n- For common issue, visit [troubeshooting.md](./docs/troubeshooting.md)\n\n## Contributing\n- See: [CONTRIBUTING.md](./CONTRIBUTING.md)\n- If you find this repository helpful, kindly consider showing your appreciation by giving it a star ⭐ Thanks! 💖\n- Feel free to open a new issue if you encounter the LocalEnv bug or want to request more content about LocalEnv\n- Submit a new issue (🐛) if you encounter the bug/error when using this repo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftungbq%2Flocalenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftungbq%2Flocalenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftungbq%2Flocalenv/lists"}