Skip to content

Commit 89ee542

Browse files
committed
Build gcloud-slim
1 parent c10c714 commit 89ee542

File tree

4 files changed

+81
-7
lines changed

4 files changed

+81
-7
lines changed

.docker/gcloud-slim

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:slim
2+
ENV DEBIAN_FRONTEND=noninteractive
3+
ARG KUBECTL_VERSION="v1.33.1"
4+
ARG SOPS_VERSION="v3.8.1"
5+
ARG SUPABASE_VERSION="2.26.8"
6+
ARG USERNAME=jgmize
7+
RUN apt-get update && apt-get install -y --no-install-recommends \
8+
build-essential ca-certificates curl emacs-nox git gpg gpg-agent htop jq \
9+
libsqlite3-0 microsocks openssh-server pandoc postgresql-client python3-epc \
10+
python3-importmagic ripgrep software-properties-common sudo tmate tmux tree \
11+
tzdata unzip && apt-get clean -y \
12+
&& rm -rf /var/cache/debconf/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
13+
RUN curl -LO https://github.com/supabase/cli/releases/download/v${SUPABASE_VERSION}/supabase_${SUPABASE_VERSION}_linux_amd64.deb && \
14+
dpkg -i supabase_${SUPABASE_VERSION}_linux_amd64.deb
15+
RUN curl -L "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
16+
-o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl && \
17+
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 && \
18+
chmod +x get_helm.sh && ./get_helm.sh && \
19+
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
20+
unzip awscliv2.zip && ./aws/install && rm -rf awscliv2.zip aws
21+
RUN curl -L "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.linux.amd64" \
22+
-o /usr/local/bin/sops && chmod +x /usr/local/bin/sops
23+
RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64 \
24+
-o /usr/local/bin/yq && chmod +x /usr/local/bin/yq
25+
RUN useradd -m -s /usr/bin/bash -G sudo ${USERNAME}
26+
WORKDIR /home/${USERNAME}
27+
USER ${USERNAME}
28+
COPY . ./dotfiles
29+
RUN dotfiles/install

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- dev
7+
- gcloud-slim
8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}
11+
permissions:
12+
contents: read
13+
packages: write
14+
attestations: write
15+
id-token: write
16+
jobs:
17+
build-push:
18+
name: build-push
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
25+
with:
26+
registry: ${{ env.REGISTRY }}
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
- uses: docker/setup-buildx-action@v3
30+
- id: meta
31+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
32+
with:
33+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34+
- id: push
35+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
36+
with:
37+
context: .
38+
push: true
39+
tags: ${{ steps.meta.outputs.tags }}
40+
labels: ${{ steps.meta.outputs.labels }}

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ stages:
66
kaniko build:
77
extends: .kaniko build
88
variables:
9-
name: llamastack-local-gpu
9+
name: gcloud-slim
1010
dockerfile: .docker/${name}
1111
image: ${CI_REGISTRY_IMAGE}/${name}
1212
only:
1313
refs:
14-
- dockerfiles
14+
- gcloud-slim

.org

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515
- https://gitlab.com/search?search=dotfiles
1616
- https://gitlab.com/gitlab-com/support/toolbox/dotfiles
1717

18-
** Merge Requests
18+
** Merge & Pull Requests
1919

2020
- [[https://gitlab.com/jgmize/dotfiles/-/merge_requests?scope=all&state=all][Gitlab merge requests]]
21-
- [X] [[https://gitlab.com/jgmize/dotfiles/-/merge_requests/1][!1]]: Build bullseye
22-
- [X] [[https://gitlab.com/jgmize/dotfiles/-/merge_requests/2][!2]]: Main rebase
23-
- [X] [[https://gitlab.com/jgmize/dotfiles/-/merge_requests/3][!3]]: add svpn
24-
- [ ] !4: Update [[./.gitpod.yml][.gitpod.yml]] to match journal
21+
- [[https://github.com/jgmize/dotfiles/pulls?q=][Github pull requests]]
22+
23+
** TODO
24+
25+
- [-] add cloud CLIs
26+
- [X] aws
27+
- [X] az
28+
- [ ] gcloud
29+
- [ ] add ys

0 commit comments

Comments
 (0)