From d27f6cfe3be47bd7900d9e5bb3319abcf2f3496c Mon Sep 17 00:00:00 2001 From: bontreger Date: Mon, 4 Mar 2024 02:48:04 -0500 Subject: [PATCH] Go is missing from the environment for pre-commit (#26) * Add guidance for using Workspace badge button * Improve formatting * chore(devfile) link v2 devfile to :3.9; set image refs to registry.redhat.io/devspaces/ Signed-off-by: Red Hat Devstudio Release Bot * chore(devfile):auto-update Ansible Creator EE image * merging README.md * testing some changes for che * Add gitleaks as part of the pre-commits for demonstrations * Update Dockerfile with glibc-langpack-en * Update Dockerfile * added go to the docker build for pre-commits --------- Signed-off-by: Red Hat Devstudio Release Bot Co-authored-by: Hunter Gerlach Co-authored-by: Kathryn Yetter <46502874+kyetter@users.noreply.github.com> Co-authored-by: Red Hat Devstudio Release Bot Co-authored-by: Valerii Svydenko Co-authored-by: kyetter --- Dockerfile | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1873722..d295263 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ ENV HOME=/home/runner COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt +## install golang for pre-commit +RUN microdnf install -y go + ## kubectl RUN \ microdnf install -y which && \ diff --git a/requirements.txt b/requirements.txt index 528a000..7ca710b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ kubernetes==26.1.0 ansible-navigator==3.5.0 pre-commit==3.6.0 ansible-creator +