Compare commits
9 Commits
66ebc83e3a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 59f5178cb6 | |||
| 25d24eb8d4 | |||
| 286cfaea5d | |||
| 66dbde0979 | |||
| 57114a0a13 | |||
| d2a7861da9 | |||
| 0b3613c74e | |||
| 0f76c06081 | |||
| c980a6a607 |
@@ -2,7 +2,7 @@
|
||||
|
||||
[](https://ci.elara.ws/repos/51)
|
||||
|
||||
This repo contains custom docker images that I'm using for my cluster. You can find the containers I build from these in the [Packages](https://gitea.elara.ws/Elara6331/riscv-docker/packages) section of this repo.
|
||||
This repo contains build scripts for custom docker images that I'm using for my cluster. You can find the containers that are automatically built from these in the [Packages](https://gitea.elara.ws/Elara6331/riscv-docker/packages) section of this repo.
|
||||
|
||||
The containers are stored on my gitea instance, so you can pull them like this:
|
||||
|
||||
@@ -10,6 +10,8 @@ The containers are stored on my gitea instance, so you can pull them like this:
|
||||
docker pull gitea.elara.ws/elara6331/golang:latest
|
||||
```
|
||||
|
||||
Read my article [here](https://www.elara.ws/articles/riscv-cluster)!
|
||||
|
||||
### Images
|
||||
|
||||
- `static`: A base image with just enough files to run static binaries
|
||||
|
||||
@@ -2,6 +2,9 @@ FROM alpine:edge
|
||||
RUN apk add --no-cache go yq git gcc bash abuild
|
||||
RUN apk add --no-cache ko --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||
RUN apk add --no-cache --allow-untrusted apko --repository=https://packages.wolfi.dev/os
|
||||
RUN wget -O /usr/bin/lure https://api.minio.elara.ws/adl/lure/lure-amd64 && chmod +x /usr/bin/lure
|
||||
RUN wget -O lure.tar.gz https://gitea.elara.ws/lure/lure/releases/download/v0.1.2/lure-0.1.2-linux-x86_64.tar.gz && \
|
||||
tar xvf lure.tar.gz && \
|
||||
install -Dm755 lure /usr/bin/lure && \
|
||||
rm -r lure scripts
|
||||
COPY lure.toml /root/.config/lure/lure.toml
|
||||
COPY login.sh /bin/registry-login
|
||||
|
||||
5
busybox-root/README.md
Normal file
5
busybox-root/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# busybox-root
|
||||
|
||||
The [busybox-root image](https://gitea.elara.ws/Elara6331/-/packages/container/busybox-root/latest) is a basic image with the busybox utilities installed.
|
||||
|
||||
This image runs as root. See [busybox](https://gitea.elara.ws/Elara6331/riscv-docker/src/branch/master/busybox) for a rootless container.
|
||||
9
busybox-root/apko.yaml
Normal file
9
busybox-root/apko.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
include: gitea.elara.ws/elara6331/riscv-docker/static-root/apko.yaml@master
|
||||
|
||||
contents:
|
||||
packages:
|
||||
- busybox
|
||||
- ssl_client
|
||||
|
||||
entrypoint:
|
||||
command: /bin/sh
|
||||
3
busybox-root/build.sh
Executable file
3
busybox-root/build.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/busybox-root:latest
|
||||
@@ -1,3 +1,3 @@
|
||||
# static
|
||||
# busybox
|
||||
|
||||
The [busybox image](https://gitea.elara.ws/Elara6331/-/packages/container/busybox/latest) is a basic image with the busybox utilities installed.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/busybox:latest
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# crane
|
||||
|
||||
The [crane](https://gitea.elara.ws/Elara6331/-/packages/container/crane/latest) image contains Google's [crane](https://github.com/google/go-containerregistry/tree/main/cmd/crane) project.
|
||||
The [crane](https://gitea.elara.ws/Elara6331/-/packages/container/crane/latest) image contains Google's [crane](https://github.com/google/go-containerregistry/tree/main/cmd/crane) project. It comes with `/bin/sh` unlike Google's official image, so it's useful for programs such as Woodpecker CI, which depend on a shell being available.
|
||||
|
||||
@@ -20,5 +20,4 @@ for arch in pkgs/*/; do
|
||||
abuild-sign "$arch/APKINDEX.tar.gz"
|
||||
done
|
||||
|
||||
version_tag="gitea.elara.ws/elara6331/golang:$(lure info go-bin | yq -r .version | head -1)"
|
||||
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/golang:latest "$version_tag"
|
||||
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/golang:latest gitea.elara.ws/elara6331/golang:1.21.1
|
||||
|
||||
7
static-root/README.md
Normal file
7
static-root/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# static-root
|
||||
|
||||
The [static-root image](https://gitea.elara.ws/Elara6331/-/packages/container/static-root/latest) is a basic image with just enough files to run static binaries. It's meant to be used as a base image and is useless outside of that.
|
||||
|
||||
This image will only run static binaries (i.e. Go binaries with `CGO_ENABLED=0`) as it doesn't include musl or glibc
|
||||
|
||||
This image runs as root. See [static](https://gitea.elara.ws/Elara6331/riscv-docker/src/branch/master/static) for a rootless container.
|
||||
16
static-root/apko.yaml
Normal file
16
static-root/apko.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
contents:
|
||||
repositories:
|
||||
- https://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||
packages:
|
||||
- alpine-baselayout-data
|
||||
- alpine-release
|
||||
- ca-certificates-bundle
|
||||
- tzdata
|
||||
|
||||
environment:
|
||||
RUNNING_IN_DOCKER: true
|
||||
|
||||
archs:
|
||||
- amd64
|
||||
- arm64
|
||||
- riscv64
|
||||
3
static-root/build.sh
Executable file
3
static-root/build.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/static-root:latest
|
||||
@@ -17,6 +17,9 @@ accounts:
|
||||
gid: 65532
|
||||
run-as: 65532
|
||||
|
||||
environment:
|
||||
RUNNING_IN_DOCKER: true
|
||||
|
||||
archs:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
apko publish --sbom=false apko.yaml gitea.elara.ws/elara6331/static:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user