Skip to content

Commit 42a8122

Browse files
committed
Initial release
0 parents  commit 42a8122

File tree

2 files changed

+104
-0
lines changed

2 files changed

+104
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
tags:
7+
- "v*"
8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}/console
11+
12+
jobs:
13+
build-and-push-image:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
attestations: write
19+
id-token: write
20+
steps:
21+
- uses: actions/checkout@v5
22+
- uses: docker/login-action@v3
23+
with:
24+
registry: ${{ env.REGISTRY }}
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
- uses: docker/metadata-action@v5
28+
id: meta
29+
with:
30+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
31+
labels: |
32+
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
33+
org.opencontainers.image.description=${{ github.workflow }}}
34+
- uses: docker/build-push-action@v6
35+
id: push
36+
with:
37+
push: true
38+
tags: ${{ steps.meta.outputs.tags }}
39+
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
FROM debian:12-slim
2+
3+
4+
# install useful packages
5+
RUN set -eux; \
6+
\
7+
apt-get update; \
8+
apt-get install -y --no-install-recommends \
9+
build-essential \
10+
byobu \
11+
ca-certificates \
12+
curl \
13+
default-libmysqlclient-dev \
14+
default-mysql-client \
15+
dnsutils \
16+
inetutils-ping \
17+
inetutils-telnet \
18+
inetutils-tools \
19+
inetutils-traceroute \
20+
less \
21+
libpq-dev \
22+
nano \
23+
postgresql-client \
24+
python-is-python3 \
25+
python3 \
26+
python3-dev \
27+
python3-pip \
28+
python3-setuptools \
29+
redis-tools \
30+
ruby \
31+
ruby-dev \
32+
screen \
33+
ssh-client \
34+
telnet \
35+
unzip \
36+
vim \
37+
wget \
38+
zstd \
39+
; \
40+
rm -rf /var/lib/apt/lists/*
41+
42+
# install yq - https://github.com/mikefarah/yq
43+
RUN set -eux; \
44+
\
45+
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq; \
46+
chmod +x /usr/local/bin/yq
47+
48+
# skip installing gem documentation with `gem install`/`gem update`
49+
RUN set -eux; \
50+
mkdir -p /usr/local/etc; \
51+
echo 'gem: --no-document' >> /usr/local/etc/gemrc
52+
53+
# install useful ruby gems
54+
RUN set -eux \
55+
\
56+
gem update --system \
57+
; \
58+
gem install -N \
59+
bundler \
60+
http \
61+
mysql2 \
62+
pg \
63+
redis \
64+
sequel \
65+
;

0 commit comments

Comments
 (0)