🔨(CI) add Tilt

Tilt is a tool for local Kubernetes development.
It makes it easy to see your changes as you
make them, and it rebuilds and redeploys
your app as you change it.
It is a great tool for local development
and testing of Kubernetes applications.
This commit is contained in:
Anthony LC
2024-04-11 11:00:50 +02:00
committed by Anthony LC
parent 0dc1be4cc7
commit dbb592bc9a
13 changed files with 198 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ COPY ./src/frontend/packages/eslint-config-impress/package.json ./packages/eslin
RUN yarn --frozen-lockfile
### ---- Front-end builder image ----
FROM node:20 as frontend-builder
FROM node:20 as frontend-builder-1
WORKDIR /builder
@@ -34,6 +34,8 @@ COPY ./src/frontend .
WORKDIR /builder/apps/impress
FROM frontend-builder-1 as frontend-builder-2
RUN yarn build
@@ -44,7 +46,7 @@ FROM nginxinc/nginx-unprivileged:1.25 as frontend-production
ARG DOCKER_USER
USER ${DOCKER_USER}
COPY --from=frontend-builder \
COPY --from=frontend-builder-2 \
/builder/apps/impress/out \
/usr/share/nginx/html
@@ -83,7 +85,7 @@ RUN yarn install --frozen-lockfile && \
# ---- static link collector ----
FROM base as link-collector
ARG PEOPLE_STATIC_ROOT=/data/static
ARG IMPRESS_STATIC_ROOT=/data/static
# Install libpangocairo & rdfind
RUN apt-get update && \