{"id":16139436,"url":"https://github.com/networkop/cvp-in-docker","last_synced_at":"2025-10-27T23:30:56.129Z","repository":{"id":83590139,"uuid":"165853457","full_name":"networkop/cvp-in-docker","owner":"networkop","description":"Procedure on how to build a portable CVP docker image","archived":false,"fork":false,"pushed_at":"2019-07-21T13:46:26.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-20T05:12:13.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/networkop.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":"2019-01-15T13:13:49.000Z","updated_at":"2023-06-28T00:05:22.000Z","dependencies_parsed_at":"2023-07-07T21:45:40.448Z","dependency_job_id":null,"html_url":"https://github.com/networkop/cvp-in-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fcvp-in-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fcvp-in-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fcvp-in-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkop%2Fcvp-in-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networkop","download_url":"https://codeload.github.com/networkop/cvp-in-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238569596,"owners_count":19493912,"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-09T23:49:03.689Z","updated_at":"2025-10-27T23:30:50.851Z","avatar_url":"https://github.com/networkop.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVP-in-Docker\n\nWhen booting for the first time CVP initializes a lot of the processes which consumes a lot of time and RAM. During subsequent boots, CVP needs much less RAM and initializes a lot quicker. The goal of this doc is to produce the fully initialized CVP image that can be run locally for testing and development purposes (with as little as 8G of RAM!).\n\n## Procedure\n\n1. Assuming cvp image and tools archives are in the $pwd, run\n```bash\ndocker build . -t cvp:2018.2.4-init --build-arg IMAGE=cvp-2018.2.4-kvm.tgz  --build-arg TOOLS=cvp-tools-2018.2.4.tgz\n```\n\n2. Run the CVP VM the first time (can take up to 15 minutes)\n\n```bash\ndocker run -d --privileged --name cvp cvp:2018.2.4-init\n```\n\n3. Make sure CVP is fully initialised \n```bash\ndocker exec -it cvp bash\nvirsh console cvp\ncvp login: root\nPassword: \n[root@cvp ~]# su cvp\ncvp@cvp root]$ cvpi status all\n\nCurrent Running Command: None\nExecuting command. This may take a few seconds...\nprimary \t123/123 components running\n```\n\n4. Once verified, shutdown the VM\n\n```bash\n[cvp@cvp root]$ exit\nexit\n[root@cvp ~]# shutdown now\n```\n5. From the host OS squash the current image\n\n```bash\ndocker export cvp | docker import --change \"ENTRYPOINT ./entrypoint.sh\" - cvp:2018.2.4 \ndocker rm -f cvp\n```\n\n\u003e `docker save|load` may require docker version \u003e 18.09 due to https://github.com/moby/moby/issues/37581\n\n6. (Optionally) Save image into a file\n\n```\ndocker save cvp:2018.2.4 -o cvp:2018.2.4.docker\n```\n\n## Using CVP image\n\nTo run it with 8192MB of RAM do:\n\n```bash\n\ndocker run -d --privileged -p 443:443  -p 9910:9910 --name cvp cvp:2018.2.4 8192\n```\n\n\u003e To register devices with CVP, PRIMARY_DEVICE_INTF_IP in /etc/cvpi/env should be modified to the public IP address followed by `cvpi stop cvp`, `cvpi start cvp`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkop%2Fcvp-in-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworkop%2Fcvp-in-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkop%2Fcvp-in-docker/lists"}