Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 8f5d2dd

Browse files
committed
First steps for containerized builds #2581
1 parent 725237d commit 8f5d2dd

File tree

2 files changed

+165
-0
lines changed

2 files changed

+165
-0
lines changed

renovate.json

+53
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,16 @@
860860
"depNameTemplate": "chanwit/ekz",
861861
"datasourceTemplate": "github-releases"
862862
},
863+
{
864+
"fileMatch": [
865+
"^tools.yaml$"
866+
],
867+
"matchStrings": [
868+
"name: emojisum\\n\\s+version: \"?(?<currentValue>.*?)\n"
869+
],
870+
"depNameTemplate": "emojisum/emojisum",
871+
"datasourceTemplate": "github-tags"
872+
},
863873
{
864874
"fileMatch": [
865875
"^tools.yaml$"
@@ -871,6 +881,16 @@
871881
"datasourceTemplate": "github-releases",
872882
"extractVersionTemplate": "^v(?<version>.+?)$"
873883
},
884+
{
885+
"fileMatch": [
886+
"^tools.yaml$"
887+
],
888+
"matchStrings": [
889+
"name: envsub\\n\\s+version: \"?(?<currentValue>.*?)\n"
890+
],
891+
"depNameTemplate": "stephenc/envsub",
892+
"datasourceTemplate": "github-releases"
893+
},
874894
{
875895
"fileMatch": [
876896
"^tools.yaml$"
@@ -910,6 +930,16 @@
910930
"name: firectl\\n\\s+version: \"?(?<currentValue>.*?)\n"
911931
],
912932
"depNameTemplate": "firecracker-microvm/firectl",
933+
"datasourceTemplate": "github-releases"
934+
},
935+
{
936+
"fileMatch": [
937+
"^tools.yaml$"
938+
],
939+
"matchStrings": [
940+
"name: firejail\\n\\s+version: \"?(?<currentValue>.*?)\n"
941+
],
942+
"depNameTemplate": "netblue30/firejail",
913943
"datasourceTemplate": "github-releases",
914944
"extractVersionTemplate": "^v(?<version>.+?)$"
915945
},
@@ -1885,6 +1915,17 @@
18851915
"datasourceTemplate": "github-releases",
18861916
"extractVersionTemplate": "^v(?<version>.+?)$"
18871917
},
1918+
{
1919+
"fileMatch": [
1920+
"^tools.yaml$"
1921+
],
1922+
"matchStrings": [
1923+
"name: reptyr\\n\\s+version: \"?(?<currentValue>.*?)\n"
1924+
],
1925+
"depNameTemplate": "nelhage/reptyr",
1926+
"datasourceTemplate": "github-tags",
1927+
"extractVersionTemplate": "^reptyr-(?<version>.+?)$"
1928+
},
18881929
{
18891930
"fileMatch": [
18901931
"^tools.yaml$"
@@ -2041,6 +2082,18 @@
20412082
"datasourceTemplate": "github-releases",
20422083
"extractVersionTemplate": "^v(?<version>.+?)$"
20432084
},
2085+
{
2086+
"fileMatch": [
2087+
"^tools.yaml$"
2088+
],
2089+
"matchStrings": [
2090+
"name: su-exec\\n\\s+version: \"?(?<currentValue>.*?)\n"
2091+
],
2092+
"depNameTemplate": "ncopa/su-exec",
2093+
"datasourceTemplate": "github-releases",
2094+
"extractVersionTemplate": "^v(?<version>.+?)$",
2095+
"versioningTemplate": "loose"
2096+
},
20442097
{
20452098
"fileMatch": [
20462099
"^tools.yaml$"

tools.yaml

+112
Original file line numberDiff line numberDiff line change
@@ -2227,6 +2227,26 @@ tools:
22272227
x86_64: https://github.com/chanwit/ekz/releases/download/v${version}/ekz_${version}_linux_${alt_arch}.tar.gz
22282228
type: tarball
22292229

2230+
- name: emojisum
2231+
version: master
2232+
needs:
2233+
- docker
2234+
tags:
2235+
- security
2236+
dockerfile: |
2237+
FROM golang:${go_version}
2238+
install: |
2239+
docker_run \
2240+
--workdir /go/src/github.com/emojisum/emojisum \
2241+
<<EOF
2242+
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/emojisum/emojisum .
2243+
export CGO_ENABLED=0
2244+
export GO111MODULE=auto
2245+
go mod init
2246+
go mod tidy
2247+
go build -ldflags "-w -s" -o "/target/bin/emojisum" .
2248+
EOF
2249+
22302250
- name: envcli
22312251
version: 0.7.1
22322252
check: ${binary} --version | cut -d' ' -f3
@@ -2237,6 +2257,23 @@ tools:
22372257
x86_64: https://github.com/EnvCLI/EnvCLI/releases/download/v${version}/linux_${alt_arch}
22382258
type: executable
22392259

2260+
- name: envsub
2261+
version: 0.1.3
2262+
#check: ${binary}
2263+
needs:
2264+
- docker
2265+
tags:
2266+
- management
2267+
dockerfile: |
2268+
FROM rust:${rust_version}
2269+
install: |
2270+
docker_run \
2271+
--workdir /go/src/github.com/stephenc/envsub \
2272+
<<EOF
2273+
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/stephenc/envsub .
2274+
cargo install --path /target/bin/
2275+
EOF
2276+
22402277
- name: faas-cli
22412278
version: 0.14.5
22422279
check: ${binary} version | grep "version:" | cut -d' ' -f3
@@ -2309,6 +2346,33 @@ tools:
23092346
x86_64: https://firectl-release.s3.amazonaws.com/firectl-v${version}
23102347
type: executable
23112348

2349+
- name: firejail
2350+
version: 0.9.70
2351+
#check: ${binary}
2352+
needs:
2353+
- docker
2354+
tags:
2355+
- security
2356+
dockerfile: |
2357+
FROM ubuntu:22.04
2358+
RUN apt-get update \
2359+
&& apt-get -y install \
2360+
build-essential \
2361+
git
2362+
# firejail, firecfg, firemon
2363+
# https://github.com/netblue30/firejail/tree/0.9.70/src/bash_completion
2364+
# https://github.com/netblue30/firejail/tree/0.9.70/src/zsh_completion
2365+
install: |
2366+
docker_run \
2367+
--workdir /go/src/github.com/netblue30/firejail \
2368+
<<EOF
2369+
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/netblue30/firejail .
2370+
./configure --prefix=/target
2371+
make
2372+
make install-strip
2373+
ls -l
2374+
EOF
2375+
23122376
- name: footloose
23132377
version: 0.6.3
23142378
check: ${binary} version | cut -d' ' -f2
@@ -4334,6 +4398,32 @@ tools:
43344398
systemctl daemon-reload
43354399
fi
43364400
4401+
- name: reptyr
4402+
version: 0.9.0
4403+
#check: ${binary}
4404+
needs:
4405+
- docker
4406+
tags:
4407+
- XXX
4408+
dockerfile: |
4409+
FROM ubuntu:22.04
4410+
RUN apt-get update \
4411+
&& apt-get -y install \
4412+
build-essential \
4413+
git
4414+
# https://github.com/nelhage/reptyr/blob/reptyr-0.9.0/reptyr.bash
4415+
install: |
4416+
docker_run \
4417+
--workdir /go/src/github.com/nelhage/reptyr \
4418+
<<EOF
4419+
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/nelhage/reptyr .
4420+
export LDFLAGS=-static
4421+
make reptyr
4422+
mkdir -p /target/bin /target/share/man/man1
4423+
cp reptyr /target/bin/
4424+
cp reptyr.1 /target/share/man/man1/
4425+
EOF
4426+
43374427
- name: rootlesskit
43384428
version: 1.0.1
43394429
check: ${binary} --version | cut -d' ' -f3
@@ -4569,6 +4659,28 @@ tools:
45694659
systemctl daemon-reload
45704660
fi
45714661
4662+
- name: su-exec
4663+
version: 0.2
4664+
#check: ${binary}
4665+
needs:
4666+
- docker
4667+
tags:
4668+
- XXX
4669+
dockerfile: |
4670+
FROM ubuntu:22.04
4671+
RUN apt-get update \
4672+
&& apt-get -y install \
4673+
build-essential \
4674+
git
4675+
install: |
4676+
docker_run \
4677+
--workdir /go/src/github.com/ncopa/su-exec \
4678+
<<EOF
4679+
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/ncopa/su-exec .
4680+
make su-exec-static
4681+
cp su-exec-static /target/bin/su-exec
4682+
EOF
4683+
45724684
- name: stern
45734685
version: 1.21.0
45744686
check: ${binary} --version | grep ^version | cut -d' ' -f2

0 commit comments

Comments
 (0)