Skip to content

Commit

Permalink
APIGOV-27565 - test
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeldick committed May 10, 2024
1 parent c24a01f commit 023876e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
sdk_version=${{ steps.vars.outputs.sdkversion }}
commit_id=${{ steps.vars.outputs.commit }}
buildtraceabilityAgentDocker:
buildTraceabilityAgentDocker:
needs: testTraceabilityAgent
env:
GOFLAGS: "-mod=mod"
Expand Down Expand Up @@ -109,6 +109,7 @@ jobs:
commit_id=${{ steps.vars.outputs.commit }}
notifyTeamsChannel:
needs: [buildDiscoveryAgentDocker, buildTraceabilityAgentDocker]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion discovery/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN export GOOS=linux && \

# Create non-root user
RUN addgroup -g 2500 ${APP_USER} && adduser -u 2500 -D -G ${APP_USER} ${APP_USER}
RUN chown -R ${APP_USER}:${APP_USER} ${BASEPATH}/bin/apigee_discovery_agent
RUN chown -R ${APP_USER}:${APP_USER} ${AGENT}/bin/apigee_discovery_agent
USER ${APP_USER}

# alpine 3.19 linux/amd64
Expand Down
17 changes: 4 additions & 13 deletions traceability/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ COPY . .

WORKDIR ${AGENT}

RUN export time=`date +%Y%m%d%H%M%S` && \
export GOOS=linux && \
export GOARCH=amd64 && \
go build -tags static_all \
-ldflags="-X 'github.com/Axway/agent-sdk/pkg/cmd.BuildTime=${time}' \
-X 'github.com/Axway/agent-sdk/pkg/cmd.BuildVersion=${version}' \
-X 'github.com/Axway/agent-sdk/pkg/cmd.BuildCommitSha=${commit_id}' \
-X 'github.com/Axway/agent-sdk/pkg/cmd.SDKBuildVersion=${sdk_version}' \
-X 'github.com/Axway/agent-sdk/pkg/cmd.BuildAgentName=ApigeeTraceabilityAgent'" \
-a -o ${AGENT}/bin/apigee_traceability_agent ${BASEPATH}/traceability/main.go

# Copy necessary files
COPY . .

Expand All @@ -51,7 +40,7 @@ RUN export GOOS=linux && \

# Create non-root user
RUN addgroup -g 2500 ${APP_USER} && adduser -u 2500 -D -G ${APP_USER} ${APP_USER}
RUN chown -R ${APP_USER}:${APP_USER} /go/src/github.com/Axway/agents-apigee/traceability/bin/apigee_traceability_agent
RUN chown -R ${APP_USER}:${APP_USER} ${AGENT}/bin/apigee_traceability_agent
USER ${APP_USER}

# alpine 3.18 linux/amd64
Expand All @@ -61,10 +50,12 @@ ENV BASEPATH /go/src/github.com/Axway/agents-apigee
ENV AGENT ${BASEPATH}/discovery
ENV APP_USER axway

RUN pwd
RUN ls -laR
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder ${AGENT}/apigee_traceability_agent.yml /apigee_traceability_agent.yml
COPY --from=builder ${AGENT}/bin/apigee_traceability_agent /apigee_traceability_agent
COPY --from=builder ${AGENT}/apigee_traceability_agent.yml /apigee_traceability_agent.yml

RUN apk --no-cache add openssl libssl3 libcrypto3 musl musl-utils libc6-compat busybox curl && \
mkdir /keys /data && \
Expand Down

0 comments on commit 023876e

Please sign in to comment.