Skip to content

Commit 87e0339

Browse files
authored
optimize size of docker image from 4.1GB to 2.7GB (#16)
* optimize size of docker image from 4.1GB to 2.7GB * update readme remove comments * update readme * update read me * update change log
1 parent 8ebaa47 commit 87e0339

File tree

4 files changed

+1931
-1885
lines changed

4 files changed

+1931
-1885
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

Dockerfile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
#Specify a base image
2-
FROM node:alpine
1+
# Notice: To save space, npm install was run on local machine
32

4-
FROM mcr.microsoft.com/playwright:v1.29.0
3+
#Specify a base image
4+
FROM mcr.microsoft.com/playwright:v1.32.0
55

66
WORKDIR /usr/app
77

88
#Install dependecies
99

1010
COPY ./package.json ./
11-
RUN npm install
12-
COPY ./ ./
1311

14-
WORKDIR /usr/app/service/lambdaFunction
15-
16-
RUN npm install --force
17-
RUN npm install @ffmpeg-installer/linux-x64 --force
12+
COPY ./ ./
1813

1914
WORKDIR /usr/app/client
2015

21-
RUN npm install
2216

2317
RUN npm run build
2418

25-
RUN npx playwright install chromium
26-
2719
WORKDIR /usr/app
2820

2921
#Default command

README.md

Lines changed: 38 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -79,68 +79,44 @@ and then open [Logz.io](https://app.logz.io/#/dashboard/metrics).
7979

8080
## Changelong
8181

82-
1.2.0:
83-
84-
- Add option to record a browser based video of the test
85-
- Store browser based videos of the test in S3 user bucket
86-
87-
1.1.9:
88-
89-
- Split har reports between pages what will be open during the test
90-
91-
1.1.8:
92-
93-
- Add Option to choose device where need to run user flow
94-
95-
1.1.7:
96-
97-
- Add first invocation after cloud function was uploaded
98-
99-
1.1.6:
100-
101-
- fix typo in `log type`
102-
103-
- update yml file to add policy for use S3
104-
105-
- add region and geolocation to logs
106-
107-
1.1.5:
108-
109-
- Update sheduler name from static to dynamic
110-
111-
1.1.4:
112-
113-
- Update the playwright from 1.24.0 to 1.30.0
114-
115-
- Add dropdown UI for regions select
116-
117-
1.1.3:
118-
119-
- Update UI
120-
121-
1.1.2:
122-
123-
- Update docker image, to upload playwright to the Docker.
124-
- CSS fix, update test status box.
125-
- Add cleanup for useEffect
126-
127-
1.1.1:
128-
Refactor Components:
129-
130-
- Move from type to interfaces.
131-
132-
Add to summaryLog:
133-
134-
- totalDuration
135-
136-
1.1.0:
137-
138-
- Update UI
139-
- Initial Release
140-
141-
1.0.0:
142-
143-
- Initial Release
82+
- **1.2.2**:
83+
- Reduce docker image size
84+
- **1.2.1**:
85+
- Fix typo AWS S3 object(video) link
86+
- **1.2.0**:
87+
- Add option to record a browser based video of the test
88+
- Store browser based videos of the test in S3 user bucket
89+
- **1.1.9**:
90+
- Split har reports between pages what will be open during the test
91+
- **1.1.8**:
92+
- Add Option to choose device where need to run user flow
93+
- **1.1.7**:
94+
- Add first invocation after cloud function was uploaded
95+
- **1.1.6**:
96+
- fix typo in `log type`
97+
- update yml file to add policy for use S3
98+
- add region and geolocation to logs
99+
- **1.1.5**:
100+
- Update sheduler name from static to dynamic
101+
- **1.1.4**:
102+
- Update the playwright from 1.24.0 to 1.30.0
103+
- Add dropdown UI for regions select
104+
- **1.1.3**:
105+
- Update UI
106+
- **1.1.2**:
107+
- Update docker image, to upload playwright to the Docker.
108+
- CSS fix, update test status box.
109+
- Add cleanup for useEffect
110+
- **1.1.1**:
111+
- **Refactor Components**:
112+
- Move from type to interfaces.
113+
- **Add to summaryLog**:
114+
- totalDuration
115+
- **1.1.0**:
116+
- Update UI
117+
- Initial Release
118+
- **1.0.0**:
119+
- Initial Release
144120

145121
## License
146122

0 commit comments

Comments
 (0)