Skip to content

Commit

Permalink
added dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Aymen-Tirchi committed Sep 17, 2023
1 parent f15d0e6 commit c55084e
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 30 deletions.
9 changes: 0 additions & 9 deletions Dockerfile.deploy-l1-contracts

This file was deleted.

22 changes: 11 additions & 11 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

build-optimism:
build:
context: .
context: ./docker
dockerfile: Dockerfile.build-optimism
volumes:
- ./op-stack-deployer:/app
Expand All @@ -15,7 +15,7 @@ services:

build-op-geth:
build:
context: .
context: ./docker
dockerfile: Dockerfile.build-op-geth
volumes:
- ./op-stack-deployer:/app
Expand All @@ -26,7 +26,7 @@ services:

generate-keys:
build:
context: .
context: ./docker
dockerfile: Dockerfile.generate-keys
volumes:
- ./op-stack-deployer:/app
Expand All @@ -37,7 +37,7 @@ services:

deploy-l1-contracts:
build:
context: .
context: ./docker
dockerfile: Dockerfile.deploy-l1-contracts
volumes:
- ./op-stack-deployer:/app
Expand All @@ -48,7 +48,7 @@ services:

l2-config:
build:
context: .
context: ./docker
dockerfile: Dockerfile.l2-config
volumes:
- ./op-stack-deployer:/app
Expand All @@ -59,7 +59,7 @@ services:

init-op-geth:
build:
context: .
context: ./docker
dockerfile: Dockerfile.init-op-geth
volumes:
- ./op-stack-deployer:/app
Expand All @@ -70,7 +70,7 @@ services:

run-op-geth:
build:
context: .
context: ./docker
dockerfile: Dockerfile.run-op-geth
volumes:
- ./op-stack-deployer:/app
Expand All @@ -81,7 +81,7 @@ services:

run-op-node:
build:
context: .
context: ./docker
dockerfile: Dockerfile.run-op-node
volumes:
- ./op-stack-deployer:/app
Expand All @@ -92,7 +92,7 @@ services:

run-op-batcher:
build:
context: .
context: ./docker
dockerfile: Dockerfile.run-op-batcher
volumes:
- ./op-stack-deployer:/app
Expand All @@ -103,7 +103,7 @@ services:

run_op-proposer:
build:
context: .
context: ./docker
dockerfile: Dockerfile.run-op-proposer
volumes:
- ./op-stack-deployer:/app
Expand All @@ -114,7 +114,7 @@ services:

get-rollup-address:
build:
context: .
context: ./docker
dockerfile: Dockerfile.get-rollup-address
volumes:
- ./op-stack-deployer:/app
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.build-op-geth → docker/Dockerfile.build-op-geth
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.build-op-geth /app/
COPY scripts/entrypoint-build-op-geth.sh /app/

RUN chmod +x /app/entrypoint-build-op-geth.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.build-optimism /app/
COPY scripts/entrypoint-build-optimism.sh /app/
COPY cmd /app/
COPY docker-compose /app/
COPY go.mod /app/
COPY go.sum /app/

RUN apk update && apk add --no-cache git nodejs npm make jq direnv

Expand Down
10 changes: 10 additions & 0 deletions docker/Dockerfile.deploy-l1-contracts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:alpine

WORKDIR /app

COPY Dockerfile.deploy-l1-contracts /app/
COPY scripts/entrypoint-deploy-l1-contracts.sh /app/

RUN chmod +x /app/entrypoint-deploy-l1-contracts.sh

CMD ["/app/entrypoint-deploy-l1-contracts.sh"]
3 changes: 2 additions & 1 deletion Dockerfile.generate-keys → docker/Dockerfile.generate-keys
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.generate-keys /app/
COPY scripts/entrypoint-generate-keys.sh /app/

RUN chmod +x /app/entrypoint-generate-keys.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.get-rollup-address /app/
COPY scripts/entrypoint-get-rollup-address.sh /app/

RUN chmod +x /app/entrypoint-get-rollup-address.sh

Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.init-op-geth → docker/Dockerfile.init-op-geth
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.init-op-geth /app/
COPY scripts/entrypoint-init-op-geth.sh /app/

RUN chmod +x /app/entrypoint-init-op-geth.sh

Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.l2-config → docker/Dockerfile.l2-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.l2-config /app/
COPY scripts/entrypoint-l2-config.sh /app/

RUN chmod +x /app/entrypoint-l2-config.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.run-op-batcher /app/

CMD ["go run cmd/10_run_op-batcher/main.go"]
2 changes: 1 addition & 1 deletion Dockerfile.run-op-geth → docker/Dockerfile.run-op-geth
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.run-op-geth /app/

CMD ["go run cmd/8_run_op-geth/main.go"]
2 changes: 1 addition & 1 deletion Dockerfile.run-op-node → docker/Dockerfile.run-op-node
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.run-op-node /app/

CMD ["go run cmd/9_run_op-node/main.go"]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM golang:alpine

WORKDIR /app

COPY . .
COPY Dockerfile.run-op-proposer /app/

CMD ["go run cmd/11_run_op-proposer/main.go"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c55084e

Please sign in to comment.