Skip to content

Commit 24ad9e8

Browse files
committed
fix: file refactor
1 parent e64a626 commit 24ad9e8

File tree

8 files changed

+22
-1623
lines changed

8 files changed

+22
-1623
lines changed

‎./workflows/publish-docker-app-images.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
- westlad/ping-pong
67

78
jobs:
89
release:
@@ -29,10 +30,11 @@ jobs:
2930
- run: echo ${{ steps.semantic.outputs.release-version }}
3031

3132
- name: Docker push version
32-
if: steps.semantic.outputs.new-release-published == 'true'
3333
run: |
3434
docker build -t ghcr.io/eyblockchain/nightfall3-proposer . -f proposer.Dockerfile
3535
docker push ghcr.io/eyblockchain/nightfall3-proposer
36+
if: steps.semantic.outputs.new-release-published == 'true'
37+
run: |
3638
docker build -t ghcr.io/eyblockchain/nightfall3-proposer:$RELEASE_VERSION . -f proposer.Dockerfile
3739
docker push ghcr.io/eyblockchain/nightfall3-proposer:$RELEASE_VERSION
3840
env:
@@ -44,10 +46,11 @@ jobs:
4446
- run: echo ${{ steps.semantic.outputs.release-version }}
4547

4648
- name: Docker push version
47-
if: steps.semantic.outputs.new-release-published == 'true'
4849
run: |
4950
docker build -t ghcr.io/eyblockchain/nightfall3-user-local . -f user-local.Dockerfile
5051
docker push ghcr.io/eyblockchain/nightfall3-user-local
52+
if: steps.semantic.outputs.new-release-published == 'true'
53+
run: |
5154
docker build -t ghcr.io/eyblockchain/nightfall3-user-local:$RELEASE_VERSION . -f user-local.Dockerfile
5255
docker push ghcr.io/eyblockchain/nightfall3-user-local:$RELEASE_VERSION
5356
env:

‎proposer.Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
FROM node:14.17
22

3-
WORKDIR /
3+
WORKDIR /app
44
COPY common-files common-files
5-
COPY config/default.js app/config/default.js
5+
COPY config/default.js config/default.js
6+
COPY cli/lib cli/lib
67

7-
WORKDIR /app
8+
WORKDIR /app/test/ping-pong/proposer
89
RUN apt-get update -y
910
RUN apt-get install -y netcat-openbsd
1011
COPY test/ping-pong/proposer/package*.json test/ping-pong/proposer/pre-start-script.sh ./
@@ -15,6 +16,6 @@ COPY test/ping-pong/proposer/docker-entrypoint.sh docker-entrypoint.sh
1516
EXPOSE 8080
1617

1718
RUN npm ci
18-
ENTRYPOINT ["/app/docker-entrypoint.sh"]
19+
ENTRYPOINT ["/app/test/ping-pong/proposer/docker-entrypoint.sh"]
1920

2021
CMD ["npm", "start"]

‎test/ping-pong/docker-compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ services:
104104
volumes:
105105
- type: bind
106106
source: ../../common-files
107-
target: /common-files
107+
target: /app/common-files
108108
- type: bind
109109
source: ./proposer/src
110-
target: /app/src
110+
target: /app/test/ping-pong/proposer/src
111111
environment:
112112
OPTIMIST_HOST: optimist
113113
OPTIMIST_WS_PORT: 8080
@@ -124,10 +124,10 @@ services:
124124
volumes:
125125
- type: bind
126126
source: ../../common-files
127-
target: /common-files
127+
target: /app/common-files
128128
- type: bind
129129
source: ./user-local/src
130-
target: /app/src
130+
target: /app/test/ping-pong/user-local/src
131131
environment:
132132
OPTIMIST_HOST: optimist
133133
OPTIMIST_WS_PORT: 8080

‎test/ping-pong/proposer/src/index.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Module that runs up as a proposer
33
*/
44
import config from 'config';
55
import logger from 'common-files/utils/logger.mjs';
6-
import Nf3 from './nf3.mjs';
6+
import Nf3 from '../../../../cli/lib/nf3.mjs';
77

88
const { proposerEthereumSigningKey, optimistWsUrl, web3WsUrl, clientBaseUrl, optimistBaseUrl } =
99
config;

0 commit comments

Comments
 (0)