Skip to content

Commit

Permalink
path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Aymen-Tirchi committed Sep 23, 2023
1 parent 592d26b commit 7c4d020
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 27 deletions.
16 changes: 8 additions & 8 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ services:

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

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

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

run-op-proposer:
build:
context: ./docker
dockerfile: Dockerfile.run-op-proposer
context: .
dockerfile: docker/Dockerfile.run-op-proposer
volumes:
- ./op-stack-deployer:/app
working_dir: /app
Expand Down
14 changes: 7 additions & 7 deletions docker/Dockerfile.op-stack
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FROM common AS build-optimism

RUN chmod +x /app/entrypoint-build-optimism.sh

RUN ["sh", "/app/entrypoint-build-optimism.sh"]
RUN /app/entrypoint-build-optimism.sh

# Stage 2: Build op-geth
FROM common AS build-op-geth
Expand All @@ -26,7 +26,7 @@ COPY docker/scripts/entrypoint-build-op-geth.sh /app/

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

RUN ["sh", "/app/entrypoint-build-op-geth.sh"]
RUN /app/entrypoint-build-op-geth.sh

# Stage 3: Generate Keys
FROM common AS generate-keys
Expand All @@ -35,7 +35,7 @@ COPY docker/scripts/entrypoint-generate-keys.sh /app/

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

RUN ["sh", "/app/entrypoint-generate-keys.sh"]
RUN /app/entrypoint-generate-keys.sh

# Stage 4: Configure Network
FROM common AS configure-network
Expand All @@ -44,7 +44,7 @@ COPY docker/scripts/entrypoint-configure-network.sh /app/

RUN chmod +x /app/entrypoint-configure-network.sh

RUN ["sh", "/app/entrypoint-configure-network.sh"]
RUN /app/entrypoint-configure-network.sh

# Stage 5: Deploy L1 Contracts
FROM common AS deploy-l1-contracts
Expand All @@ -53,7 +53,7 @@ COPY docker/scripts/entrypoint-deploy-l1-contracts.sh /app/

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

RUN ["sh", "/app/entrypoint-deploy-l1-contracts.sh"]
RUN /app/entrypoint-deploy-l1-contracts.sh

# Stage 6: Configure L2
FROM common AS configure-l2
Expand All @@ -62,7 +62,7 @@ COPY docker/scripts/entrypoint-l2-config.sh /app/

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

RUN ["sh", "/app/entrypoint-l2-config.sh"]
RUN /app/entrypoint-l2-config.sh

# Stage 7: Initialize op-geth
FROM common AS init-op-geth
Expand All @@ -71,4 +71,4 @@ COPY docker/scripts/entrypoint-init-op-geth.sh /app/

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

RUN ["sh", "/app/entrypoint-init-op-geth.sh"]
RUN /app/entrypoint-init-op-geth.sh
10 changes: 7 additions & 3 deletions docker/Dockerfile.run-op-batcher
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM golang:alpine
# Use the official Go image as the base image
FROM golang:alpine AS run-op-batcher

# Set the working directory inside the container
WORKDIR /app

COPY Dockerfile.run-op-batcher /app/
# Copy the source code for 10_run_op-batcher
COPY cmd/10_run_op-batcher /app/

RUN ["sh", "go run cmd/10_run_op-batcher/main.go"]
# Define the command to run when the container starts
CMD ["go run cmd/10_run_op-batcher/main.go "]
10 changes: 7 additions & 3 deletions docker/Dockerfile.run-op-geth
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM golang:alpine
# Use the official Go image as the base image
FROM golang:alpine AS run-op-geth

# Set the working directory inside the container
WORKDIR /app

COPY Dockerfile.run-op-geth /app/
# Copy the source code for 8_run_op-geth
COPY cmd/8_run_op-geth /app/

RUN ["sh", "go run cmd/8_run_op-geth/main.go"]
# Define the command to run when the container starts
CMD ["go run cmd/8_run_op-geth/main.go"]
10 changes: 7 additions & 3 deletions docker/Dockerfile.run-op-node
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM golang:alpine
# Use the official Go image as the base image
FROM golang:alpine AS run-op-node

# Set the working directory inside the container
WORKDIR /app

COPY Dockerfile.run-op-node /app/
# Copy the source code for 9_run_op-node
COPY cmd/9_run_op-node /app/

RUN ["sh", "go run cmd/9_run_op-node/main.go"]
# Define the command to run when the container starts
CMD ["go run cmd/9_run_op-node/main.go "]
10 changes: 7 additions & 3 deletions docker/Dockerfile.run-op-proposer
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM golang:alpine
# Use the official Go image as the base image
FROM golang:alpine AS run-op-proposer

# Set the working directory inside the container
WORKDIR /app

COPY Dockerfile.run-op-proposer /app/
# Copy the source code for 11_run_op-proposer
COPY cmd/11_run_op-proposer /app/

RUN ["sh", "go run cmd/11_run_op-proposer/main.go"]
# Define the command to run when the container starts
CMD ["go run cmd/11_run_op-proposer/main.go"]

0 comments on commit 7c4d020

Please sign in to comment.