Skip to content

Commit 087ace1

Browse files
committed
Enable mirror mode to fill staging azure blob storage with production data
1 parent 8ecf02c commit 087ace1

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG SERVER_VERSION=v0.30.0
1+
ARG SERVER_VERSION=e2032d1
22

33
# Builder image to compile the website
44
FROM ubuntu AS builder
@@ -27,7 +27,7 @@ RUN /usr/bin/yarn --cwd website \
2727
&& /usr/bin/yarn --cwd website build
2828

2929
# Main image derived from openvsx-server
30-
FROM ghcr.io/eclipse/openvsx-server:${SERVER_VERSION}
30+
FROM ghcr.io/netomi/openvsx-server:${SERVER_VERSION}
3131
ARG SERVER_VERSION
3232

3333
COPY --from=builder --chown=openvsx:openvsx /workdir/website/static/ BOOT-INF/classes/static/

configuration/application.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@ ovsx:
161161
migration:
162162
enabled: false
163163
primary-service: azure-blob
164+
upstream:
165+
url: https://open-vsx.org
166+
data:
167+
mirror:
168+
enabled: true
169+
server-url: https://open-vsx.org
170+
requests-per-second: 5
171+
user-name: super_user
172+
schedule: '0/1 * * * *'
173+
read-only:
174+
disallowed-methods: POST, PUT, PATCH, DELETE
175+
allowed-endpoints: /vscode/gallery/extensionquery, /admin/update-search-index, /api/-/query
176+
exclude-extensions:
177+
- vscode.*
164178
webui:
165179
frontendRoutes: "/extension/**,/namespace/**,/user-settings/**,/admin-dashboard/**,/about,/publisher-agreement-*,/terms-of-use,/members,/adopters,/error"
166180
eclipse:

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"repository": "https://github.com/eclipse/open-vsx.org",
77
"license": "EPL-2.0",
88
"dependencies": {
9-
"openvsx-webui": "0.17.0"
9+
"openvsx-webui": "0.16.4"
1010
},
1111
"devDependencies": {
1212
"@types/markdown-it": "^12.2.3",

website/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ __metadata:
23932393
"@types/react-router-dom": "npm:^5.3.3"
23942394
css-loader: "npm:^6.8.1"
23952395
express: "npm:^4.21.2"
2396-
openvsx-webui: "npm:0.17.0"
2396+
openvsx-webui: "npm:0.16.4"
23972397
source-map-loader: "npm:^4.0.1"
23982398
style-loader: "npm:^3.3.3"
23992399
typescript: "npm:~5.1.6"
@@ -2412,9 +2412,9 @@ __metadata:
24122412
languageName: node
24132413
linkType: hard
24142414

2415-
"openvsx-webui@npm:0.17.0":
2416-
version: 0.17.0
2417-
resolution: "openvsx-webui@npm:0.17.0"
2415+
"openvsx-webui@npm:0.16.4":
2416+
version: 0.16.4
2417+
resolution: "openvsx-webui@npm:0.16.4"
24182418
dependencies:
24192419
"@emotion/react": "npm:^11.11.1"
24202420
"@emotion/styled": "npm:^11.11.0"
@@ -2438,7 +2438,7 @@ __metadata:
24382438
react-infinite-scroller: "npm:^1.2.6"
24392439
react-router: "npm:^6.14.2"
24402440
react-router-dom: "npm:^6.14.1"
2441-
checksum: 10/6118ce41c41d2e974e4393b862a38875616325a92d7579d322d17257b5da6b7ac7fe9fd172e912d8d37feab1f63a4d902150c3555a5ae4cdc97acad872c7e34d
2441+
checksum: 10/09a7c828b4dad23129a898800dcb25ffe052bd9557b6c1028a680544bb62a81efe9f5b160ca02194b697d66387e8a22e193b38ba338337c8d988f116e69a8aec
24422442
languageName: node
24432443
linkType: hard
24442444

0 commit comments

Comments
 (0)