Skip to content

Commit

Permalink
fix browser ext scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Dec 23, 2023
1 parent 230b9e3 commit fab2843
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ build_docker_nginx_multiarch:

# Build elasticvue browser extensions into ./artifacts via docker
build_browser_extensions:
docker build -f docker/Dockerfile_browser_ext -t elasticvue:build_browser_ext .
docker run --rm -v "$(CURDIR)/artifacts":/app/artifacts elasticvue:build_browser_ext scripts/build_browser_extensions.sh
mkdir -p "$(CURDIR)/artifacts"
docker build -f docker/Dockerfile_browser_ext -t elasticvue-build_browser_ext .
docker run --rm -v "$(CURDIR)/artifacts":/app/artifacts --user 1000 elasticvue-build_browser_ext scripts/build_browser_extensions.sh

run_docker_nginx:
docker run -p 8080:8080 elasticvue
12 changes: 8 additions & 4 deletions docker/Dockerfile_browser_ext
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
FROM node:20-bookworm
RUN mkdir /app
WORKDIR /app

RUN npm install --global web-ext

RUN apt-get update -qq \
&& apt-get upgrade -y \
Expand All @@ -13,10 +9,18 @@ RUN apt-get update -qq \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir /app
WORKDIR /app

RUN npm install --global web-ext

COPY package.json .
COPY yarn.lock .

RUN yarn install
COPY . .

RUN chown -R 1000:1000 /app
USER 1000

ENTRYPOINT ["/bin/bash"]
2 changes: 1 addition & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION_NAME = 'beta-6'
export const VERSION_NAME = 'stable'
export const SUPPORTED_MAJOR_VERSIONS = ['6', '7', '8']
export const REQUEST_DEFAULT_HEADERS = {
Accept: 'application/json',
Expand Down

0 comments on commit fab2843

Please sign in to comment.