Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #2912

Merged
merged 1 commit into from
Jun 28, 2022
Merged

Update #2912

merged 1 commit into from
Jun 28, 2022

Conversation

vndroid
Copy link

@vndroid vndroid commented Jun 28, 2022

  • Solve the problem that nobody users do not have root after entering the container
  • Execute strip after compilation
  • Support multi-threaded compilation

The configuration file is referenced from shadowsocks-libev Dockerfile. remove some ENV (eg: COMMIT_ID). Made some changes for compatibility.

Using this Dockerfile, the container can be entered. I made an example image https://hub.docker.com/r/vndroid/shadowsocks-libev

Contrast:

  • Origin
$ docker container run --rm -it shadowsocks/shadowsocks-libev:edge /bin/sh
~ $ apk add --no-cache git
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
  • New
$ docker container run --rm -it vndroid/shadowsocks-libev:alpine /bin/sh
/ # apk add --no-cache git
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
(1/6) Installing brotli-libs (1.0.9-r6)
(2/6) Installing nghttp2-libs (1.47.0-r0)
(3/6) Installing libcurl (7.83.1-r1)
(4/6) Installing expat (2.4.8-r0)
(5/6) Installing pcre2 (10.40-r0)
(6/6) Installing git (2.36.1-r0)
Executing busybox-1.35.0-r13.trigger
OK: 25 MiB in 32 packages

- Solve the problem of not being able to enter the container
- Execute strip after compilation
- Support multi-threaded compilation
@madeye madeye merged commit c13c464 into shadowsocks:master Jun 28, 2022
wulabing added a commit to wulabing/Xray_onekey that referenced this pull request Jul 1, 2022
[update] 切换 ss-libev 源至官方源
[update] vndroid dockerfile 已merge 至官方源
shadowsocks/shadowsocks-libev#2912
MatheusVidiga added a commit to MatheusVidiga/Xray_onekey that referenced this pull request Oct 19, 2022
[update] 切换 ss-libev 源至官方源
[update] vndroid dockerfile 已merge 至官方源
shadowsocks/shadowsocks-libev#2912
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants