chore(docker,ci): add riscv64 to docker build #1563
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add riscv64 to docker build.
Tested build with the following command successfully:
Image: https://hub.docker.com/repository/docker/ngc7331/v2raya/tags
Tested on a Milk-V Mars board and everything works fine:
$ neofetch _,met$$$$$gg. user@MarsCM ,g$$$$$$$$$$$$$$$P. ------------ ,g$$P" """Y$$.". OS: Debian GNU/Linux trixie/sid riscv64 ,$$P' `$$$. Host: Milk-V Mars CM eMMC ',$$P ,ggs. `$$b: Kernel: 5.15.0-xu.2 `d$$' ,$P"' . $$$ Uptime: 10 mins $$P d$' , $$P Packages: 1251 (dpkg) $$: $$. - ,d$$' Shell: zsh 5.9 $$; Y$b._ _,d$P' Terminal: /dev/pts/0 Y$$. `.`"Y$$$$P"' CPU: (4) @ 1.500GHz `$$b "-.__ Memory: 304MiB / 3866MiB `Y$$ `Y$$. `$$b. `Y$$b. `"Y$b._ `""" $ docker run -d \ -p 2017:2017 \ -p 20170-20172:20170-20172 \ --restart=always \ --name v2raya \ -e V2RAYA_V2RAY_BIN=/usr/local/bin/xray \ -v /etc/v2raya:/etc/v2raya \ ngc7331/v2raya 05f46ee19e50977af570ee442318112a19146e1e0b4514da76cad8aaa0f410f6 $ docker logs v2raya 2024/11/24 07:14:57.620 [A] [main.go:29] V2Ray binary is /usr/local/bin/xray 2024/11/24 07:14:57.621 [A] [main.go:29] V2Ray asset directory is /run/user/0/v2raya 2024/11/24 07:14:57.621 [A] [main.go:29] v2rayA working directory is / 2024/11/24 07:14:57.621 [A] [main.go:29] v2rayA configuration directory is /etc/v2raya 2024/11/24 07:14:57.621 [A] [main.go:29] Golang: go1.23.2 2024/11/24 07:14:57.621 [A] [main.go:29] OS: linux 2024/11/24 07:14:57.621 [A] [main.go:29] Arch: riscv64 2024/11/24 07:14:57.622 [A] [main.go:29] Lite: false 2024/11/24 07:14:57.622 [A] [main.go:29] Version: 2.2.6.2 2024/11/24 07:14:57.622 [A] [main.go:29] Starting... 2024/11/24 07:14:57.622 [I] [main.go:30] the core was not running the last time v2rayA exited 2024/11/24 07:14:57.652 [A] [index.go:116] v2rayA is listening at http://127.0.0.1:2017 2024/11/24 07:14:57.652 [A] [index.go:116] v2rayA is listening at http://172.17.0.3:2017 2024/11/24 07:14:57.652 [A] [index.go:116] v2rayA is listening at http://[::1]:2017Unfortunately,
v2raya-guiis currently unable to add riscv64 support, as the base imagenginxhas not yet merged riscv64 support: nginx/docker-nginx#898. Unless we usealpineas the base image and install nginx manually, which is too much work.