Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netobserv-ebpf-agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
netobserv-ebpf-agent
Commits
0b0d95aa
Unverified
Commit
0b0d95aa
authored
1 year ago
by
Mohamed S. Mahmoud
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
revert dockerfile changes done in #309 (#315)
Signed-off-by:
Mohamed Mahmoud
<
mmahmoud@redhat.com
>
parent
c793936a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+4
-19
4 additions, 19 deletions
Dockerfile
with
4 additions
and
19 deletions
Dockerfile
+
4
−
19
View file @
0b0d95aa
...
@@ -2,29 +2,15 @@
...
@@ -2,29 +2,15 @@
ARG
TARGETPLATFORM=linux/amd64
ARG
TARGETPLATFORM=linux/amd64
ARG
BUILDPLATFORM=linux/amd64
ARG
BUILDPLATFORM=linux/amd64
ARG
TARGETARCH=amd64
ARG
TARGETARCH=amd64
ARG
GOVERSION="1.21.7"
# Build layer
# Build the manager binary
FROM
--platform=$TARGETPLATFORM fedora:39
as
builder
FROM
--platform=$BUILDPLATFORM docker.io/library/golang:1.21
as
builder
ARG
TARGETARCH
ARG
TARGETARCH
ARG
TARGETPLATFORM
ARG
TARGETPLATFORM
ARG
GOVERSION
ARG
VERSION="unknown"
ARG
VERSION="unknown"
RUN
dnf
install
-y
git go kernel-devel make llvm clang unzip
RUN
dnf clean all
WORKDIR
/
RUN
curl
-qL
https://go.dev/dl/go
$GOVERSION
.linux-
$TARGETARCH
.tar.gz
-o
go.tar.gz
RUN
tar
-xzf
go.tar.gz
RUN
rm
go.tar.gz
ENV
GOROOT /go
RUN
mkdir
-p
/gopath
ENV
GOPATH /gopath
ENV
PATH $GOROOT/bin:$GOPATH/bin:$PATH
WORKDIR
/opt/app-root
WORKDIR
/opt/app-root
# Copy the go manifests and source
# Copy the go manifests and source
...
@@ -39,7 +25,6 @@ COPY Makefile Makefile
...
@@ -39,7 +25,6 @@ COPY Makefile Makefile
COPY
.mk/ .mk/
COPY
.mk/ .mk/
# Build
# Build
RUN
make gen-bpf
RUN
GOARCH
=
$TARGETARCH
make compile
RUN
GOARCH
=
$TARGETARCH
make compile
# Create final image from minimal + built binary
# Create final image from minimal + built binary
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment