Compare commits
445 commits
dcedb1be-l
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
458f79ca4b | ||
|
|
6ea8b43b0d | ||
|
|
113e0bf43b | ||
|
|
6a6256acd4 | ||
|
|
ac17141dc8 | ||
|
|
2c1f03e3a7 | ||
|
|
4775b97056 | ||
|
|
d9e9c8a664 | ||
|
|
ec8542f160 | ||
|
|
e1e80e60c0 | ||
|
|
59c62f1ae7 | ||
|
|
081f3bf4a3 | ||
|
|
a34a58bd62 | ||
|
|
64ecb6745f | ||
|
|
ba27487240 | ||
|
|
5e393c25ff | ||
|
|
5a3ccf4cf0 | ||
|
|
d48d182f0f | ||
|
|
8beeaeca45 | ||
|
|
12873dd927 | ||
|
|
1730537b24 | ||
|
|
7d602a73c4 | ||
|
|
2f5c0f11df | ||
|
|
2411390177 | ||
|
|
7777d8828d | ||
|
|
795d744a0f | ||
|
|
5dfe7d15c6 | ||
|
|
ff812c0651 | ||
|
|
70b76baa2f | ||
|
|
8f35e8139b | ||
|
|
6bd31eb477 | ||
|
|
481825d48e | ||
|
|
2926dbe73c | ||
|
|
c6b5263eb1 | ||
|
|
f272148962 | ||
|
|
bb5a7b16e2 | ||
|
|
1983fb36bb | ||
|
|
85bd229846 | ||
|
|
94ccace81c | ||
|
|
9ec43eb872 | ||
|
|
c822962c7a | ||
|
|
a2b17e520a | ||
|
|
6567cde19c | ||
|
|
719f49cb0a | ||
|
|
5b1eb38ce6 | ||
|
|
34006fe7e7 | ||
|
|
af2c6f228e | ||
|
|
b48c87eb2f | ||
|
|
ef81cb3b33 | ||
|
|
56d8fbb73f | ||
|
|
b9b51a1b93 | ||
|
|
46e3e8d74c | ||
|
|
4066c272d7 | ||
|
|
28e54925ca | ||
|
|
c4951e7021 | ||
|
|
f2844953b3 | ||
|
|
552137dbb1 | ||
|
|
3ae6c4fd66 | ||
|
|
cb6b200afc | ||
|
|
458334e3c1 | ||
|
|
d69c527089 | ||
|
|
3d21020c64 | ||
|
|
145020adaa | ||
|
|
ed4057339b | ||
|
|
9268218a5f | ||
|
|
cd796b3370 | ||
|
|
0b5f271f0e | ||
|
|
7cd7e1401c | ||
|
|
eb3cf22d0d | ||
|
|
f47b402a1a | ||
|
|
05763edeb2 | ||
|
|
f023763fe6 | ||
|
|
402e4abbc3 | ||
|
|
ff87e3bd5a | ||
|
|
a0702347af | ||
|
|
6cfbdd72c6 | ||
|
|
2263515ffb | ||
|
|
9626561aea | ||
|
|
725df02e95 | ||
|
|
bd4c1887c2 | ||
|
|
f7a30b5942 | ||
|
|
e971d0872f | ||
|
|
a03942aac4 | ||
|
|
1bfc5cb7a7 | ||
|
|
d2d759f136 | ||
|
|
443aa44015 | ||
|
|
36bfc31d62 | ||
|
|
0e7a9b6fbd | ||
|
|
07c4bf4594 | ||
|
|
3a67103736 | ||
|
|
330012ef01 | ||
|
|
9b393a8668 | ||
|
|
dbd643f8c3 | ||
|
|
bef0f4cee2 | ||
|
|
2b1fc3f6c8 | ||
|
|
09726961fd | ||
|
|
937caa6f19 | ||
|
|
3256bb4eeb | ||
|
|
6be18c0df7 | ||
|
|
89ebe1cc22 | ||
|
|
8b9dbd0bed | ||
|
|
1b98fd9bc7 | ||
|
|
7c6601c83a | ||
|
|
cf5896ce7c | ||
|
|
6bb5231d17 | ||
|
|
00db510002 | ||
|
|
5543e3dd0f | ||
|
|
a54b440055 | ||
|
|
d971cf0873 | ||
|
|
a8bbd50370 | ||
|
|
5461255904 | ||
|
|
c060e20690 | ||
|
|
fe39d670b7 | ||
|
|
1e9e41836b | ||
|
|
ed066bdae3 | ||
|
|
0166b15838 | ||
|
|
ab9e158526 | ||
|
|
b8c0295890 | ||
|
|
5e374ee43a | ||
|
|
816d25fbf7 | ||
|
|
96984e3854 | ||
|
|
8cf7e20755 | ||
|
|
aa9b7f4b95 | ||
|
|
7d5f74364e | ||
|
|
4fe4220a7e | ||
|
|
e434ab3fe3 | ||
|
|
1adb03aef0 | ||
|
|
a0d322b305 | ||
|
|
d2b85ed256 | ||
|
|
07df980344 | ||
|
|
466a927f40 | ||
|
|
15496c0fca | ||
|
|
39642821ec | ||
|
|
643409d275 | ||
|
|
8b124808ef | ||
|
|
d36f2ddbf4 | ||
|
|
76c8c4fd58 | ||
|
|
7fc5da5f71 | ||
|
|
91044234a7 | ||
|
|
eb4b14ce3c | ||
|
|
a7ba2053f0 | ||
|
|
a8465643b1 | ||
|
|
5d733ee571 | ||
|
|
08e780a773 | ||
|
|
a9ef2ccf6c | ||
|
|
eb6d5d5c12 | ||
|
|
370967709c | ||
|
|
72281a0cf8 | ||
|
|
c54869a7bd | ||
|
|
64afadbace | ||
|
|
a7ed4de8d4 | ||
|
|
31ef1b0d0a | ||
|
|
527b37252f | ||
|
|
fbb9785cd6 | ||
|
|
eea14b996e | ||
|
|
d2c30740b3 | ||
|
|
8f6304defe | ||
|
|
e128cf0cda | ||
|
|
bb923d4917 | ||
|
|
292e1ef85f | ||
|
|
062b99c30f | ||
|
|
62ae1165ed | ||
|
|
b11a5ca283 | ||
|
|
c675e2f545 | ||
|
|
00f7a6794e | ||
|
|
67cd47254a | ||
|
|
1a6f120c44 | ||
|
|
659bf29597 | ||
|
|
91a498c9e2 | ||
|
|
82bb8aa307 | ||
|
|
2180f0d64d | ||
|
|
8736a368e5 | ||
|
|
f72ffa6ad9 | ||
|
|
9fcf5d8681 | ||
|
|
a7991dea60 | ||
|
|
7b446f095d | ||
|
|
87dfb43832 | ||
|
|
5d59580279 | ||
|
|
df09f6d68c | ||
|
|
ad924e72a7 | ||
|
|
7596410d7f | ||
|
|
078343fa8c | ||
|
|
305e9a2c7e | ||
|
|
92bd611edb | ||
|
|
1009478827 | ||
|
|
4659d1bb57 | ||
|
|
fb53f2e1bc | ||
|
|
c1e8211ef7 | ||
|
|
a7218a6ab4 | ||
|
|
15f2972106 | ||
|
|
cd5e96dc7f | ||
|
|
672802cf04 | ||
|
|
de94dc1911 | ||
|
|
93731cdb69 | ||
|
|
855ddee102 | ||
|
|
dff708b8b7 | ||
|
|
505eaafb77 | ||
|
|
0fa7d8bbf2 | ||
|
|
4b88885e86 | ||
|
|
c82b92c605 | ||
|
|
ca4a42df4a | ||
|
|
19b9b4baef | ||
|
|
5aefb6cd61 | ||
|
|
4deecce65a | ||
|
|
12948902a1 | ||
|
|
81ae7dfe9b | ||
|
|
914b1f16a4 | ||
|
|
84b302cd60 | ||
|
|
0cd410af3d | ||
|
|
3e928ed92f | ||
|
|
0f6c8bd028 | ||
|
|
255b2a1b11 | ||
|
|
428152474d | ||
|
|
4e412a5fdc | ||
|
|
2ee8af10f9 | ||
|
|
34300133f6 | ||
|
|
1bc2cd870f | ||
|
|
256cbbff64 | ||
|
|
c773341cea | ||
|
|
f4f76d6918 | ||
|
|
fe11b1ded7 | ||
|
|
12eda7a831 | ||
|
|
fd0e34c1f5 | ||
|
|
261c0b7c50 | ||
|
|
14ba912cf0 | ||
|
|
82d4508817 | ||
|
|
ea2e584fde | ||
|
|
d7bdc2a516 | ||
|
|
55cff18284 | ||
|
|
61b7bb68e5 | ||
|
|
a507fbf537 | ||
|
|
696a16f01b | ||
|
|
6e7eb8a8d3 | ||
|
|
91f450f06c | ||
|
|
00a0bd1d2c | ||
|
|
110ea527e9 | ||
|
|
2f02d2559c | ||
|
|
d1d84fac4c | ||
|
|
ef5ebc65e4 | ||
|
|
0e55439386 | ||
|
|
75b3115d75 | ||
|
|
e1f14ef6e1 | ||
|
|
1f816f0fd2 | ||
|
|
5eb25b8357 | ||
|
|
7f8d142552 | ||
|
|
10d77113b5 | ||
|
|
ea7f9dddff | ||
|
|
7b8515c27e | ||
|
|
00cc255a45 | ||
|
|
9c126e46cc | ||
|
|
e0fd8cb964 | ||
|
|
4f4d988211 | ||
|
|
ec2e9b7ac0 | ||
|
|
7519dd8f97 | ||
|
|
595c036d6d | ||
|
|
9b753d0667 | ||
|
|
eabdf1cf32 | ||
|
|
d8547ab363 | ||
|
|
2de8130702 | ||
|
|
2edf79aab1 | ||
|
|
b0a2852692 | ||
|
|
34eee09951 | ||
|
|
6ba2997eeb | ||
|
|
42825ece45 | ||
|
|
35e90d8ef5 | ||
|
|
201227b220 | ||
|
|
b7b477c8d6 | ||
|
|
34f4a4681c | ||
|
|
29c0ee219d | ||
|
|
4af8d4292f | ||
|
|
549772f05c | ||
|
|
a51ad09b7b | ||
|
|
2f97067d7e | ||
|
|
bd084de07d | ||
|
|
4d28a9cdc6 | ||
|
|
3c7ccbd583 | ||
|
|
273f624f3a | ||
|
|
90d9d04a66 | ||
|
|
e696236d42 | ||
|
|
0e016f977e | ||
|
|
dd40de00b6 | ||
|
|
74a4516271 | ||
|
|
b5f9bf1093 | ||
|
|
bb2ab4ccdf | ||
|
|
e890f470b6 | ||
|
|
4f51cb2f4f | ||
|
|
5f3a505a50 | ||
|
|
97f69b8423 | ||
|
|
92595b45d8 | ||
|
|
c758822c55 | ||
|
|
d69c94cc2f | ||
|
|
1d9f2f3862 | ||
|
|
d7ac0a9a4e | ||
|
|
3e69697264 | ||
|
|
c285069d03 | ||
|
|
1dabda8b62 | ||
|
|
36c3f7ffb5 | ||
|
|
1f81e9ac8a | ||
|
|
92a97355b4 | ||
|
|
ec6eed279d | ||
|
|
32e37c440b | ||
|
|
6ac3a53809 | ||
|
|
2c28aeb4c8 | ||
|
|
f6f2804792 | ||
|
|
45b3854870 | ||
|
|
7383c0982b | ||
|
|
6f9c4d3d01 | ||
|
|
73de4c6c4c | ||
|
|
ca43caabd3 | ||
|
|
43abf13ebd | ||
|
|
35065baace | ||
|
|
a374f6d565 | ||
|
|
b8061f5abf | ||
|
|
75cacb5446 | ||
|
|
50056b0de7 | ||
|
|
dd6cea607a | ||
|
|
a6b4c3a750 | ||
|
|
94c906d4cb | ||
|
|
caa7a49b09 | ||
|
|
bfe8091ed5 | ||
|
|
eb5182d090 | ||
|
|
24497871ab | ||
|
|
ea71df36b9 | ||
|
|
46021bbd0a | ||
|
|
9184ab8abe | ||
|
|
cde88b797c | ||
|
|
ac955f55e3 | ||
|
|
33e21383d0 | ||
|
|
3d6c4b2bad | ||
|
|
b0a2d38925 | ||
|
|
f7371fb778 | ||
|
|
ee88ba07ab | ||
|
|
66dfe026e6 | ||
|
|
14742dd34f | ||
|
|
0ad5df10aa | ||
|
|
880fac8727 | ||
|
|
ba75223981 | ||
|
|
d01575b674 | ||
|
|
13e918675a | ||
|
|
597b29a545 | ||
|
|
b8acdaf9b1 | ||
|
|
52480e7954 | ||
|
|
d2cc9ca780 | ||
|
|
d7e9aa86ed | ||
|
|
2520ea72e5 | ||
|
|
d344ff8c55 | ||
|
|
5ad44e519e | ||
|
|
c89d308f68 | ||
|
|
c3660f5b12 | ||
|
|
94792e3f90 | ||
|
|
5e4d38b5ea | ||
|
|
0216e292d1 | ||
|
|
50880db4aa | ||
|
|
fb2ef8fb85 | ||
|
|
c8b99498aa | ||
|
|
e65a2cbd22 | ||
|
|
64e08e4269 | ||
|
|
b7b9c42f77 | ||
|
|
c8d65a2898 | ||
|
|
8265fb6719 | ||
|
|
07761e6061 | ||
|
|
b18bf30fe1 | ||
|
|
0cca0804bc | ||
|
|
da0168c412 | ||
|
|
10e646d802 | ||
|
|
aa03cec4ac | ||
|
|
48bf601e53 | ||
|
|
640ce1dbf3 | ||
|
|
e460faa5ec | ||
|
|
990d14040d | ||
|
|
22219c08e8 | ||
|
|
e5d676ef7c | ||
|
|
680765e060 | ||
|
|
1918806fcf | ||
|
|
de01a5c2bf | ||
|
|
dcbe92995c | ||
|
|
489170a67a | ||
|
|
6ca5da020f | ||
|
|
043ff4b7c9 | ||
|
|
bc5a082ccb | ||
|
|
ea51ee6f99 | ||
|
|
2c9e4123fd | ||
|
|
bc2037f0b3 | ||
|
|
d58f1bd4b1 | ||
|
|
ddd3ef7777 | ||
|
|
c0d3371e50 | ||
|
|
478c1205ed | ||
|
|
77f816bfeb | ||
|
|
f99da6969c | ||
|
|
97a77668b6 | ||
|
|
4460ad521c | ||
|
|
99cbf3bf8f | ||
|
|
ab9167362c | ||
|
|
707b0c1533 | ||
|
|
97c3ce9e25 | ||
|
|
e7df4376fa | ||
|
|
7f2e4e9a1b | ||
|
|
9076149977 | ||
|
|
bd79e4a67c | ||
|
|
2fd0ee94dd | ||
|
|
a91d461149 | ||
|
|
1d366260c1 | ||
|
|
87825750eb | ||
|
|
86991fb572 | ||
|
|
fc96600e8c | ||
|
|
9c27af99d3 | ||
|
|
95a775a423 | ||
|
|
8c74607acc | ||
|
|
af1a2bdecb | ||
|
|
75b4a8073b | ||
|
|
b158c2e0d6 | ||
|
|
ca312610e3 | ||
|
|
e4f9abfcda | ||
|
|
9bf15c5178 | ||
|
|
ff3598fbf8 | ||
|
|
68e1abdaef | ||
|
|
56d78e2624 | ||
|
|
4ea4f823dc | ||
|
|
9f7a004e99 | ||
|
|
03e71231bb | ||
|
|
a224ebb596 | ||
|
|
dd1d2db225 | ||
|
|
bb9c9b65b2 | ||
|
|
e2fa79b975 | ||
|
|
06f138f7f3 | ||
|
|
f8641c474a | ||
|
|
7f882e818e | ||
|
|
422bda2765 | ||
|
|
ce8e3757a2 | ||
|
|
1545d2d582 | ||
|
|
f835574fb3 | ||
|
|
5b0970f886 | ||
|
|
45420b57ee | ||
|
|
f5c39c5758 | ||
|
|
354fa7d063 | ||
|
|
7e545c5906 | ||
|
|
c303097629 | ||
|
|
e3371035a3 | ||
|
|
4c678523d1 | ||
|
|
eecf82d5dc | ||
|
|
46cb33679e | ||
|
|
62364331fb | ||
|
|
d6684233d9 | ||
|
|
86c9245c5d | ||
|
|
e12acbf292 |
20
.editorconfig
Executable file
20
.editorconfig
Executable file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# This file is globally distributed to all container image projects from
|
||||||
|
# https://github.com/linuxserver/docker-jenkins-builder/blob/master/.editorconfig
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
# trim_trailing_whitespace may cause unintended issues and should not be globally set true
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[{Dockerfile*,**.yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[{**.sh,root/etc/s6-overlay/s6-rc.d/**,root/etc/cont-init.d/**,root/etc/services.d/**}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
15
.forgejo/workflows/build.yaml
Normal file
15
.forgejo/workflows/build.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
name: build
|
||||||
|
run-name: ${{ gitea.actor }} is building baseimage-alpine
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: podman
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: podman login --username registry --password ${{ secrets.MEATBAG_REGISTRY_TOKEN }} registry.meatbag.se
|
||||||
|
- run: podman build -t meatbag/baseimage-alpine:latest .
|
||||||
|
- run: podman push meatbag/baseimage-alpine registry.meatbag.se/meatbag/baseimage-alpine
|
||||||
21
.github/ISSUE_TEMPLATE.md
vendored
21
.github/ISSUE_TEMPLATE.md
vendored
|
|
@ -1,21 +0,0 @@
|
||||||
<!--- Provide a general summary of the issue in the Title above -->
|
|
||||||
|
|
||||||
[linuxserverurl]: https://linuxserver.io
|
|
||||||
[][linuxserverurl]
|
|
||||||
|
|
||||||
|
|
||||||
<!--- If you have an issue with the project, please provide us with the following information -->
|
|
||||||
|
|
||||||
<!--- Host OS -->
|
|
||||||
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. -->
|
|
||||||
<!--- Docker log output, docker log <container-name> -->
|
|
||||||
<!--- Mention if you're using symlinks on any of the volume mounts. -->
|
|
||||||
|
|
||||||
|
|
||||||
<!--- If you have a suggestion or fix for the project, please provide us with the following information -->
|
|
||||||
|
|
||||||
<!--- What you think your suggestion brings to the project, or fixes with the project -->
|
|
||||||
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? -->
|
|
||||||
|
|
||||||
## Thanks, team linuxserver.io
|
|
||||||
|
|
||||||
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
<!--- Provide a general summary of your changes in the Title above -->
|
|
||||||
|
|
||||||
[linuxserverurl]: https://linuxserver.io
|
|
||||||
[][linuxserverurl]
|
|
||||||
|
|
||||||
|
|
||||||
<!--- Before submitting a pull request please check the following -->
|
|
||||||
|
|
||||||
<!--- That you have made a branch in your fork, we'd rather not merge from your master -->
|
|
||||||
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
|
|
||||||
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
|
|
||||||
<!--- -->
|
|
||||||
|
|
||||||
## Thanks, team linuxserver.io
|
|
||||||
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -41,3 +41,4 @@ $RECYCLE.BIN/
|
||||||
Network Trash Folder
|
Network Trash Folder
|
||||||
Temporary Items
|
Temporary Items
|
||||||
.apdisk
|
.apdisk
|
||||||
|
.jenkins-external
|
||||||
|
|
|
||||||
89
Dockerfile
89
Dockerfile
|
|
@ -1,74 +1,92 @@
|
||||||
FROM alpine:3.9 as rootfs-stage
|
# syntax=docker/dockerfile:1
|
||||||
MAINTAINER sparkyballs,thelamer
|
|
||||||
|
FROM alpine:3.20 AS rootfs-stage
|
||||||
|
|
||||||
# environment
|
# environment
|
||||||
ENV REL=v3.9
|
ENV ROOTFS=/root-out
|
||||||
|
ENV REL=v3.21
|
||||||
ENV ARCH=x86_64
|
ENV ARCH=x86_64
|
||||||
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
|
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
|
||||||
ENV PACKAGES=alpine-baselayout,\
|
ENV PACKAGES=alpine-baselayout,\
|
||||||
alpine-keys,\
|
alpine-keys,\
|
||||||
apk-tools,\
|
apk-tools,\
|
||||||
busybox,\
|
busybox,\
|
||||||
libc-utils,\
|
libc-utils
|
||||||
xz
|
|
||||||
|
|
||||||
# install packages
|
# install packages
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
|
||||||
tzdata \
|
|
||||||
xz
|
xz
|
||||||
|
|
||||||
# fetch builder script from gliderlabs
|
# build rootfs
|
||||||
RUN \
|
RUN \
|
||||||
curl -o \
|
mkdir -p "$ROOTFS/etc/apk" && \
|
||||||
/mkimage-alpine.bash -L \
|
{ \
|
||||||
https://raw.githubusercontent.com/gliderlabs/docker-alpine/master/builder/scripts/mkimage-alpine.bash && \
|
echo "$MIRROR/$REL/main"; \
|
||||||
chmod +x \
|
echo "$MIRROR/$REL/community"; \
|
||||||
/mkimage-alpine.bash && \
|
} > "$ROOTFS/etc/apk/repositories" && \
|
||||||
./mkimage-alpine.bash && \
|
apk --root "$ROOTFS" --no-cache --keys-dir /etc/apk/keys add --arch $ARCH --initdb ${PACKAGES//,/ } && \
|
||||||
mkdir /root-out && \
|
|
||||||
tar xf \
|
|
||||||
/rootfs.tar.xz -C \
|
|
||||||
/root-out && \
|
|
||||||
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
||||||
|
|
||||||
|
# set version for s6 overlay
|
||||||
|
ARG S6_OVERLAY_VERSION="3.2.0.2"
|
||||||
|
ARG S6_OVERLAY_ARCH="x86_64"
|
||||||
|
|
||||||
|
# add s6 overlay
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-noarch.tar.xz
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
|
||||||
|
|
||||||
|
# add s6 optional symlinks
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=rootfs-stage /root-out/ /
|
COPY --from=rootfs-stage /root-out/ /
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
ARG MODS_VERSION="v3"
|
||||||
|
ARG PKG_INST_VERSION="v1"
|
||||||
|
ARG LSIOWN_VERSION="v1"
|
||||||
|
ARG WITHCONTENV_VERSION="v1"
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL MAINTAINER="sparkyballs,TheLamer"
|
LABEL maintainer="TheLamer"
|
||||||
|
|
||||||
# set version for s6 overlay
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
|
||||||
ARG OVERLAY_VERSION="v1.22.0.0"
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.${PKG_INST_VERSION}" "/etc/s6-overlay/s6-rc.d/init-mods-package-install/run"
|
||||||
ARG OVERLAY_ARCH="amd64"
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
|
||||||
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
|
||||||
|
|
||||||
# environment variables
|
# environment variables
|
||||||
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
|
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
|
||||||
HOME="/root" \
|
HOME="/root" \
|
||||||
TERM="xterm"
|
TERM="xterm" \
|
||||||
|
S6_CMD_WAIT_FOR_SERVICES_MAXTIME="0" \
|
||||||
|
S6_VERBOSITY=1 \
|
||||||
|
S6_STAGE2_HOOK=/docker-mods \
|
||||||
|
VIRTUAL_ENV=/lsiopy \
|
||||||
|
PATH="/lsiopy/bin:$PATH"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install build packages ****" && \
|
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
|
||||||
curl \
|
|
||||||
tar && \
|
|
||||||
echo "**** install runtime packages ****" && \
|
echo "**** install runtime packages ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
|
alpine-release \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
catatonit \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
curl \
|
||||||
|
findutils \
|
||||||
|
jq \
|
||||||
|
netcat-openbsd \
|
||||||
|
procps-ng \
|
||||||
shadow \
|
shadow \
|
||||||
tzdata && \
|
tzdata && \
|
||||||
echo "**** add s6 overlay ****" && \
|
|
||||||
curl -o \
|
|
||||||
/tmp/s6-overlay.tar.gz -L \
|
|
||||||
"https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}.tar.gz" && \
|
|
||||||
tar xfz \
|
|
||||||
/tmp/s6-overlay.tar.gz -C / && \
|
|
||||||
echo "**** create abc user and make our folders ****" && \
|
echo "**** create abc user and make our folders ****" && \
|
||||||
groupmod -g 1000 users && \
|
groupmod -g 1000 users && \
|
||||||
useradd -u 911 -U -d /config -s /bin/false abc && \
|
useradd -u 911 -U -d /config -s /bin/false abc && \
|
||||||
|
|
@ -76,10 +94,9 @@ RUN \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults \
|
||||||
|
/lsiopy && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
|
||||||
build-dependencies && \
|
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,74 +1,92 @@
|
||||||
FROM alpine:3.9 as rootfs-stage
|
# syntax=docker/dockerfile:1
|
||||||
MAINTAINER sparkyballs,thelamer
|
|
||||||
|
FROM alpine:3.20 AS rootfs-stage
|
||||||
|
|
||||||
# environment
|
# environment
|
||||||
ENV REL=v3.9
|
ENV ROOTFS=/root-out
|
||||||
|
ENV REL=v3.21
|
||||||
ENV ARCH=aarch64
|
ENV ARCH=aarch64
|
||||||
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
|
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
|
||||||
ENV PACKAGES=alpine-baselayout,\
|
ENV PACKAGES=alpine-baselayout,\
|
||||||
alpine-keys,\
|
alpine-keys,\
|
||||||
apk-tools,\
|
apk-tools,\
|
||||||
busybox,\
|
busybox,\
|
||||||
libc-utils,\
|
libc-utils
|
||||||
xz
|
|
||||||
|
|
||||||
# install packages
|
# install packages
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
|
||||||
tzdata \
|
|
||||||
xz
|
xz
|
||||||
|
|
||||||
# fetch builder script from gliderlabs
|
# build rootfs
|
||||||
RUN \
|
RUN \
|
||||||
curl -o \
|
mkdir -p "$ROOTFS/etc/apk" && \
|
||||||
/mkimage-alpine.bash -L \
|
{ \
|
||||||
https://raw.githubusercontent.com/gliderlabs/docker-alpine/master/builder/scripts/mkimage-alpine.bash && \
|
echo "$MIRROR/$REL/main"; \
|
||||||
chmod +x \
|
echo "$MIRROR/$REL/community"; \
|
||||||
/mkimage-alpine.bash && \
|
} > "$ROOTFS/etc/apk/repositories" && \
|
||||||
./mkimage-alpine.bash && \
|
apk --root "$ROOTFS" --no-cache --keys-dir /etc/apk/keys add --arch $ARCH --initdb ${PACKAGES//,/ } && \
|
||||||
mkdir /root-out && \
|
|
||||||
tar xf \
|
|
||||||
/rootfs.tar.xz -C \
|
|
||||||
/root-out && \
|
|
||||||
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
||||||
|
|
||||||
|
# set version for s6 overlay
|
||||||
|
ARG S6_OVERLAY_VERSION="3.2.0.2"
|
||||||
|
ARG S6_OVERLAY_ARCH="aarch64"
|
||||||
|
|
||||||
|
# add s6 overlay
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-noarch.tar.xz
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
|
||||||
|
|
||||||
|
# add s6 optional symlinks
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
|
||||||
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
|
||||||
|
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=rootfs-stage /root-out/ /
|
COPY --from=rootfs-stage /root-out/ /
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
ARG MODS_VERSION="v3"
|
||||||
|
ARG PKG_INST_VERSION="v1"
|
||||||
|
ARG LSIOWN_VERSION="v1"
|
||||||
|
ARG WITHCONTENV_VERSION="v1"
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL MAINTAINER="sparkyballs,TheLamer"
|
LABEL maintainer="TheLamer"
|
||||||
|
|
||||||
# set version for s6 overlay
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
|
||||||
ARG OVERLAY_VERSION="v1.22.0.0"
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.${PKG_INST_VERSION}" "/etc/s6-overlay/s6-rc.d/init-mods-package-install/run"
|
||||||
ARG OVERLAY_ARCH="aarch64"
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
|
||||||
|
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
|
||||||
|
|
||||||
# environment variables
|
# environment variables
|
||||||
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
|
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
|
||||||
HOME="/root" \
|
HOME="/root" \
|
||||||
TERM="xterm"
|
TERM="xterm" \
|
||||||
|
S6_CMD_WAIT_FOR_SERVICES_MAXTIME="0" \
|
||||||
|
S6_VERBOSITY=1 \
|
||||||
|
S6_STAGE2_HOOK=/docker-mods \
|
||||||
|
VIRTUAL_ENV=/lsiopy \
|
||||||
|
PATH="/lsiopy/bin:$PATH"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install build packages ****" && \
|
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
|
||||||
curl \
|
|
||||||
tar && \
|
|
||||||
echo "**** install runtime packages ****" && \
|
echo "**** install runtime packages ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
|
alpine-release \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
catatonit \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
curl \
|
||||||
|
findutils \
|
||||||
|
jq \
|
||||||
|
netcat-openbsd \
|
||||||
|
procps-ng \
|
||||||
shadow \
|
shadow \
|
||||||
tzdata && \
|
tzdata && \
|
||||||
echo "**** add s6 overlay ****" && \
|
|
||||||
curl -o \
|
|
||||||
/tmp/s6-overlay.tar.gz -L \
|
|
||||||
"https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}.tar.gz" && \
|
|
||||||
tar xfz \
|
|
||||||
/tmp/s6-overlay.tar.gz -C / && \
|
|
||||||
echo "**** create abc user and make our folders ****" && \
|
echo "**** create abc user and make our folders ****" && \
|
||||||
groupmod -g 1000 users && \
|
groupmod -g 1000 users && \
|
||||||
useradd -u 911 -U -d /config -s /bin/false abc && \
|
useradd -u 911 -U -d /config -s /bin/false abc && \
|
||||||
|
|
@ -76,15 +94,9 @@ RUN \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults \
|
||||||
echo "**** add qemu ****" && \
|
/lsiopy && \
|
||||||
curl -o \
|
|
||||||
/usr/bin/qemu-aarch64-static -L \
|
|
||||||
"https://lsio-ci.ams3.digitaloceanspaces.com/qemu-aarch64-static" && \
|
|
||||||
chmod +x /usr/bin/qemu-aarch64-static && \
|
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
|
||||||
build-dependencies && \
|
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,94 +0,0 @@
|
||||||
FROM alpine:3.9 as rootfs-stage
|
|
||||||
MAINTAINER sparkyballs,thelamer
|
|
||||||
|
|
||||||
# environment
|
|
||||||
ENV REL=v3.9
|
|
||||||
ENV ARCH=armv7
|
|
||||||
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
|
|
||||||
ENV PACKAGES=alpine-baselayout,\
|
|
||||||
alpine-keys,\
|
|
||||||
apk-tools,\
|
|
||||||
busybox,\
|
|
||||||
libc-utils,\
|
|
||||||
xz
|
|
||||||
|
|
||||||
# install packages
|
|
||||||
RUN \
|
|
||||||
apk add --no-cache \
|
|
||||||
bash \
|
|
||||||
curl \
|
|
||||||
tzdata \
|
|
||||||
xz
|
|
||||||
|
|
||||||
# fetch builder script from gliderlabs
|
|
||||||
RUN \
|
|
||||||
curl -o \
|
|
||||||
/mkimage-alpine.bash -L \
|
|
||||||
https://raw.githubusercontent.com/gliderlabs/docker-alpine/master/builder/scripts/mkimage-alpine.bash && \
|
|
||||||
chmod +x \
|
|
||||||
/mkimage-alpine.bash && \
|
|
||||||
./mkimage-alpine.bash && \
|
|
||||||
mkdir /root-out && \
|
|
||||||
tar xf \
|
|
||||||
/rootfs.tar.xz -C \
|
|
||||||
/root-out && \
|
|
||||||
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
|
|
||||||
|
|
||||||
# Runtime stage
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=rootfs-stage /root-out/ /
|
|
||||||
ARG BUILD_DATE
|
|
||||||
ARG VERSION
|
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
||||||
LABEL MAINTAINER="sparkyballs,TheLamer"
|
|
||||||
|
|
||||||
# set version for s6 overlay
|
|
||||||
ARG OVERLAY_VERSION="v1.22.0.0"
|
|
||||||
ARG OVERLAY_ARCH="arm"
|
|
||||||
|
|
||||||
# environment variables
|
|
||||||
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
|
|
||||||
HOME="/root" \
|
|
||||||
TERM="xterm"
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
echo "**** install build packages ****" && \
|
|
||||||
apk add --no-cache --virtual=build-dependencies \
|
|
||||||
curl \
|
|
||||||
tar && \
|
|
||||||
echo "**** install runtime packages ****" && \
|
|
||||||
apk add --no-cache \
|
|
||||||
bash \
|
|
||||||
ca-certificates \
|
|
||||||
coreutils \
|
|
||||||
shadow \
|
|
||||||
tzdata && \
|
|
||||||
echo "**** add s6 overlay ****" && \
|
|
||||||
curl -o \
|
|
||||||
/tmp/s6-overlay.tar.gz -L \
|
|
||||||
"https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}.tar.gz" && \
|
|
||||||
tar xfz \
|
|
||||||
/tmp/s6-overlay.tar.gz -C / && \
|
|
||||||
echo "**** create abc user and make our folders ****" && \
|
|
||||||
groupmod -g 1000 users && \
|
|
||||||
useradd -u 911 -U -d /config -s /bin/false abc && \
|
|
||||||
usermod -G users abc && \
|
|
||||||
mkdir -p \
|
|
||||||
/app \
|
|
||||||
/config \
|
|
||||||
/defaults && \
|
|
||||||
echo "**** add qemu ****" && \
|
|
||||||
curl -o \
|
|
||||||
/usr/bin/qemu-arm-static -L \
|
|
||||||
"https://lsio-ci.ams3.digitaloceanspaces.com/qemu-arm-static" && \
|
|
||||||
chmod +x /usr/bin/qemu-arm-static && \
|
|
||||||
echo "**** cleanup ****" && \
|
|
||||||
apk del --purge \
|
|
||||||
build-dependencies && \
|
|
||||||
rm -rf \
|
|
||||||
/tmp/*
|
|
||||||
|
|
||||||
# add local files
|
|
||||||
COPY root/ /
|
|
||||||
|
|
||||||
ENTRYPOINT ["/init"]
|
|
||||||
890
Jenkinsfile
vendored
890
Jenkinsfile
vendored
File diff suppressed because it is too large
Load diff
28
README.md
28
README.md
|
|
@ -1,27 +1 @@
|
||||||
[linuxserverurl]: https://linuxserver.io
|
A custom base image built with [Alpine Linux](https://alpinelinux.org) and [s6-overlay](https://github.com/just-containers/s6-overlay).
|
||||||
[forumurl]: https://forum.linuxserver.io
|
|
||||||
[ircurl]: https://www.linuxserver.io/irc/
|
|
||||||
[appurl]: https://alpinelinux.org
|
|
||||||
|
|
||||||
[][linuxserverurl]
|
|
||||||
|
|
||||||
## Contact information:-
|
|
||||||
|
|
||||||
| Type | Address/Details |
|
|
||||||
| :---: | --- |
|
|
||||||
| Discord | [Discord](https://discord.gg/YWrKVTn) |
|
|
||||||
| IRC | freenode at `#linuxserver.io` more information at:- [IRC][ircurl]
|
|
||||||
| Forum | [Linuserver.io forum][forumurl] |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[](https://microbadger.com/images/lsiobase/alpine "Get your own image badge on microbadger.com")
|
|
||||||
|
|
||||||
[](https://github.com/linuxserver/docker-baseimage-alpine/blob/master/Dockerfile)
|
|
||||||
|
|
||||||
A custom base image built with [Alpine linux][appurl] and [S6 overlay](https://github.com/just-containers/s6-overlay)..
|
|
||||||
|
|
||||||
The following line is only in this repo for loop testing:
|
|
||||||
|
|
||||||
- { date: "01.01.50:", desc: "I am the release message for this internal repo." }
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
project_name: docker-baseimage-alpine
|
project_name: docker-baseimage-alpine
|
||||||
external_type: os
|
external_type: os
|
||||||
release_type: stable
|
release_type: stable
|
||||||
release_tag: 3.9
|
release_tag: "3.21"
|
||||||
ls_branch: master
|
ls_branch: master
|
||||||
|
image_sbom: true
|
||||||
|
image_provenance: true
|
||||||
repo_vars:
|
repo_vars:
|
||||||
- BUILD_VERSION_ARG = 'OS'
|
- BUILD_VERSION_ARG = 'OS'
|
||||||
- LS_USER = 'linuxserver'
|
- LS_USER = 'linuxserver'
|
||||||
|
|
@ -21,6 +23,6 @@ repo_vars:
|
||||||
- CI_PORT='80'
|
- CI_PORT='80'
|
||||||
- CI_SSL='true'
|
- CI_SSL='true'
|
||||||
- CI_DELAY='30'
|
- CI_DELAY='30'
|
||||||
- CI_DOCKERENV='TZ=US/Pacific'
|
- CI_DOCKERENV='LSIO_FIRST_PARTY=true'
|
||||||
- CI_AUTH='user:password'
|
- CI_AUTH=''
|
||||||
- CI_WEBPATH=''
|
- CI_WEBPATH=''
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,51 @@
|
||||||
alpine-baselayout-3.1.0-r3
|
NAME VERSION TYPE
|
||||||
alpine-keys-2.1-r1
|
acl-libs 2.3.2-r1 apk
|
||||||
apk-tools-2.10.3-r1
|
alpine-baselayout 3.6.8-r1 apk
|
||||||
bash-4.4.19-r1
|
alpine-baselayout-data 3.6.8-r1 apk
|
||||||
busybox-1.29.3-r10
|
alpine-keys 2.5-r0 apk
|
||||||
ca-certificates-20190108-r0
|
alpine-release 3.21.3-r0 apk
|
||||||
ca-certificates-cacert-20190108-r0
|
apk-tools 2.14.6-r3 apk
|
||||||
coreutils-8.30-r0
|
bash 5.2.37-r0 apk
|
||||||
libacl-2.2.52-r5
|
brotli-libs 1.1.0-r2 apk
|
||||||
libattr-2.4.47-r7
|
busybox 1.37.0-r12 apk
|
||||||
libc-utils-0.7.1-r0
|
busybox-binsh 1.37.0-r12 apk
|
||||||
libcrypto1.1-1.1.1b-r1
|
c-ares 1.34.5-r0 apk
|
||||||
libssl1.1-1.1.1b-r1
|
ca-certificates 20241121-r1 apk
|
||||||
libtls-standalone-2.7.4-r6
|
ca-certificates-bundle 20241121-r1 apk
|
||||||
linux-pam-1.3.0-r0
|
catatonit 0.2.0-r0 apk
|
||||||
musl-1.1.20-r4
|
coreutils 9.5-r2 apk
|
||||||
musl-utils-1.1.20-r4
|
coreutils-env 9.5-r2 apk
|
||||||
ncurses-libs-6.1_p20190105-r0
|
coreutils-fmt 9.5-r2 apk
|
||||||
ncurses-terminfo-6.1_p20190105-r0
|
coreutils-sha512sum 9.5-r2 apk
|
||||||
ncurses-terminfo-base-6.1_p20190105-r0
|
curl 8.12.1-r1 apk
|
||||||
readline-7.0.003-r1
|
findutils 4.10.0-r0 apk
|
||||||
scanelf-1.2.3-r0
|
jq 1.7.1-r0 apk
|
||||||
shadow-4.5-r2
|
libattr 2.5.2-r2 apk
|
||||||
ssl_client-1.29.3-r10
|
libbsd 0.12.2-r0 apk
|
||||||
tzdata-2019a-r0
|
libcrypto3 3.3.3-r0 apk
|
||||||
xz-5.2.4-r0
|
libcurl 8.12.1-r1 apk
|
||||||
xz-libs-5.2.4-r0
|
libidn2 2.3.7-r0 apk
|
||||||
zlib-1.2.11-r1
|
libintl 0.22.5-r0 apk
|
||||||
|
libmd 1.1.0-r0 apk
|
||||||
|
libncursesw 6.5_p20241006-r3 apk
|
||||||
|
libproc2 4.0.4-r2 apk
|
||||||
|
libpsl 0.21.5-r3 apk
|
||||||
|
libssl3 3.3.3-r0 apk
|
||||||
|
libunistring 1.2-r0 apk
|
||||||
|
linux-pam 1.6.1-r1 apk
|
||||||
|
musl 1.2.5-r9 apk
|
||||||
|
musl-utils 1.2.5-r9 apk
|
||||||
|
ncurses-terminfo-base 6.5_p20241006-r3 apk
|
||||||
|
netcat-openbsd 1.226.1.1-r0 apk
|
||||||
|
nghttp2-libs 1.64.0-r0 apk
|
||||||
|
oniguruma 6.9.9-r0 apk
|
||||||
|
procps-ng 4.0.4-r2 apk
|
||||||
|
readline 8.2.13-r0 apk
|
||||||
|
scanelf 1.3.8-r1 apk
|
||||||
|
shadow 4.16.0-r1 apk
|
||||||
|
skalibs-libs 2.14.3.0-r0 apk
|
||||||
|
ssl_client 1.37.0-r12 apk
|
||||||
|
tzdata 2025b-r0 apk
|
||||||
|
utmps-libs 0.1.2.3-r2 apk
|
||||||
|
zlib 1.3.1-r2 apk
|
||||||
|
zstd-libs 1.5.6-r2 apk
|
||||||
|
|
|
||||||
|
|
@ -4,29 +4,22 @@
|
||||||
project_name: baseimage-alpine
|
project_name: baseimage-alpine
|
||||||
full_custom_readme: |
|
full_custom_readme: |
|
||||||
{% raw -%}
|
{% raw -%}
|
||||||
[linuxserverurl]: https://linuxserver.io
|
[](https://linuxserver.io)
|
||||||
[forumurl]: https://forum.linuxserver.io
|
|
||||||
[ircurl]: https://www.linuxserver.io/irc/
|
|
||||||
[appurl]: https://alpinelinux.org
|
|
||||||
|
|
||||||
[][linuxserverurl]
|
|
||||||
|
|
||||||
## Contact information:-
|
## Contact information:-
|
||||||
|
|
||||||
| Type | Address/Details |
|
| Type | Address/Details |
|
||||||
| :---: | --- |
|
| :---: | --- |
|
||||||
| Discord | [Discord](https://discord.gg/YWrKVTn) |
|
| Discord | [Discord](https://linuxserver.io/discord) |
|
||||||
| IRC | freenode at `#linuxserver.io` more information at:- [IRC][ircurl]
|
| IRC | `#linuxserver.io` on irc.libera.chat |
|
||||||
| Forum | [Linuserver.io forum][forumurl] |
|
| Forum | [Discourse](https://discourse.linuxserver.io/) |
|
||||||
|
|
||||||
|
A custom base image built with [Alpine Linux](https://alpinelinux.org) and [s6-overlay](https://github.com/just-containers/s6-overlay).
|
||||||
|
|
||||||
|
|
||||||
[](https://microbadger.com/images/lsiobase/alpine "Get your own image badge on microbadger.com")
|
- Support for using our base images in your own projects is provided on a Reasonable Endeavours basis, please see our [Support Policy](https://www.linuxserver.io/supportpolicy) for details.
|
||||||
|
- There is no `latest` tag for any of our base images, by design. We often make breaking changes between versions, and we don't publish release notes like we do for the downstream images.
|
||||||
[](https://github.com/linuxserver/docker-baseimage-alpine/blob/master/Dockerfile)
|
- If you're intending to distribute an image using one of our bases, please read our [docs on container branding](https://docs.linuxserver.io/general/container-branding/) first.
|
||||||
|
- Alpine releases are supported for 2 years, after which we will stop building new base images for that version.
|
||||||
A custom base image built with [Alpine linux][appurl] and [S6 overlay](https://github.com/just-containers/s6-overlay)..
|
|
||||||
|
|
||||||
The following line is only in this repo for loop testing:
|
The following line is only in this repo for loop testing:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
# Exit if mods is not set
|
|
||||||
if [ -z ${DOCKER_MODS+x} ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for curl
|
|
||||||
if [ ! -f /usr/bin/curl ]; then
|
|
||||||
echo "[mod-init] Curl was not found on this system for Docker mods installing"
|
|
||||||
if [ -f /usr/bin/apt ]; then
|
|
||||||
## Ubuntu
|
|
||||||
apt-get update
|
|
||||||
apt-get install --no-install-recommends -y \
|
|
||||||
curl
|
|
||||||
elif [ -f /sbin/apk ]; then
|
|
||||||
# Alpine
|
|
||||||
apk add --no-cache \
|
|
||||||
curl
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Main run logic
|
|
||||||
echo "[mod-init] Attempting to run Docker Modification Logic"
|
|
||||||
IFS='|'
|
|
||||||
DOCKER_MODS=(${DOCKER_MODS})
|
|
||||||
for DOCKER_MOD in "${DOCKER_MODS[@]}"; do
|
|
||||||
FILENAME=$(echo ${DOCKER_MOD} | sed 's/[:\/]/./g')
|
|
||||||
ENDPOINT=$(echo ${DOCKER_MOD} | awk -F: '{print $1}')
|
|
||||||
USERNAME=$(echo ${ENDPOINT} | awk -F/ '{print $1}')
|
|
||||||
TAG=$(echo ${DOCKER_MOD} | awk -F: '{print $2}')
|
|
||||||
# Kill off modification logic if any of the usernames are banned
|
|
||||||
BLACKLIST=$(curl -s https://raw.githubusercontent.com/linuxserver/docker-mods/master/blacklist.txt)
|
|
||||||
IFS=$'\n'
|
|
||||||
BLACKLIST=(${BLACKLIST})
|
|
||||||
for BANNED in "${BLACKLIST[@]}"; do
|
|
||||||
if [ "${BANNED}" == "${USERNAME,,}" ]; then
|
|
||||||
if [ -z ${RUN_BANNED_MODS+x} ]; then
|
|
||||||
echo "[mod-init] ${DOCKER_MOD} is banned from use due to reported abuse aborting mod logic"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "[mod-init] You have chosen to run banned mods ${DOCKER_MOD} will be applied"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "[mod-init] Applying ${DOCKER_MOD} files to container"
|
|
||||||
# Get Dockerhub token for api operations
|
|
||||||
TOKEN=\
|
|
||||||
"$(curl \
|
|
||||||
--silent \
|
|
||||||
--header 'GET' \
|
|
||||||
"https://auth.docker.io/token?service=registry.docker.io&scope=repository:${ENDPOINT}:pull" \
|
|
||||||
| awk -F'"' '{print $4}' \
|
|
||||||
)"
|
|
||||||
# Determine first and only layer of image
|
|
||||||
SHALAYER=\
|
|
||||||
"$(curl \
|
|
||||||
--silent \
|
|
||||||
--location \
|
|
||||||
--request GET \
|
|
||||||
--header "Authorization: Bearer ${TOKEN}" \
|
|
||||||
https://registry-1.docker.io/v2/${ENDPOINT}/manifests/${TAG} \
|
|
||||||
|grep -m1 "blobSum" \
|
|
||||||
| awk -F'"' '{print $4}' \
|
|
||||||
)"
|
|
||||||
# Check if we have allready applied this layer
|
|
||||||
if [ -f "/${FILENAME}" ] && [ "${SHALAYER}" == "$(cat /${FILENAME})" ]; then
|
|
||||||
echo "[mod-init] ${DOCKER_MOD} at ${SHALAYER} has been previously applied skipping"
|
|
||||||
else
|
|
||||||
# Download and extract layer to /
|
|
||||||
curl \
|
|
||||||
--silent \
|
|
||||||
--location \
|
|
||||||
--request GET \
|
|
||||||
--header "Authorization: Bearer ${TOKEN}" \
|
|
||||||
"https://registry-1.docker.io/v2/${ENDPOINT}/blobs/${SHALAYER}" \
|
|
||||||
| tar xz -C /
|
|
||||||
echo ${SHALAYER} > "/${FILENAME}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
PUID=${PUID:-911}
|
|
||||||
PGID=${PGID:-911}
|
|
||||||
|
|
||||||
groupmod -o -g "$PGID" abc
|
|
||||||
usermod -o -u "$PUID" abc
|
|
||||||
|
|
||||||
echo '
|
|
||||||
-------------------------------------
|
|
||||||
_ ()
|
|
||||||
| | ___ _ __
|
|
||||||
| | / __| | | / \
|
|
||||||
| | \__ \ | | | () |
|
|
||||||
|_| |___/ |_| \__/
|
|
||||||
|
|
||||||
|
|
||||||
Brought to you by linuxserver.io
|
|
||||||
We gratefully accept donations at:
|
|
||||||
https://www.linuxserver.io/donate/
|
|
||||||
-------------------------------------
|
|
||||||
GID/UID
|
|
||||||
-------------------------------------'
|
|
||||||
echo "
|
|
||||||
User uid: $(id -u abc)
|
|
||||||
User gid: $(id -g abc)
|
|
||||||
-------------------------------------
|
|
||||||
"
|
|
||||||
chown abc:abc /app
|
|
||||||
chown abc:abc /config
|
|
||||||
chown abc:abc /defaults
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
# Directories
|
|
||||||
SCRIPTS_DIR="/config/custom-cont-init.d"
|
|
||||||
SERVICES_DIR="/config/custom-services.d"
|
|
||||||
|
|
||||||
# Remove all existing custom services before continuing to ensure
|
|
||||||
# we aren't running anything the user may have removed
|
|
||||||
if [ -n "$(/bin/ls -A /etc/services.d/custom-service-* 2>/dev/null)" ]; then
|
|
||||||
echo "[custom-init] removing existing custom services..."
|
|
||||||
rm -rf /etc/services.d/custom-service-*
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure custom init directory exists and has files in it
|
|
||||||
if ([ -e "${SCRIPTS_DIR}" ] && \
|
|
||||||
[ -n "$(/bin/ls -A ${SCRIPTS_DIR} 2>/dev/null)" ]) || \
|
|
||||||
([ -e "${SERVICES_DIR}" ] && \
|
|
||||||
[ -n "$(/bin/ls -A ${SERVICES_DIR} 2>/dev/null)" ]); then
|
|
||||||
if [ -n "$(/bin/ls -A ${SCRIPTS_DIR} 2>/dev/null)" ]; then
|
|
||||||
echo "[custom-init] files found in ${SCRIPTS_DIR} executing"
|
|
||||||
for SCRIPT in ${SCRIPTS_DIR}/*; do
|
|
||||||
NAME="$(basename "${SCRIPT}")"
|
|
||||||
if [ -f "${SCRIPT}" ]; then
|
|
||||||
echo "[custom-init] ${NAME}: executing..."
|
|
||||||
/bin/bash ${SCRIPT}
|
|
||||||
echo "[custom-init] ${NAME}: exited $?"
|
|
||||||
elif [ ! -f "${SCRIPT}" ]; then
|
|
||||||
echo "[custom-init] ${NAME}: is not a file"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if [ -n "$(/bin/ls -A ${SERVICES_DIR} 2>/dev/null)" ]; then
|
|
||||||
echo "[custom-init] service files found in ${SERVICES_DIR}"
|
|
||||||
for SERVICE in ${SERVICES_DIR}/*; do
|
|
||||||
NAME="$(basename "${SERVICE}")"
|
|
||||||
if [ -f "${SERVICE}" ]; then
|
|
||||||
echo "[custom-init] ${NAME}: service detected, copying..."
|
|
||||||
mkdir -p /etc/services.d/custom-service-${NAME}/
|
|
||||||
cp ${SERVICE} /etc/services.d/custom-service-${NAME}/run
|
|
||||||
chmod +x /etc/services.d/custom-service-${NAME}/run
|
|
||||||
echo "[custom-init] ${NAME}: copied"
|
|
||||||
elif [ ! -f "${SERVICE}" ]; then
|
|
||||||
echo "[custom-init] ${NAME}: is not a file"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "[custom-init] no custom files found exiting..."
|
|
||||||
fi
|
|
||||||
1
root/etc/s6-overlay/s6-rc.d/ci-service-check/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/ci-service-check/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/ci-service-check/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/ci-service-check/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
echo "[ls.io-init] done."
|
||||||
3
root/etc/s6-overlay/s6-rc.d/init-adduser/branding
Normal file
3
root/etc/s6-overlay/s6-rc.d/init-adduser/branding
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
───────
|
||||||
|
meatbag
|
||||||
|
───────
|
||||||
57
root/etc/s6-overlay/s6-rc.d/init-adduser/run
Executable file
57
root/etc/s6-overlay/s6-rc.d/init-adduser/run
Executable file
|
|
@ -0,0 +1,57 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
PUID=${PUID:-911}
|
||||||
|
PGID=${PGID:-911}
|
||||||
|
|
||||||
|
if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
|
USERHOME=$(grep abc /etc/passwd | cut -d ":" -f6)
|
||||||
|
usermod -d "/root" abc
|
||||||
|
|
||||||
|
groupmod -o -g "${PGID}" abc
|
||||||
|
usermod -o -u "${PUID}" abc
|
||||||
|
|
||||||
|
usermod -d "${USERHOME}" abc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if { [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; } || [[ ! ${LSIO_FIRST_PARTY} = "true" ]]; then
|
||||||
|
cat /etc/s6-overlay/s6-rc.d/init-adduser/branding
|
||||||
|
else
|
||||||
|
cat /run/branding
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f /donate.txt ]]; then
|
||||||
|
echo '
|
||||||
|
To support the app dev(s) visit:'
|
||||||
|
cat /donate.txt
|
||||||
|
fi
|
||||||
|
echo '
|
||||||
|
To support LSIO projects visit:
|
||||||
|
https://www.linuxserver.io/donate/
|
||||||
|
|
||||||
|
───────────────────────────────────────
|
||||||
|
GID/UID
|
||||||
|
───────────────────────────────────────'
|
||||||
|
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
|
echo "
|
||||||
|
User UID: $(id -u abc)
|
||||||
|
User GID: $(id -g abc)
|
||||||
|
───────────────────────────────────────"
|
||||||
|
else
|
||||||
|
echo "
|
||||||
|
User UID: $(stat /run -c %u)
|
||||||
|
User GID: $(stat /run -c %g)
|
||||||
|
───────────────────────────────────────"
|
||||||
|
fi
|
||||||
|
if [[ -f /build_version ]]; then
|
||||||
|
cat /build_version
|
||||||
|
echo '
|
||||||
|
───────────────────────────────────────
|
||||||
|
'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
|
lsiown abc:abc /app
|
||||||
|
lsiown abc:abc /config
|
||||||
|
lsiown abc:abc /defaults
|
||||||
|
fi
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-adduser/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-adduser/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-adduser/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-adduser/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/init-adduser/run
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-config-end/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-config-end/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-config-end/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-config-end/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# This file doesn't do anything, it's just the end of the downstream image init process
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-config/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-config/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# This file doesn't do anything, it's just the start of the downstream image init process
|
||||||
33
root/etc/s6-overlay/s6-rc.d/init-crontab-config/run
Executable file
33
root/etc/s6-overlay/s6-rc.d/init-crontab-config/run
Executable file
|
|
@ -0,0 +1,33 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
for cron_user in abc root; do
|
||||||
|
if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
|
if [[ -f "/etc/crontabs/${cron_user}" ]]; then
|
||||||
|
lsiown "${cron_user}":"${cron_user}" "/etc/crontabs/${cron_user}"
|
||||||
|
crontab -u "${cron_user}" "/etc/crontabs/${cron_user}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f "/defaults/crontabs/${cron_user}" ]]; then
|
||||||
|
# make folders
|
||||||
|
mkdir -p \
|
||||||
|
/config/crontabs
|
||||||
|
|
||||||
|
# if crontabs do not exist in config
|
||||||
|
if [[ ! -f "/config/crontabs/${cron_user}" ]]; then
|
||||||
|
# copy crontab from system
|
||||||
|
if crontab -l -u "${cron_user}" >/dev/null 2>&1; then
|
||||||
|
crontab -l -u "${cron_user}" >"/config/crontabs/${cron_user}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if crontabs still do not exist in config (were not copied from system)
|
||||||
|
# copy crontab from image defaults (using -n, do not overwrite an existing file)
|
||||||
|
cp -n "/defaults/crontabs/${cron_user}" /config/crontabs/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set permissions and import user crontabs
|
||||||
|
lsiown "${cron_user}":"${cron_user}" "/config/crontabs/${cron_user}"
|
||||||
|
crontab -u "${cron_user}" "/config/crontabs/${cron_user}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-crontab-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-crontab-config/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-crontab-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-crontab-config/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/init-crontab-config/run
|
||||||
22
root/etc/s6-overlay/s6-rc.d/init-custom-files/run
Executable file
22
root/etc/s6-overlay/s6-rc.d/init-custom-files/run
Executable file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SCRIPTS_DIR="/custom-cont-init.d"
|
||||||
|
|
||||||
|
# Make sure custom init directory exists and has files in it
|
||||||
|
if [[ -e "${SCRIPTS_DIR}" ]] && [[ -n "$(/bin/ls -A ${SCRIPTS_DIR} 2>/dev/null)" ]]; then
|
||||||
|
echo "[custom-init] Files found, executing"
|
||||||
|
for SCRIPT in "${SCRIPTS_DIR}"/*; do
|
||||||
|
NAME="$(basename "${SCRIPT}")"
|
||||||
|
if [[ -f "${SCRIPT}" ]]; then
|
||||||
|
echo "[custom-init] ${NAME}: executing..."
|
||||||
|
/bin/bash "${SCRIPT}"
|
||||||
|
echo "[custom-init] ${NAME}: exited $?"
|
||||||
|
elif [[ ! -f "${SCRIPT}" ]]; then
|
||||||
|
echo "[custom-init] ${NAME}: is not a file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "[custom-init] No custom files found, skipping..."
|
||||||
|
fi
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-custom-files/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-custom-files/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-custom-files/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-custom-files/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/init-custom-files/run
|
||||||
19
root/etc/s6-overlay/s6-rc.d/init-envfile/run
Executable file
19
root/etc/s6-overlay/s6-rc.d/init-envfile/run
Executable file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
if find /run/s6/container_environment/FILE__* -maxdepth 1 > /dev/null 2>&1; then
|
||||||
|
for FILENAME in /run/s6/container_environment/FILE__*; do
|
||||||
|
SECRETFILE=$(cat "${FILENAME}")
|
||||||
|
if [[ -f ${SECRETFILE} ]]; then
|
||||||
|
FILESTRIP=${FILENAME//FILE__/}
|
||||||
|
if [[ $(tail -n1 "${SECRETFILE}" | wc -l) != 0 ]]; then
|
||||||
|
echo "[env-init] Your secret: ${FILENAME##*/}"
|
||||||
|
echo " contains a trailing newline and may not work as expected"
|
||||||
|
fi
|
||||||
|
cat "${SECRETFILE}" >"${FILESTRIP}"
|
||||||
|
echo "[env-init] ${FILESTRIP##*/} set from ${FILENAME##*/}"
|
||||||
|
else
|
||||||
|
echo "[env-init] cannot find secret in ${FILENAME##*/}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-envfile/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-envfile/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-envfile/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-envfile/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/init-envfile/run
|
||||||
32
root/etc/s6-overlay/s6-rc.d/init-migrations/run
Executable file
32
root/etc/s6-overlay/s6-rc.d/init-migrations/run
Executable file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
MIGRATIONS_DIR="/migrations"
|
||||||
|
MIGRATIONS_HISTORY="/config/.migrations"
|
||||||
|
|
||||||
|
echo "[migrations] started"
|
||||||
|
|
||||||
|
if [[ ! -d ${MIGRATIONS_DIR} ]]; then
|
||||||
|
echo "[migrations] no migrations found"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
for MIGRATION in $(find ${MIGRATIONS_DIR}/* | sort -n); do
|
||||||
|
NAME="$(basename "${MIGRATION}")"
|
||||||
|
if [[ -f ${MIGRATIONS_HISTORY} ]] && grep -Fxq "${NAME}" ${MIGRATIONS_HISTORY}; then
|
||||||
|
echo "[migrations] ${NAME}: skipped"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
echo "[migrations] ${NAME}: executing..."
|
||||||
|
# Execute migration script in a subshell to prevent it from modifying the current environment
|
||||||
|
("${MIGRATION}")
|
||||||
|
EXIT_CODE=$?
|
||||||
|
if [[ ${EXIT_CODE} -ne 0 ]]; then
|
||||||
|
echo "[migrations] ${NAME}: failed with exit code ${EXIT_CODE}, contact support"
|
||||||
|
exit "${EXIT_CODE}"
|
||||||
|
fi
|
||||||
|
echo "${NAME}" >>${MIGRATIONS_HISTORY}
|
||||||
|
echo "[migrations] ${NAME}: succeeded"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "[migrations] done"
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-migrations/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-migrations/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-migrations/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-migrations/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/init-migrations/run
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-mods-end/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-mods-end/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-mods-end/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-mods-end/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# This file doesn't do anything, it's just the end of the mod init process
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-mods-package-install/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-mods-package-install/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/init-mods-package-install/run
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-mods/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-mods/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-mods/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-mods/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# This file doesn't do anything, it's just the start of the mod init process
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-os-end/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-os-end/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-os-end/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-os-end/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# This file doesn't do anything, it's just the end of the mod init process
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-services/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-services/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
||||||
1
root/etc/s6-overlay/s6-rc.d/init-services/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-services/up
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# This file doesn't do anything, it just signals that services can start
|
||||||
15
root/etc/s6-overlay/s6-rc.d/svc-cron/run
Executable file
15
root/etc/s6-overlay/s6-rc.d/svc-cron/run
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
if builtin command -v crontab >/dev/null 2>&1 && [[ -n "$(crontab -l -u abc 2>/dev/null || true)" || -n "$(crontab -l -u root 2>/dev/null || true)" ]]; then
|
||||||
|
if builtin command -v busybox >/dev/null 2>&1 && [[ $(busybox || true) =~ [[:space:]](crond)([,]|$) ]]; then
|
||||||
|
exec busybox crond -f -S -l 5
|
||||||
|
elif [[ -f /usr/bin/apt ]] && [[ -f /usr/sbin/cron ]]; then
|
||||||
|
exec /usr/sbin/cron -f -L 5
|
||||||
|
else
|
||||||
|
echo "**** cron not found ****"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
1
root/etc/s6-overlay/s6-rc.d/svc-cron/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-cron/type
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
||||||
|
|
@ -1,226 +0,0 @@
|
||||||
#!/bin/execlineb -S0
|
|
||||||
|
|
||||||
# This file is executed (not as process 1!) as soon as s6-svscan
|
|
||||||
# starts, with the original stdin/out/err, but NOT the original
|
|
||||||
# environment.
|
|
||||||
# Purpose of this file: to perform all the one-time initialization tasks.
|
|
||||||
|
|
||||||
# Merge environments from our custom stage into current context
|
|
||||||
s6-envdir -I /var/run/s6/env-stage2
|
|
||||||
|
|
||||||
# This env decides what to do if stage2 fails
|
|
||||||
backtick -D 0 -n S6_BEHAVIOUR_IF_STAGE2_FAILS { printcontenv S6_BEHAVIOUR_IF_STAGE2_FAILS }
|
|
||||||
importas -u S6_BEHAVIOUR_IF_STAGE2_FAILS S6_BEHAVIOUR_IF_STAGE2_FAILS
|
|
||||||
|
|
||||||
# This env determines whether user provided files in /etc should be linked
|
|
||||||
# or copied into /var/run/s6
|
|
||||||
backtick -D 0 -n S6_READ_ONLY_ROOT { printcontenv S6_READ_ONLY_ROOT }
|
|
||||||
importas -u S6_READ_ONLY_ROOT S6_READ_ONLY_ROOT
|
|
||||||
|
|
||||||
# Docker Mods run logic
|
|
||||||
foreground
|
|
||||||
{
|
|
||||||
/docker-mods
|
|
||||||
}
|
|
||||||
|
|
||||||
foreground
|
|
||||||
{
|
|
||||||
if
|
|
||||||
{
|
|
||||||
/etc/s6/init/init-stage2-redirfd
|
|
||||||
foreground
|
|
||||||
{
|
|
||||||
##
|
|
||||||
## copy user provided files to /var/run/s6/etc, depending on S6_RUNTIME_PROFILE env,
|
|
||||||
## /etc (if not defined) or /etc/cont-profile.d/${S6_RUNTIME_PROFILE} will be used
|
|
||||||
## as copying source.
|
|
||||||
##
|
|
||||||
|
|
||||||
if
|
|
||||||
{
|
|
||||||
if { s6-echo -n -- "[s6-init] making user provided files available at /var/run/s6/etc..." }
|
|
||||||
foreground
|
|
||||||
{
|
|
||||||
backtick -n S6_RUNTIME_PROFILE { printcontenv S6_RUNTIME_PROFILE }
|
|
||||||
importas -u S6_RUNTIME_PROFILE S6_RUNTIME_PROFILE
|
|
||||||
backtick -n S6_RUNTIME_PROFILE_SRC {
|
|
||||||
ifte { s6-echo "/etc/cont-profile.d/${S6_RUNTIME_PROFILE}" } { s6-echo "/etc" }
|
|
||||||
s6-test -n ${S6_RUNTIME_PROFILE}
|
|
||||||
}
|
|
||||||
importas -u S6_RUNTIME_PROFILE_SRC S6_RUNTIME_PROFILE_SRC
|
|
||||||
if { s6-rmrf /var/run/s6/etc }
|
|
||||||
if { s6-mkdir -pm 0755 /var/run/s6/etc }
|
|
||||||
forx i { "fix-attrs.d" "cont-init.d" "cont-finish.d" "services.d" }
|
|
||||||
importas -u i i
|
|
||||||
if { s6-test -d ${S6_RUNTIME_PROFILE_SRC}/${i} }
|
|
||||||
# although s6-hiercopy is prefered, and until it doesn't support 'follow symlinks'
|
|
||||||
# option, there is no clean way to allow symlinks between user provided runcoms.
|
|
||||||
ifelse { s6-test ${S6_READ_ONLY_ROOT} -eq 0 } {
|
|
||||||
s6-ln -s ${S6_RUNTIME_PROFILE_SRC}/${i} /var/run/s6/etc/${i}
|
|
||||||
}
|
|
||||||
if { s6-hiercopy ${S6_RUNTIME_PROFILE_SRC}/${i} /var/run/s6/etc/${i} }
|
|
||||||
}
|
|
||||||
importas -u ? ?
|
|
||||||
if { s6-echo -- "exited ${?}." }
|
|
||||||
ifelse { s6-test ${S6_BEHAVIOUR_IF_STAGE2_FAILS} -eq 0 } { exit 0 }
|
|
||||||
exit ${?}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
##
|
|
||||||
## fix-attrs: ensure user-provided files have correct ownership & perms
|
|
||||||
##
|
|
||||||
|
|
||||||
if
|
|
||||||
{
|
|
||||||
if { s6-echo -n -- "[s6-init] ensuring user provided files have correct perms..." }
|
|
||||||
foreground { redirfd -r 0 /etc/s6/init/init-stage2-fixattrs.txt fix-attrs }
|
|
||||||
importas -u ? ?
|
|
||||||
if { s6-echo -- "exited ${?}." }
|
|
||||||
ifelse { s6-test ${S6_BEHAVIOUR_IF_STAGE2_FAILS} -eq 0 } { exit 0 }
|
|
||||||
exit ${?}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
##
|
|
||||||
## fix-attrs.d: apply user-provided ownership & permission fixes
|
|
||||||
##
|
|
||||||
|
|
||||||
if
|
|
||||||
{
|
|
||||||
if -t { s6-test -d /var/run/s6/etc/fix-attrs.d }
|
|
||||||
if { s6-echo "[fix-attrs.d] applying ownership & permissions fixes..." }
|
|
||||||
if
|
|
||||||
{
|
|
||||||
pipeline { s6-ls -0 -- /var/run/s6/etc/fix-attrs.d }
|
|
||||||
pipeline { s6-sort -0 -- }
|
|
||||||
forstdin -0 -- i
|
|
||||||
importas -u i i
|
|
||||||
if { s6-echo -- "[fix-attrs.d] ${i}: applying... " }
|
|
||||||
foreground { redirfd -r 0 /var/run/s6/etc/fix-attrs.d/${i} fix-attrs }
|
|
||||||
importas -u ? ?
|
|
||||||
if { s6-echo -- "[fix-attrs.d] ${i}: exited ${?}." }
|
|
||||||
ifelse { s6-test ${S6_BEHAVIOUR_IF_STAGE2_FAILS} -eq 0 } { exit 0 }
|
|
||||||
exit ${?}
|
|
||||||
}
|
|
||||||
if { s6-echo -- "[fix-attrs.d] done." }
|
|
||||||
}
|
|
||||||
|
|
||||||
##
|
|
||||||
## cont-init.d: one-time init scripts
|
|
||||||
##
|
|
||||||
|
|
||||||
if
|
|
||||||
{
|
|
||||||
if -t { s6-test -d /var/run/s6/etc/cont-init.d }
|
|
||||||
if { s6-echo "[cont-init.d] executing container initialization scripts..." }
|
|
||||||
if
|
|
||||||
{
|
|
||||||
pipeline { s6-ls -0 -- /var/run/s6/etc/cont-init.d }
|
|
||||||
pipeline { s6-sort -0 -- }
|
|
||||||
forstdin -o 0 -0 -- i
|
|
||||||
importas -u i i
|
|
||||||
if { s6-echo -- "[cont-init.d] ${i}: executing... " }
|
|
||||||
foreground { /var/run/s6/etc/cont-init.d/${i} }
|
|
||||||
importas -u ? ?
|
|
||||||
if { s6-echo -- "[cont-init.d] ${i}: exited ${?}." }
|
|
||||||
ifelse { s6-test ${S6_BEHAVIOUR_IF_STAGE2_FAILS} -eq 0 } { exit 0 }
|
|
||||||
exit ${?}
|
|
||||||
}
|
|
||||||
if { s6-echo -- "[cont-init.d] done." }
|
|
||||||
}
|
|
||||||
|
|
||||||
##
|
|
||||||
## services.d: long-lived processes to be supervised
|
|
||||||
##
|
|
||||||
|
|
||||||
if
|
|
||||||
{
|
|
||||||
if -t { s6-test -d /var/run/s6/etc/services.d }
|
|
||||||
if { s6-echo "[services.d] starting services" }
|
|
||||||
if
|
|
||||||
{
|
|
||||||
pipeline { s6-ls -0 -- /var/run/s6/etc/services.d }
|
|
||||||
forstdin -0 -p -- i
|
|
||||||
importas -u i i
|
|
||||||
if { s6-test -d /var/run/s6/etc/services.d/${i} }
|
|
||||||
s6-hiercopy /var/run/s6/etc/services.d/${i} /var/run/s6/services/${i}
|
|
||||||
}
|
|
||||||
if { s6-svscanctl -a /var/run/s6/services }
|
|
||||||
if
|
|
||||||
{
|
|
||||||
# This envs decide if CMD should wait until services are up
|
|
||||||
backtick -D 0 -n S6_CMD_WAIT_FOR_SERVICES { printcontenv S6_CMD_WAIT_FOR_SERVICES }
|
|
||||||
importas -u S6_CMD_WAIT_FOR_SERVICES S6_CMD_WAIT_FOR_SERVICES
|
|
||||||
backtick -D 5000 -n S6_CMD_WAIT_FOR_SERVICES_MAXTIME { printcontenv S6_CMD_WAIT_FOR_SERVICES_MAXTIME }
|
|
||||||
importas -u S6_CMD_WAIT_FOR_SERVICES_MAXTIME S6_CMD_WAIT_FOR_SERVICES_MAXTIME
|
|
||||||
|
|
||||||
if -t { if { s6-test ${S6_CMD_WAIT_FOR_SERVICES} -ne 0 } s6-test $# -ne 0 }
|
|
||||||
s6-maximumtime -t ${S6_CMD_WAIT_FOR_SERVICES_MAXTIME}
|
|
||||||
pipeline { s6-ls -0 -- /var/run/s6/etc/services.d }
|
|
||||||
forstdin -0 -o 0 -- i
|
|
||||||
importas -u i i
|
|
||||||
ifelse { s6-test -f /var/run/s6/services/${i}/down } { exit 0 }
|
|
||||||
ifelse { s6-test -f /var/run/s6/services/${i}/notification-fd }
|
|
||||||
{
|
|
||||||
s6-svwait -t ${S6_CMD_WAIT_FOR_SERVICES_MAXTIME} -U /var/run/s6/services/${i}
|
|
||||||
}
|
|
||||||
s6-svwait -t ${S6_CMD_WAIT_FOR_SERVICES_MAXTIME} -u /var/run/s6/services/${i}
|
|
||||||
}
|
|
||||||
if { s6-echo -- "[services.d] done." }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
importas -u ? ?
|
|
||||||
ifelse { s6-test ${S6_BEHAVIOUR_IF_STAGE2_FAILS} -eq 0 } { exit 0 }
|
|
||||||
|
|
||||||
# Make stage2 exit code available in stage3
|
|
||||||
foreground { redirfd -w 1 /var/run/s6/env-stage3/S6_STAGE2_EXITED s6-echo -n -- "${?}" }
|
|
||||||
exit ${?}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
##
|
|
||||||
## The init is complete, If the user has a given CMD, run it now, then
|
|
||||||
## kill everything when it exits.
|
|
||||||
##
|
|
||||||
|
|
||||||
if -t { s6-test $# -ne 0 }
|
|
||||||
|
|
||||||
foreground {
|
|
||||||
s6-setsid -gq -- with-contenv
|
|
||||||
backtick -D 0 -n S6_LOGGING { printcontenv S6_LOGGING }
|
|
||||||
importas S6_LOGGING S6_LOGGING
|
|
||||||
ifelse { s6-test ${S6_LOGGING} -eq 2 }
|
|
||||||
{
|
|
||||||
redirfd -w 1 /var/run/s6/uncaught-logs-fifo
|
|
||||||
fdmove -c 2 1
|
|
||||||
$@
|
|
||||||
}
|
|
||||||
$@
|
|
||||||
}
|
|
||||||
|
|
||||||
importas -u ? ?
|
|
||||||
|
|
||||||
foreground {
|
|
||||||
/etc/s6/init/init-stage2-redirfd
|
|
||||||
s6-echo -- "[cmd] ${1} exited ${?}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Make CMD exit code available in stage3
|
|
||||||
foreground { redirfd -w 1 /var/run/s6/env-stage3/S6_STAGE2_EXITED s6-echo -n -- "${?}" }
|
|
||||||
|
|
||||||
# Stop supervision tree
|
|
||||||
foreground { s6-svscanctl -t /var/run/s6/services }
|
|
||||||
|
|
||||||
# Wait to be nuked
|
|
||||||
s6-pause -th
|
|
||||||
|
|
||||||
}
|
|
||||||
importas -u ? ?
|
|
||||||
if { s6-test ${?} -ne 0 }
|
|
||||||
if { s6-test ${S6_BEHAVIOUR_IF_STAGE2_FAILS} -ne 0 }
|
|
||||||
ifelse { s6-test ${S6_BEHAVIOUR_IF_STAGE2_FAILS} -ne 1 }
|
|
||||||
{
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
|
||||||
}
|
|
||||||
s6-echo -- "\n!!!!!\n init-stage2 failed.\n!!!!!"
|
|
||||||
Loading…
Reference in a new issue