Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ploigos-tool-autogov build (Download GoLang and install) #125

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions ploigos-tool-autogov/Containerfile.ubi8
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
ARG BASE_IMAGE=quay.io/ploigos/ploigos-base:latest.ubi8
ARG REKOR_VERSION=e63fe717c810657c270edfb964aef10969e7f210
ARG OPA_VERSION=v0.29.4
ARG GOLANG_VERSION=1.22.4

FROM $BASE_IMAGE
ARG PLOIGOS_USER_UID
ARG REKOR_VERSION
ARG OPA_VERSION
ARG GOLANG_VERSION

# labels
ENV DESCRIPTION="Ploigos tool container with Rekor and Open Policy Agent."
Expand All @@ -27,15 +29,13 @@ ENV LANG=en_US.UTF-8 \

USER root

# Copy the entrypoint
ADD contrib/centos.repo /etc/yum.repos.d/
# Install GoLang
RUN curl -L https://go.dev/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz -o /tmp/golang.tar.gz && \
tar -C /usr/local -xzf /tmp/golang.tar.gz

# update and install packages
RUN INSTALL_PKGS="golang" && \
dnf update -y --allowerasing --nobest && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
dnf clean all && \
rm -rf /var/cache /var/log/dnf* /var/log/yum.*
ENV PATH=$PATH:/usr/local/go/bin
ENV GOPATH=$HOME/go
ENV PATH=$PATH:$GOPATH/bin

# Install rekor
# NOTE: better way to install, except as of 7/21/21 only v0.2.0 is released and it doesnt work with PSR
Expand Down
5 changes: 0 additions & 5 deletions ploigos-tool-autogov/contrib/centos.repo

This file was deleted.

Loading