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
10c75e80
Unverified
Commit
10c75e80
authored
Aug 17, 2021
by
Annie Ke
Committed by
GitHub
Aug 17, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1343 from ethereum-optimism/annie/healthcheck-docker
ci: add replica-healthcheck to image publish workflow
parents
796dbda5
91c6287e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
1 deletion
+85
-1
red-peaches-kneel.md
.changeset/red-peaches-kneel.md
+5
-0
publish-canary.yml
.github/workflows/publish-canary.yml
+28
-0
release.yml
.github/workflows/release.yml
+28
-0
Dockerfile.replica-healthcheck
ops/docker/Dockerfile.replica-healthcheck
+24
-0
healthcheck-server.ts
packages/replica-healthcheck/src/healthcheck-server.ts
+0
-1
No files found.
.changeset/red-peaches-kneel.md
0 → 100644
View file @
10c75e80
---
'
@eth-optimism/replica-healthcheck'
:
patch
---
Bug fix from leftover error during testing
.github/workflows/publish-canary.yml
View file @
10c75e80
...
...
@@ -21,6 +21,7 @@ jobs:
message-relayer
:
${{ steps.packages.outputs.message-relayer }}
data-transport-layer
:
${{ steps.packages.outputs.data-transport-layer }}
contracts
:
${{ steps.packages.outputs.contracts }}
replica-healthcheck
:
${{ steps.packages.outputs.replica-healthcheck }}
canary-docker-tag
:
${{ steps.docker-image-name.outputs.canary-docker-tag }}
steps
:
...
...
@@ -128,6 +129,7 @@ jobs:
data-transport-layer
:
${{ needs.canary-publish.outputs.data-transport-layer }}
contracts
:
${{ needs.canary-publish.outputs.contracts }}
integration-tests
:
${{ needs.canary-publish.outputs.integration-tests }}
replica-healthcheck
:
${{ needs.canary-publish.outputs.replica-healthcheck }}
canary-docker-tag
:
${{ needs.canary-publish.outputs.canary-docker-tag }}
...
...
@@ -280,3 +282,29 @@ jobs:
file
:
./ops/docker/Dockerfile.integration-tests
push
:
true
tags
:
ethereumoptimism/integration-tests:${{ needs.builder.outputs.canary-docker-tag }}
replica-healthcheck
:
name
:
Publish Data Transport Layer Version ${{ needs.builder.outputs.canary-docker-tag }}
needs
:
builder
if
:
needs.builder.outputs.replica-healthcheck != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/Dockerfile.replica-healthcheck
push
:
true
tags
:
ethereumoptimism/replica-healthcheck:${{ needs.builder.outputs.canary-docker-tag }}
.github/workflows/release.yml
View file @
10c75e80
...
...
@@ -18,6 +18,7 @@ jobs:
data-transport-layer
:
${{ steps.packages.outputs.data-transport-layer }}
contracts
:
${{ steps.packages.outputs.contracts }}
gas-oracle
:
${{ steps.packages.outputs.gas-oracle }}
replica-healthcheck
:
${{ steps.packages.outputs.replica-healthcheck }}
steps
:
-
name
:
Checkout Repo
...
...
@@ -148,6 +149,7 @@ jobs:
data-transport-layer
:
${{ needs.release.outputs.data-transport-layer }}
contracts
:
${{ needs.release.outputs.contracts }}
integration-tests
:
${{ needs.release.outputs.integration-tests }}
replica-healthcheck
:
${{ needs.release.outputs.replica-healthcheck }}
steps
:
-
name
:
Checkout
...
...
@@ -298,3 +300,29 @@ jobs:
file
:
./ops/docker/Dockerfile.integration-tests
push
:
true
tags
:
ethereumoptimism/integration-tests:${{ needs.builder.outputs.integration-tests }},ethereumoptimism/integration-tests:latest
replica-healthcheck
:
name
:
Publish Replica Healthcheck Version ${{ needs.builder.outputs.replica-healthcheck }}
needs
:
builder
if
:
needs.builder.outputs.replica-healthcheck != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/Dockerfile.replica-healthcheck
push
:
true
tags
:
ethereumoptimism/replica-healthcheck:${{ needs.builder.outputs.replica-healthcheck }},ethereumoptimism/replica-healthcheck:latest
ops/docker/Dockerfile.replica-healthcheck
0 → 100644
View file @
10c75e80
FROM ethereumoptimism/builder AS builder
FROM node:14-alpine
WORKDIR /opt/optimism
# copy top level files
COPY --from=builder /optimism/*.json ./
COPY --from=builder /optimism/yarn.lock .
COPY --from=builder /optimism/node_modules ./node_modules
# copy deps (would have been nice if docker followed the symlinks required)
COPY --from=builder /optimism/packages/core-utils/package.json ./packages/core-utils/package.json
COPY --from=builder /optimism/packages/core-utils/dist ./packages/core-utils/dist
COPY --from=builder /optimism/packages/common-ts/package.json ./packages/common-ts/package.json
COPY --from=builder /optimism/packages/common-ts/dist ./packages/common-ts/dist
# copy the service
WORKDIR /opt/optimism/packages/replica-healthcheck
COPY --from=builder /optimism/packages/replica-healthcheck/dist ./dist
COPY --from=builder /optimism/packages/replica-healthcheck/package.json .
COPY --from=builder /optimism/packages/replica-healthcheck/node_modules ./node_modules
ENTRYPOINT ["node", "dist/exec/run-healthcheck-server.js"]
packages/replica-healthcheck/src/healthcheck-server.ts
View file @
10c75e80
...
...
@@ -92,7 +92,6 @@ export class HealthcheckServer {
}
runSyncCheck
=
async
()
=>
{
throw
new
Error
(
'
trial
'
)
const
sequencerProvider
=
injectL2Context
(
new
providers
.
JsonRpcProvider
(
this
.
options
.
sequencerRpcProvider
)
)
...
...
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