Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
2b510d2b
Commit
2b510d2b
authored
Nov 28, 2023
by
Matthew Slipper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Fix multi-client builds
parent
ce306e5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Dockerfile
ops/docker/op-stack-go/Dockerfile
+9
-9
No files found.
ops/docker/op-stack-go/Dockerfile
View file @
2b510d2b
...
...
@@ -7,7 +7,7 @@ ARG TARGETARCH
ARG
TARGET_BASE_IMAGE=alpine:3.18
# We may be cross-building for another platform. Specify which platform we need as builder.
FROM
--platform=$
BUILD
PLATFORM golang:1.21.3-alpine3.18 as builder
FROM
--platform=$
TARGET
PLATFORM golang:1.21.3-alpine3.18 as builder
RUN
apk add
--no-cache
make gcc musl-dev linux-headers git jq bash
...
...
@@ -42,43 +42,43 @@ ARG GIT_DATE
# Build the Go services, utilizing caches and share the many common packages.
# The "id" defaults to the value of "target", the cache will thus be reused during this build.
# "sharing" defaults to "shared", the cache will thus be available to other concurrent docker builds.
FROM
--platform=$
BUILD
PLATFORM builder as cannon-builder
FROM
--platform=$
TARGET
PLATFORM builder as cannon-builder
ARG
CANNON_VERSION=v0.0.0
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
cannon
&&
make cannon
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$CANNON_VERSION
"
FROM
--platform=$
BUILD
PLATFORM builder as op-program-builder
FROM
--platform=$
TARGET
PLATFORM builder as op-program-builder
ARG
OP_PROGRAM_VERSION=v0.0.0
# note: we only build the host, that's all the user needs. No Go MIPS cross-build in docker
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
op-program
&&
make op-program-host
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$OP_PROGRAM_VERSION
"
FROM
--platform=$
BUILD
PLATFORM builder as op-heartbeat-builder
FROM
--platform=$
TARGET
PLATFORM builder as op-heartbeat-builder
ARG
OP_HEARTBEAT_VERSION=v0.0.0
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
op-heartbeat
&&
make op-heartbeat
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$OP_HEARTBEAT_VERSION
"
FROM
--platform=$
BUILD
PLATFORM builder as op-wheel-builder
FROM
--platform=$
TARGET
PLATFORM builder as op-wheel-builder
ARG
OP_WHEEL_VERSION=v0.0.0
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
op-wheel
&&
make op-wheel
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$OP_WHEEL_VERSION
"
FROM
--platform=$
BUILD
PLATFORM builder as op-node-builder
FROM
--platform=$
TARGET
PLATFORM builder as op-node-builder
ARG
OP_NODE_VERSION=v0.0.0
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
op-node
&&
make op-node
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$OP_NODE_VERSION
"
FROM
--platform=$
BUILD
PLATFORM builder as op-challenger-builder
FROM
--platform=$
TARGET
PLATFORM builder as op-challenger-builder
ARG
OP_CHALLENGER_VERSION=v0.0.0
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
op-challenger
&&
make op-challenger
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$OP_CHALLENGER_VERSION
"
FROM
--platform=$
BUILD
PLATFORM builder as op-batcher-builder
FROM
--platform=$
TARGET
PLATFORM builder as op-batcher-builder
ARG
OP_BATCHER_VERSION=v0.0.0
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
op-batcher
&&
make op-batcher
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$OP_BATCHER_VERSION
"
FROM
--platform=$
BUILD
PLATFORM builder as op-proposer-builder
FROM
--platform=$
TARGET
PLATFORM builder as op-proposer-builder
ARG
OP_PROPOSER_VERSION=v0.0.0
RUN
--mount
=
type
=
cache,target
=
/root/.cache/go-build
cd
op-proposer
&&
make op-proposer
\
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
GITCOMMIT
=
$GIT_COMMIT
GITDATE
=
$GIT_DATE
VERSION
=
"
$OP_PROPOSER_VERSION
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment