-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on build script for docker images and browser extensions
- Loading branch information
Showing
63 changed files
with
1,757 additions
and
2,242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs*packj | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Tool logs | ||
npm-debug.log | ||
yarn-*.log | ||
|
||
artifacts | ||
browser_extension | ||
# Tests | ||
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
playwright/.auth | ||
tests/*.png | ||
|
||
artifacts/* | ||
dist | ||
node_modules | ||
tests | ||
browser_extension/* | ||
!browser_extension/chrome/background.js | ||
!browser_extension/chrome/manifest.json | ||
!browser_extension/firefox/background.js | ||
!browser_extension/firefox/manifest.json | ||
tmp | ||
|
||
old | ||
src-tauri/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
chrome.action.onClicked.addListener(function () { | ||
chrome.tabs.create({ url: chrome.runtime.getURL('index.html') }) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "Elasticvue", | ||
"version": "0.44.0", | ||
"description": "Elasticsearch frontend", | ||
"manifest_version": 3, | ||
"icons": { | ||
"16": "./logo/blue_16.png", | ||
"32": "./logo/blue_32.png", | ||
"48": "./logo/blue_48.png", | ||
"128": "./logo/blue_128.png" | ||
}, | ||
"background": { | ||
"service_worker": "background.js" | ||
}, | ||
"action": {}, | ||
"host_permissions": [ | ||
"http://*/*", | ||
"https://*/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
chrome.browserAction.onClicked.addListener(function () { | ||
chrome.tabs.create({ url: chrome.runtime.getURL('index.html') }) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "Elasticvue", | ||
"version": "0.44.0", | ||
"description": "Elasticsearch frontend", | ||
"manifest_version": 2, | ||
"icons": { | ||
"16": "./logo/blue_16.png", | ||
"32": "./logo/blue_32.png", | ||
"48": "./logo/blue_48.png", | ||
"128": "./logo/blue_128.png" | ||
}, | ||
"background": { | ||
"scripts": [ | ||
"background.js" | ||
], | ||
"persistent": true | ||
}, | ||
"browser_action": {}, | ||
"permissions": [ | ||
"http://*/*", | ||
"https://*/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
FROM node:18-alpine AS builder | ||
WORKDIR /usr/src/app | ||
FROM node:18-bookworm AS builder | ||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
RUN yarn install --ignore-optional | ||
COPY . . | ||
RUN yarn build | ||
RUN yarn build -l silent | ||
|
||
FROM nginx:mainline-alpine | ||
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html | ||
COPY --from=builder /app/dist /usr/share/nginx/html | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY docker/nginx/elasticvue.conf /etc/nginx/conf.d/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:18-bookworm | ||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
RUN npm install --global web-ext | ||
|
||
RUN apt-get update -qq \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y \ | ||
zip \ | ||
&& apt-get clean \ | ||
&& apt-get autoclean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
RUN yarn install --ignore-optional | ||
COPY . . | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
FROM --platform=$BUILDPLATFORM node:18-alpine AS builder | ||
WORKDIR /usr/src/app | ||
FROM --platform=$BUILDPLATFORM node:18-bookworm AS builder | ||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
RUN yarn install --ignore-optional | ||
COPY . . | ||
RUN yarn build | ||
RUN yarn build -l silent | ||
|
||
FROM nginx:mainline-alpine | ||
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html | ||
COPY --from=builder /app/dist /usr/share/nginx/html | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY docker/nginx/elasticvue.conf /etc/nginx/conf.d/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Elasticvue</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/src/assets/images/icons/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Elasticvue</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.