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
50809d11
Unverified
Commit
50809d11
authored
Apr 21, 2023
by
Adrian Sutton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-program: Add docker image for op-program
parent
b65152ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
config.yml
.circleci/config.yml
+14
-0
Dockerfile
op-program/Dockerfile
+29
-0
No files found.
.circleci/config.yml
View file @
50809d11
...
@@ -1348,6 +1348,20 @@ workflows:
...
@@ -1348,6 +1348,20 @@ workflows:
context
:
context
:
-
oplabs-gcr
-
oplabs-gcr
platforms
:
"
linux/amd64,linux/arm64"
platforms
:
"
linux/amd64,linux/arm64"
-
docker-build
:
name
:
op-program-docker-build
docker_file
:
op-program/Dockerfile
docker_name
:
op-program
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_context
:
.
-
docker-publish
:
name
:
op-program-docker-publish
docker_file
:
op-program/Dockerfile
docker_name
:
op-program
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
context
:
-
oplabs-gcr
platforms
:
"
linux/amd64,linux/arm64"
-
docker-build
:
-
docker-build
:
name
:
op-proposer-docker-build
name
:
op-proposer-docker-build
docker_file
:
op-proposer/Dockerfile
docker_file
:
op-proposer/Dockerfile
...
...
op-program/Dockerfile
0 → 100644
View file @
50809d11
FROM
--platform=$BUILDPLATFORM golang:1.19.0-alpine3.15 as builder
ARG
VERSION=v0.0.0
RUN
apk add
--no-cache
make gcc musl-dev linux-headers git jq bash
# build op-program with the shared go.mod & go.sum files
COPY
./op-program /app/op-program
COPY
./op-node /app/op-node
COPY
./op-chain-ops /app/op-chain-ops
COPY
./op-service /app/op-service
COPY
./op-bindings /app/op-bindings
COPY
./go.mod /app/go.mod
COPY
./go.sum /app/go.sum
COPY
./.git /app/.git
WORKDIR
/app/op-program
RUN
go mod download
ARG
TARGETOS TARGETARCH
RUN
make op-program
VERSION
=
"
$VERSION
"
GOOS
=
$TARGETOS
GOARCH
=
$TARGETARCH
FROM
alpine:3.15
COPY
--from=builder /app/op-program/bin/op-program /usr/local/bin
CMD
["op-program"]
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