Skip to content

Commit

Permalink
Merge pull request argoproj#2 from rimolive/rmartine-rhds
Browse files Browse the repository at this point in the history
Remove CPaaS lines from Argo images
  • Loading branch information
HumairAK authored Aug 22, 2024
2 parents 8c78135 + 69b2a31 commit 70769a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.
21 changes: 1 addition & 20 deletions rhoai/Dockerfile.argoexec
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,11 @@ FROM registry.redhat.io/ubi8/go-toolset:1.21 as builder
ARG SOURCE_CODE
WORKDIR /workspace

## CPaaS CODE BEGIN ##
COPY ${REMOTE_SOURCE} ${REMOTE_SOURCE_DIR}
ENV SOURCE_CODE=${REMOTE_SOURCE}/app/
## CPaaS CODE END ##

USER root
RUN dnf install -y \
git \
make \
ca-certificates \
wget \
gcc \
bash \
mailcap
RUN dnf install -y mailcap

COPY ${SOURCE_CODE}/go.mod .
COPY ${SOURCE_CODE}/go.sum .

RUN if [ -z ${CACHITO_ENV_FILE} ]; then \
go mod download; \
else \
source ${CACHITO_ENV_FILE}; \
fi
# Copy the source
COPY ${SOURCE_CODE}/ ./

RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build make dist/argoexec GIT_COMMIT=${GIT_COMMIT} GIT_TAG=${GIT_TAG} GIT_TREE_STATE=${GIT_TREE_STATE}
Expand Down
19 changes: 1 addition & 18 deletions rhoai/Dockerfile.workflowcontroller
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,11 @@ FROM registry.redhat.io/ubi8/go-toolset:1.21 as builder
ARG SOURCE_CODE
WORKDIR /workspace

## CPaaS CODE BEGIN ##
COPY ${REMOTE_SOURCE} ${REMOTE_SOURCE_DIR}
ENV SOURCE_CODE=${REMOTE_SOURCE}/app
## CPaaS CODE END ##
USER root
RUN dnf install -y \
git \
make \
ca-certificates \
wget \
gcc \
bash \
mailcap
RUN dnf install -y mailcap

COPY ${SOURCE_CODE}/go.mod .
COPY ${SOURCE_CODE}/go.sum .
RUN if [ -z ${CACHITO_ENV_FILE} ]; then \
go mod download; \
else \
source ${CACHITO_ENV_FILE}; \
fi
# Copy the source
COPY ${SOURCE_CODE}/ ./

RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build make dist/workflow-controller GIT_COMMIT=${GIT_COMMIT} GIT_TAG=${GIT_TAG} GIT_TREE_STATE=${GIT_TREE_STATE}
Expand Down

0 comments on commit 70769a4

Please sign in to comment.