🧊Google Lyra 封装成docker镜像
github仓库地址 https://github.com/Yalois/Google-Lyra-DockerImageBuild 可以在Release页面下载构建好的镜像导入。 详细过程看Dockerfile。 制作原因 CTF比赛中遇到过两次,一次是ISCC,然后就是最近的YLCTF。 记得ISCC那次我安装Lyra给我安装的我骂骂咧咧的想要把电脑砸了,主要是因为网络问题和依赖太多的问题,近期YLCTF又用到了,我又专门换回我的win系统里装好的wsl里的lyra解码的,安装确实有些麻烦。 为了提高使用效率,我决定将Lyra Linux环境封装成Docker镜像,并对lyra-1.3.2的WORKSPACE进行了修改,具体如下。 # 原来的 git_repository( name = "com_google_glog", remote = "https://github.com/google/glog.git", branch = "master" ) 因为可能仓库更新过导致代码不一致的问题会报以下错误 ERROR: /root/.cache/bazel/_bazel_root/d75f5abc8330122e59e1289f475094d7/external/com_google_glog/BUILD.bazel:7:13: no such package '@gflags//': The repository '@gflags' could not be resolved: Repository '@gflags' is not defined and referenced by '@com_google_glog//:glog' WARNING: /root/.cache/bazel/_bazel_root/d75f5abc8330122e59e1289f475094d7/external/com_google_audio_dsp/third_party/fft2d/BUILD:3:11: in linkstatic attribute of cc_library rule @com_google_audio_dsp//third_party/fft2d:fft2d: setting 'linkstatic=1' is recommended if there are no object files WARNING: errors encountered while analyzing target '//lyra/cli_example:encoder_main': it will not be built INFO: Analyzed target //lyra/cli_example:encoder_main (112 packages loaded, 3435 targets configured). INFO: Found 0 targets... ERROR: command succeeded, but not all targets were analyzed INFO: Elapsed time: 36.286s, Critical Path: 0.01s INFO: 1 process: 1 internal. FAILED: Build did NOT complete successfully 于是我修改为了和lyra同一时期的commit ...