Commit Graph

111 Commits

Author SHA1 Message Date
Leonid Pliushch
c03156ef4f bootstrap: update to 2023.02.19 2023-02-23 19:43:48 +02:00
Leonid Pliushch
6c17e4e017 docker: reset environment after su
Fixes environment for login, SHLVL = 1 now, etc.
2023-02-23 19:32:39 +02:00
Leonid Pliushch
d1cfc5fe6f docker: fix entrypoint script
Don't run su in login mode.
2023-02-23 19:26:56 +02:00
Leonid Pliushch
5bff10a4b6 readme: add back build instructions 2023-02-23 12:58:09 +02:00
Leonid Pliushch
dd2fb82e0a deprecate run.sh and run-x86_64.sh scripts 2023-02-23 12:18:45 +02:00
Leonid Pliushch
ccb8190843 update readme 2023-02-23 12:15:35 +02:00
Leonid Pliushch
4fab030986 docker: add alternate entrypoint script
This one spawns a root shell.
2023-02-23 12:15:03 +02:00
Leonid Pliushch
66799e6bc0 docker: update argument handling in entrypoint script 2023-02-23 11:46:42 +02:00
Leonid Pliushch
988ecdaf07 docker: update entrypoint script
* Split conditional for non-root check.
* Force-drop privileges to user "system".
2023-02-23 10:23:35 +02:00
Leonid Pliushch
4360caad29 docker: don't install updates for aarch64
Workaround for aarch64 image build issues.
2023-02-23 10:07:40 +02:00
Leonid Pliushch
5cfdc47f79 docker: use mksh to launch dnsmasq 2023-02-22 23:17:30 +02:00
Leonid Pliushch
55bb986db4 bin: rename sh to mksh, add back busybox sh
mksh cause issues when building images for arm and aarch64.
2023-02-22 23:16:11 +02:00
Leonid Pliushch
58a99c42cb Merge pull request #49 from termux/dnsmasq
Switch to dynamic DNS host name resolution. Implemented using dnsmasq as suggested in https://github.com/termux/termux-docker/issues/48.

The dnsmasq server is started by entrypoint script before launching the actual command or shell. This will have side effect on usage: container must always be started as root.
2023-02-22 22:32:48 +02:00
Leonid Pliushch
eb7481ede9 docker: don't switch user by default 2023-02-22 22:32:12 +02:00
Leonid Pliushch
f49601a89e docker: add entrypoint script
Entrypoint script starts dnsmasq before shell is launched.
2023-02-22 22:22:45 +02:00
Leonid Pliushch
4aac3f0f1e docker: launch dnsmasq properly during build 2023-02-22 21:50:58 +02:00
Leonid Pliushch
c9a7ae10e2 bin: replace busybox sh with mksh from android 2023-02-22 21:50:54 +02:00
Leonid Pliushch
5e6b4f4026 docker: enable apt upgrade step 2023-02-22 21:50:05 +02:00
Leonid Pliushch
f7755c0d4a bin: provide su
Allows to drop privileges to "system" user from root.
2023-02-22 21:49:57 +02:00
Leonid Pliushch
5e5f33f672 bin: delete update-static-dns script 2023-02-22 21:49:13 +02:00
Leonid Pliushch
ddbe3b603e arm: add dnsmasq
Issue: https://github.com/termux/termux-docker/issues/48
2023-02-22 21:06:26 +02:00
Leonid Pliushch
c58071ee40 x86: add dnsmasq
Issue: https://github.com/termux/termux-docker/issues/48
2023-02-22 20:13:12 +02:00
Uchiha Kakashi
f0dbaff385 bootstrap: update to 2022.12.04-r1 2022-12-04 14:20:51 +08:00
Lars The
cf32710a93 Add support for user static DNS file (#45)
Adds the file `/data/data/com.termux/files/home/.static-dns-hosts.txt` with empty content to bind to it externally with some user hosts. The script `update-static-dns` then uses the regular system wide static-dns-hosts.txt and the content of this file. The user can edit it inside the container, and/or bind it with an external file.
2022-11-30 21:25:24 +08:00
Chongyun Lee
98af62205f ci: label image with arch 2022-11-26 23:07:13 +08:00
Chongyun Lee
ec3a88387a bootstrap: update to 2022.11.06 2022-11-09 20:13:28 +08:00
dependabot[bot]
aa9f7ce0db Bump docker/login-action from 1 to 2
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 01:24:19 +00:00
dependabot[bot]
a90f4ccb23 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 01:24:00 +00:00
Lucy Phipps
4ece29c1c0 Create dependabot.yml 2022-11-07 01:23:06 +00:00
Chongyun Lee
97bad319bc bootstrap: update to 2022.10.02-r1 2022-10-02 13:44:04 +08:00
Chongyun Lee
f153659e35 README: update known issues 2022-09-02 17:28:55 +08:00
Chongyun Lee
b549f38cfa bootstrap: update to 2022.08.28-r1 2022-09-02 17:25:03 +08:00
Chongyun Lee
80742d31d4 bootstrap: update to 2022.07.31-r1 2022-08-02 12:21:14 +08:00
Chongyun Lee
4c08c24bce update-static-dns: fix bug
Currently, update-static-dns will save the index.html under the
workdir. This commit will fix this unexpected behaviour.
2022-07-12 15:19:55 +08:00
Chongyun Lee
ff01256db8 bootstrap: update to 2022.07.03-r1 2022-07-07 14:47:11 +08:00
Chongyun Lee
0e9416d8cf static-dns-hosts.txt: update 2022-07-07 14:44:08 +08:00
Chongyun Lee
80eeb254a8 README.md: use termux/termux-docker 2022-07-07 14:43:29 +08:00
rojenzaman
15a788b953 fix OCI format error 2022-05-04 15:01:24 +02:00
Uchiha Kakashi
1a43803d78 Dockerfile: Update to 2022.05.01-r1+apt-android-7 2022-05-04 08:15:16 +02:00
Chongyun Lee
040b92afcd Dockerfile: Link some utilities to busybox 2022-04-24 12:35:14 +02:00
Chongyun Lee
36743e506b CI: Build image for arm 2022-04-24 12:35:10 +02:00
Henrik Grimler
d3a17457fd Keep termux-docker at hub.docker.com/u/termux
In the same repo as the other docker containers.
2022-04-24 12:33:26 +02:00
Henrik Grimler
fa1457e0a5 Update bootstraps to 2022-04-24 2022-04-24 12:33:22 +02:00
Henrik Grimler
bf12a82386 Merge pull request #24 from licy183/master
Update: Add IPv6 DNS
2022-04-22 09:29:47 +02:00
Chongyun Lee
8298333eb5 Update: Add IPv6 DNS 2022-04-22 15:06:55 +08:00
Krishna Kanhaiya
80908237d8 Update static-dns-hosts.txt 2022-02-18 20:46:14 +05:30
Kristofer Racsa
d672b24c9d Update static-dns-hosts.txt (#22) 2022-02-18 20:42:35 +05:30
kcubeterm
95e6b5a442 dokr_build.yml: recreated...
in order to test the schedule jobs runs or not
2022-02-09 17:00:05 +05:30
Uchiha Kakashi
db3ee18a97 Update: update-static-dns (#17) 2022-02-05 12:15:21 +05:30
Krishna Kanhaiya
955324e0a7 build-all.sh/run.sh: update image address to kcubeterm (#20) 2022-02-05 12:14:11 +05:30