Initial commit
This commit is contained in:
40
.github/workflows/build.yml
vendored
Normal file
40
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
schedule:
|
||||
- cron: "0 0 * * 0"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
docker_tag:
|
||||
description: 'Docker tag'
|
||||
required: true
|
||||
default: 'latest'
|
||||
type: string
|
||||
env:
|
||||
BUILDKIT_IMAGE: jkaninda/toolkit
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
"${{env.BUILDKIT_IMAGE}}:lts"
|
||||
"${{env.BUILDKIT_IMAGE}}:latest"
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/.history
|
||||
data
|
||||
compose.yaml
|
||||
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM ubuntu:23.10
|
||||
RUN apt-get update -qq \
|
||||
&& apt-get install -qqy apt-transport-https ca-certificates curl gnupg2 software-properties-common jq
|
||||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
|
||||
RUN curl https://get.docker.com/ > dockerinstall && chmod 777 dockerinstall && ./dockerinstall
|
||||
|
||||
## Install K6
|
||||
RUN curl https://github.com/grafana/k6/releases/download/v0.48.0/k6-v0.48.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
|
||||
RUN mv k6 /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/k6
|
||||
|
||||
RUN curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
|
||||
RUN mv kustomize /usr/local/bin/kustomize
|
||||
|
||||
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
|
||||
RUN chmod 700 get_helm.sh
|
||||
RUN ./get_helm.sh
|
||||
|
||||
RUN curl -LO https://dl.k8s.io/release/v1.29.0/bin/linux/amd64/kubectl
|
||||
RUN chmod +x kubectl
|
||||
RUN mv kubectl /usr/local/bin/kubectl
|
||||
15
README.md
Normal file
15
README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Toolkit
|
||||
DevOps toolkit
|
||||
|
||||
[](https://github.com/jkaninda/toolkit/actions/workflows/build.yml)
|
||||

|
||||
|
||||
- [Docker Hub](https://hub.docker.com/r/jkaninda/toolkit)
|
||||
- [Github](https://github.com/jkaninda/toolkit)
|
||||
|
||||
## Tools:
|
||||
- docker client
|
||||
- helm
|
||||
- kustomize
|
||||
- jq
|
||||
- k6
|
||||
Reference in New Issue
Block a user