{"id":19817869,"url":"https://github.com/sipfront/visqol-docker-cross-compile","last_synced_at":"2026-04-13T05:50:50.218Z","repository":{"id":196224942,"uuid":"667908229","full_name":"sipfront/visqol-docker-cross-compile","owner":"sipfront","description":"Repository for setting up a cross compilation  environment for visqol in aws-linux-2 with provided  files.","archived":false,"fork":false,"pushed_at":"2024-07-22T06:03:38.000Z","size":16363,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T08:12:25.161Z","etag":null,"topics":["bazel","cpp","docker","dockerfile","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/sipfront.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-07-18T15:12:27.000Z","updated_at":"2024-07-18T05:01:09.000Z","dependencies_parsed_at":"2024-07-15T05:48:55.641Z","dependency_job_id":"89b08e4e-6b2d-430d-b251-f8c02009872b","html_url":"https://github.com/sipfront/visqol-docker-cross-compile","commit_stats":null,"previous_names":["sipfront/visqol-docker-cross-compile"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipfront%2Fvisqol-docker-cross-compile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipfront%2Fvisqol-docker-cross-compile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipfront%2Fvisqol-docker-cross-compile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipfront%2Fvisqol-docker-cross-compile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sipfront","download_url":"https://codeload.github.com/sipfront/visqol-docker-cross-compile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241174091,"owners_count":19922238,"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":["bazel","cpp","docker","dockerfile","python3"],"created_at":"2024-11-12T10:13:57.457Z","updated_at":"2025-12-31T01:10:02.224Z","avatar_url":"https://github.com/sipfront.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nThis document describes on how one can set-up a Docker environment to cross-compile VISQOL for Amazon Lambda respectively Amazon Linux 2.\n\n## Setting Up Amazon Linux Image\nTo pull the image, just paste `docker pull amazonlinux:2` to the command line. To make sure, that we don’t download the image each time we build the container paste `docker tag amazonlinux:2 local-amazonlinux:2`. Now we can build from the local image. \n\n## Building the image\nTo build the image, paste `docker build --tag=\"local-amazonlinux:latest\" .`  to the command line. You could also paste `docker build .`, I just provided a new tag for versioning.\n\n## Run the image\nTo run the image paste `docker run -it local-amazonlinux:latest` to the command line. This opens an interactive session. **Important:** Make sure you delete the container after you copied all necessary files from the container image  to your host system.\n\n## Inside the container\n\nAfter you have started the interactive session within the container, just paste the following lines to the command line in the exact same order\n\n```Shell\npython3.8 -m venv env\nsource env/bin/activate\npython3.8 -m pip install numpy scipy protobuf wheel\nbazel build :visqol -c opt\npython3.8 -m pip install .\n```\n\nAfter that, we just have to copy `visqol_lib_py.so` to the host system via `docker cp name-of-the-currently-running-container:/visqol/build/lib/visqol/ ./build/ ` For that, open a second terminal window or kill the currently running container and then copy everything to get the container name. To get the container name, paste `docker ps -a` or `docker ps` to the command line.\n\n## Setting Up Folder structure\n\nBefore we try to build https://github.com/google/visqol, we have to setup our project.  Just make a new folder and change into  the new working directory, for example `path\\to\\visqol-docker-cross-compile-folder\\`. In this new directory the following files should be there, namely \n- `.bazelrc`\n- `Dockerfile`\n- `file_path.h`\n- `setup.py` \n- `test.py`\n\nAdditionally, to test, if we can calculate the MOS Score in the Docker environment via VISQOL, we provide two audio files: callee.wav ('degraded' audio) and caller.wav ('reference' audio). The next sub sections  describe the content of each file.  Just copy them into your folder!\n\n## Important Notes:\nThe reason why I invoked the bazel build commands receptively the python3.8 commands manually inside the container was just for debugging purposes. You could definitely automate everything! I just wanted to make sure that I have control over each step in the building process.\n\n## Update 20.09.2023\nIf you run the script `invoke.sh`, then the complete building process will be executed automatically.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipfront%2Fvisqol-docker-cross-compile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsipfront%2Fvisqol-docker-cross-compile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipfront%2Fvisqol-docker-cross-compile/lists"}