Compare commits
20 commits
antifascis
...
container-
Author | SHA1 | Date | |
---|---|---|---|
c5b4f72251 | |||
552cb373f1 | |||
3777343e2d | |||
2548ad883a | |||
ed6e1a4758 | |||
10dcbf25e5 | |||
5b53d9cc28 | |||
cd4f1cee32 | |||
cde2fdedaa | |||
45b3ff8741 | |||
e00982be71 | |||
8857027ba8 | |||
cce727b550 | |||
38474192a0 | |||
8ef34f3a69 | |||
fd4969823f | |||
d7d5eebec5 | |||
92a04bf4d5 | |||
7c74e6443c | |||
df1b9f7a77 |
5 changed files with 63 additions and 0 deletions
30
.woodpecker.yml
Normal file
30
.woodpecker.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
pipeline:
|
||||||
|
shellcheck:
|
||||||
|
image: docker.io/alpine:3.14
|
||||||
|
commands:
|
||||||
|
- apk add shellcheck
|
||||||
|
- shellcheck haini.sh
|
||||||
|
publish:
|
||||||
|
image: plugins/docker
|
||||||
|
registry: registry.nulo.in
|
||||||
|
repo: registry.nulo.in/sutty/haini.sh
|
||||||
|
tags: latest,root
|
||||||
|
dockerfile: Containerfile
|
||||||
|
username: sutty
|
||||||
|
secrets:
|
||||||
|
- docker_password
|
||||||
|
when:
|
||||||
|
branch: container-ci
|
||||||
|
event: push
|
||||||
|
publish-rootless:
|
||||||
|
image: plugins/docker
|
||||||
|
registry: registry.nulo.in
|
||||||
|
repo: registry.nulo.in/sutty/haini.sh
|
||||||
|
tags: rootless
|
||||||
|
dockerfile: Containerfile.rootless
|
||||||
|
username: sutty
|
||||||
|
secrets:
|
||||||
|
- docker_password
|
||||||
|
when:
|
||||||
|
branch: container-ci
|
||||||
|
event: push
|
17
Containerfile
Normal file
17
Containerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
FROM docker.io/alpine:3.13
|
||||||
|
|
||||||
|
RUN apk add --no-cache openssh-client make git bash coreutils diffutils sudo
|
||||||
|
|
||||||
|
RUN echo "https://alpine.sutty.nl/alpine/v3.13/sutty" >> "/etc/apk/repositories" && \
|
||||||
|
wget https://alpine.sutty.nl/alpine/sutty.pub -O "/etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub"
|
||||||
|
|
||||||
|
COPY packages /root/packages
|
||||||
|
COPY bin /usr/local/bin
|
||||||
|
|
||||||
|
RUN chmod 755 /usr/local/bin/*
|
||||||
|
RUN apk add --no-cache $(cat "/root/packages" | tr "\n" " ")
|
||||||
|
RUN sed -re "s/#(@platforms = )/\1/" -i "/usr/lib/ruby/2.7.0/rubygems.rb" && \
|
||||||
|
mkdir -m 700 -p "~/.ssh"
|
||||||
|
|
||||||
|
COPY ssh/known_hosts /root/.ssh/known_hosts
|
||||||
|
COPY .gemrc /root/.gemrc
|
14
Containerfile.rootless
Normal file
14
Containerfile.rootless
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM registry.nulo.in/sutty/haini.sh:root
|
||||||
|
|
||||||
|
RUN mkdir -p /home && \
|
||||||
|
adduser \
|
||||||
|
--disabled-password \
|
||||||
|
--gecos "" \
|
||||||
|
--home /home/suttier \
|
||||||
|
suttier && \
|
||||||
|
cp /root/.gemrc /home/suttier/.gemrc && \
|
||||||
|
cp -r /root/.ssh /home/suttier/.ssh && \
|
||||||
|
chown -R suttier:suttier /home/suttier/ && \
|
||||||
|
echo "suttier ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
USER suttier
|
||||||
|
|
1
packages
1
packages
|
@ -22,6 +22,7 @@ postgresql-libs
|
||||||
py3-brotli
|
py3-brotli
|
||||||
py3-cffi
|
py3-cffi
|
||||||
py3-fonttools
|
py3-fonttools
|
||||||
|
rsync
|
||||||
ruby
|
ruby
|
||||||
ruby-bigdecimal
|
ruby-bigdecimal
|
||||||
ruby-bundler
|
ruby-bundler
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
0xacab.org,198.252.153.239 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKdh69MJNIA4hZNdplalK1BOD4QZEKn8msMwsEzA7nrr
|
0xacab.org,198.252.153.239 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKdh69MJNIA4hZNdplalK1BOD4QZEKn8msMwsEzA7nrr
|
||||||
athshe.sutty.nl,172.96.172.58 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIDqJl9IW6WXAxrtZXMzvMnIpTjIZB+Tp+dDUpSaOrqdjqdMVjHVQSFnVh0MLHbvdjKKtxaKDAuT3JXGrSp8wyA=
|
athshe.sutty.nl,172.96.172.58 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIDqJl9IW6WXAxrtZXMzvMnIpTjIZB+Tp+dDUpSaOrqdjqdMVjHVQSFnVh0MLHbvdjKKtxaKDAuT3JXGrSp8wyA=
|
||||||
anarres.sutty.nl,54.39.161.205 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGw9aXovdiR44WzGfaitjlGiAO7I5OP/XgxFEc+t6HWeS0oqIVaEo17y7j29hLZbTRpN8vWoGSMa+UtquQZ6JG8=
|
anarres.sutty.nl,54.39.161.205 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGw9aXovdiR44WzGfaitjlGiAO7I5OP/XgxFEc+t6HWeS0oqIVaEo17y7j29hLZbTRpN8vWoGSMa+UtquQZ6JG8=
|
||||||
|
[nulo.in]:420 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP
|
||||||
|
|
Loading…
Reference in a new issue