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

Release v1.0.6 #10

Merged
merged 2 commits into from
Nov 13, 2024
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
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@
#limitations under the License.
##########################################################

FROM amd64/golang:1.22.5-alpine3.20 AS gobuilder
FROM golang:1.22.5-alpine3.20 AS gobuilder

# Install git.

# Git is required for fetching the dependencies.

RUN apk update && apk add --no-cache git make build-base

ARG TARGETPLATFORM
ARG TARGETARCH

# Set the Go source path

WORKDIR /
Expand All @@ -35,12 +38,12 @@ COPY . .

RUN go mod download &&\
go env -w GOPRIVATE=github.com/kubeslice && \
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/kubeslice-gateway-edge main.go
CGO_ENABLED=1 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o bin/kubeslice-gateway-edge main.go


# Build reduced image from base alpine

FROM amd64/alpine:3.20.1
FROM alpine:3.20.1

# tc - is needed for traffic control and shaping on the sidecar. it is part of the iproute2

Expand All @@ -60,4 +63,4 @@ EXPOSE 8080

# Or could be CMD

ENTRYPOINT ["./kubeslice-gateway-edge"]
ENTRYPOINT ["./kubeslice-gateway-edge"]
15 changes: 8 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@Library('jenkins-library@opensource-helm-pipeline-release') _
dockerbuildtestPipeline(
@Library('jenkins-library@opensource-release-multiarch') _
dockerImagePipeline(
script: this,
service: 'slicegw-edge',
buildArguments: [PLATFORM:"amd64"],
run_unit_tests: 'false'

services: ['slicegw-edge'],
dockerfiles: ['Dockerfile'],
pushed: true,
buildArgumentsList: [
[ENV: 'production', PLATFORM: 'linux/arm64,linux/amd64']
]
)

Loading