File tree Expand file tree Collapse file tree 2 files changed +55
-4
lines changed
Expand file tree Collapse file tree 2 files changed +55
-4
lines changed Original file line number Diff line number Diff line change 1- FROM debian:12 -slim
1+ FROM debian:13 -slim
22
33
44# install useful packages
@@ -51,10 +51,8 @@ RUN set -eux; \
5151 echo 'gem: --no-document' >> /usr/local/etc/gemrc
5252
5353# install useful ruby gems
54- RUN set -eux \
54+ RUN set -eux; \
5555 \
56- gem update --system \
57- ; \
5856 gem install -N \
5957 bundler \
6058 http \
@@ -63,3 +61,7 @@ RUN set -eux \
6361 redis \
6462 sequel \
6563 ;
64+
65+ # run all scripts in /etc/console/init/boot.d
66+ RUN set -eux; \
67+ test ! -d /etc/console/init/boot.d || find /etc/console/init/boot.d -maxdepth 1 -type f -exec bash {} \;
Original file line number Diff line number Diff line change 11# Console
22
33Simple console container, useful as a dev pod.
4+
5+ To deploy in K8s, add the following manifest:
6+
7+ ``` yaml
8+ apiVersion : apps/v1
9+ kind : Pod
10+ metadata :
11+ name : console
12+ spec :
13+ containers :
14+ - name : console
15+ image : ghcr.io/bsm/console/console:latest
16+ imagePullPolicy : Always
17+ ` ` `
18+
19+ To execute custom commands at boot time you can include custom init scripts into a
20+ ` ConfigMap`. For example:
21+
22+ ` ` ` yaml
23+ ---
24+ apiVersion: v1
25+ kind: ConfigMap
26+ metadata:
27+ name: special-config
28+ namespace: default
29+ data:
30+ 10-nproc.sh: |
31+ #!/bin/bash
32+
33+ nproc > /tmp/NPROC
34+ ---
35+ apiVersion: apps/v1
36+ kind: Pod
37+ metadata:
38+ name: console
39+ namespace: console
40+ spec:
41+ containers:
42+ - name: console
43+ image: ghcr.io/bsm/console/console:latest
44+ imagePullPolicy: Always
45+ volumeMounts:
46+ - mountPath: "/etc/console/init/boot.d"
47+ name: bootd
48+ volumes:
49+ - name: bootd
50+ configMap:
51+ name: console-boot
52+ ` ` `
You can’t perform that action at this time.
0 commit comments