mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-15 20:58:09 +00:00
Bump Elasticvue to v1.7.0
- adding support for latest Elastic Stack
This commit is contained in:
parent
7eb271c6ac
commit
3372a23eb2
3 changed files with 5 additions and 3 deletions
|
@ -1,17 +1,19 @@
|
||||||
### elasticvue build is currently broken, issue has been opened https://github.com/cars10/elasticvue/issues/215
|
### elasticvue build is currently broken, issue has been opened https://github.com/cars10/elasticvue/issues/215
|
||||||
### in the meantime we are using the older dist, if not resolved we need to find a different solution
|
### in the meantime we are using the older dist, if not resolved we need to find a different solution
|
||||||
FROM node:20-alpine AS builder
|
FROM node:22.5.1-alpine AS builder
|
||||||
#
|
#
|
||||||
# Prep and build Elasticvue
|
# Prep and build Elasticvue
|
||||||
RUN apk -U --no-cache add git && \
|
RUN apk -U --no-cache add git && \
|
||||||
git clone https://github.com/cars10/elasticvue -b v1.1.0 /opt/src && \
|
git clone https://github.com/cars10/elasticvue -b v1.7.0 /opt/src && \
|
||||||
# We need to adjust consts.ts so the user has connection suggestion for reverse proxied ES
|
# We need to adjust consts.ts so the user has connection suggestion for reverse proxied ES
|
||||||
sed -i "s#export const DEFAULT_CLUSTER_URI = 'http://localhost:9200'#export const DEFAULT_CLUSTER_URI = window.location.origin + '/es'#g" /opt/src/src/consts.ts && \
|
sed -i "s#export const DEFAULT_CLUSTER_URI = 'http://localhost:9200'#export const DEFAULT_CLUSTER_URI = window.location.origin + '/es'#g" /opt/src/src/consts.ts && \
|
||||||
sed -i 's#href="/images/logo/favicon.ico"#href="images/logo/favicon.ico"#g' /opt/src/index.html && \
|
sed -i 's#href="/images/logo/favicon.ico"#href="images/logo/favicon.ico"#g' /opt/src/index.html && \
|
||||||
mkdir /opt/app && \
|
mkdir /opt/app && \
|
||||||
cd /opt/app && \
|
cd /opt/app && \
|
||||||
|
corepack enable && \
|
||||||
cp /opt/src/package.json . && \
|
cp /opt/src/package.json . && \
|
||||||
cp /opt/src/yarn.lock . && \
|
cp /opt/src/yarn.lock . && \
|
||||||
|
cp /opt/src/.yarnrc.yml . && \
|
||||||
yarn install && \
|
yarn install && \
|
||||||
cp -R /opt/src/* . && \
|
cp -R /opt/src/* . && \
|
||||||
export VITE_APP_BUILD_MODE=docker && \
|
export VITE_APP_BUILD_MODE=docker && \
|
||||||
|
|
BIN
docker/nginx/dist/html/esvue/esvue.tgz
vendored
BIN
docker/nginx/dist/html/esvue/esvue.tgz
vendored
Binary file not shown.
|
@ -20,7 +20,7 @@ services:
|
||||||
# ports:
|
# ports:
|
||||||
# - "64297:64297"
|
# - "64297:64297"
|
||||||
# - "127.0.0.1:64304:64304"
|
# - "127.0.0.1:64304:64304"
|
||||||
image: "dtagdevsec/nginx:24.04"
|
image: "ghcr.io/telekom-security/nginx:24.04.1"
|
||||||
read_only: true
|
read_only: true
|
||||||
volumes:
|
volumes:
|
||||||
- $HOME/tpotce/data/nginx/cert/:/etc/nginx/cert/:ro
|
- $HOME/tpotce/data/nginx/cert/:/etc/nginx/cert/:ro
|
||||||
|
|
Loading…
Reference in a new issue