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
22d67f82
Unverified
Commit
22d67f82
authored
Mar 17, 2022
by
Matthew Slipper
Committed by
GitHub
Mar 17, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2327 from adriang-90/fix/Dockerfiles
[fix] Refactored Dockerfiles
parents
99021e29
88601cb7
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
8 deletions
+40
-8
fresh-dots-hear.md
.changeset/fresh-dots-hear.md
+12
-0
mighty-news-jam.md
.changeset/mighty-news-jam.md
+12
-0
Dockerfile.batch-submitter-service
ops/docker/Dockerfile.batch-submitter-service
+1
-0
Dockerfile.gas-oracle
ops/docker/Dockerfile.gas-oracle
+2
-1
Dockerfile.geth
ops/docker/Dockerfile.geth
+1
-0
Dockerfile.l2geth-exporter
ops/docker/Dockerfile.l2geth-exporter
+2
-2
Dockerfile.op-exporter
ops/docker/Dockerfile.op-exporter
+2
-2
Dockerfile.packages
ops/docker/Dockerfile.packages
+7
-2
Dockerfile
ops/docker/hardhat/Dockerfile
+1
-1
No files found.
.changeset/fresh-dots-hear.md
0 → 100644
View file @
22d67f82
---
'
@eth-optimism/batch-submitter-service'
:
patch
'
@eth-optimism/gas-oracle'
:
patch
'
@eth-optimism/integration-tests'
:
patch
'
@eth-optimism/l2geth'
:
patch
'
@eth-optimism/hardhat-node'
:
patch
'
@eth-optimism/contracts'
:
patch
'
@eth-optimism/data-transport-layer'
:
patch
'
@eth-optimism/message-relayer'
:
patch
---
Refactored Dockerfiles
.changeset/mighty-news-jam.md
0 → 100644
View file @
22d67f82
---
'
@eth-optimism/batch-submitter-service'
:
patch
'
@eth-optimism/gas-oracle'
:
patch
'
@eth-optimism/integration-tests'
:
patch
'
@eth-optimism/l2geth'
:
patch
'
@eth-optimism/hardhat-node'
:
patch
'
@eth-optimism/contracts'
:
patch
'
@eth-optimism/data-transport-layer'
:
patch
'
@eth-optimism/message-relayer'
:
patch
---
Refactored Dockerfiles
ops/docker/Dockerfile.batch-submitter-service
View file @
22d67f82
...
...
@@ -15,5 +15,6 @@ FROM alpine:3.13
RUN apk add --no-cache ca-certificates jq curl
COPY --from=builder /go/batch-submitter/batch-submitter /usr/local/bin/
WORKDIR /usr/local/bin
COPY ./ops/scripts/batch-submitter.sh .
ENTRYPOINT ["batch-submitter"]
ops/docker/Dockerfile.gas-oracle
View file @
22d67f82
...
...
@@ -2,7 +2,7 @@ FROM golang:1.15-alpine3.13 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
ADD
./go/gas-oracle /gas-oracle
COPY
./go/gas-oracle /gas-oracle
RUN cd /gas-oracle && make gas-oracle
FROM alpine:3.13
...
...
@@ -10,5 +10,6 @@ FROM alpine:3.13
RUN apk add --no-cache ca-certificates jq curl
COPY --from=builder /gas-oracle/gas-oracle /usr/local/bin/
WORKDIR /usr/local/bin/
COPY ./ops/scripts/gas-oracle.sh .
ENTRYPOINT ["gas-oracle"]
ops/docker/Dockerfile.geth
View file @
22d67f82
...
...
@@ -15,6 +15,7 @@ FROM alpine:3.13
RUN apk add --no-cache ca-certificates jq curl
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
WORKDIR /usr/local/bin/
EXPOSE 8545 8546 8547
COPY ./ops/scripts/geth.sh .
ENTRYPOINT ["geth"]
ops/docker/Dockerfile.l2geth-exporter
View file @
22d67f82
FROM golang:1.16 as builder
ADD
./go/l2geth-exporter /app/
COPY
./go/l2geth-exporter /app/
WORKDIR /app/
RUN make build
FROM alpine:
latest
FROM alpine:
3.13
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/l2geth-exporter /usr/local/bin/
...
...
ops/docker/Dockerfile.op-exporter
View file @
22d67f82
FROM golang:1.16 as builder
ADD
./go/op-exporter /app/
COPY
./go/op-exporter /app/
WORKDIR /app/
RUN make build
FROM alpine:
latest
FROM alpine:
3.13
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/op-exporter /usr/local/bin/
...
...
ops/docker/Dockerfile.packages
View file @
22d67f82
...
...
@@ -6,7 +6,12 @@
# when used with typescript/hardhat: https://github.com/nomiclabs/hardhat/issues/1219
FROM node:16.13-buster-slim as base
RUN apt-get update -y && apt-get install -y git curl jq python3
RUN apt-get update -y && apt-get install -y --no-install-recommends git \
curl \
jq \
python3 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# copy over the needed configs to run the dep installation
# note: this approach can be a bit unhandy to maintain, but it allows
...
...
@@ -22,7 +27,7 @@ COPY packages/message-relayer/package.json ./packages/message-relayer/package.js
COPY packages/replica-healthcheck/package.json ./packages/replica-healthcheck/package.json
COPY integration-tests/package.json ./integration-tests/package.json
RUN yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile
&& yarn cache clean
COPY ./packages ./packages
COPY ./integration-tests ./integration-tests
...
...
ops/docker/hardhat/Dockerfile
View file @
22d67f82
...
...
@@ -8,7 +8,7 @@ COPY [ \
# install deps
WORKDIR
/hardhat
RUN
yarn
install
RUN
yarn
install
&&
yarn cache clean
# bring in dockerenv so that hardhat launches with host = 0.0.0.0 instead of 127.0.0.1
# so that it's accessible from other boxes as well
...
...
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