This commit is contained in:
parent
6700a042e2
commit
9eb16a4feb
|
@ -106,7 +106,6 @@ pipeline {
|
||||||
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||||
sh 'docker tag $IMAGE:$VERSION $IMAGE:$GIT_BRANCH'
|
sh 'docker tag $IMAGE:$VERSION $IMAGE:$GIT_BRANCH'
|
||||||
sh 'docker push $IMAGE:$GIT_BRANCH'
|
sh 'docker push $IMAGE:$GIT_BRANCH'
|
||||||
// sh 'echo $GIT_BRANCH'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Stack') {
|
stage('Stack') {
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
FROM debian:bookworm-slim
|
||||||
|
ENV TZ Europe/Madrid
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
# NodeJs
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
|
ca-certificates \
|
||||||
|
gnupg2 \
|
||||||
|
graphicsmagick \
|
||||||
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
|
&& apt-get install -y --no-install-recommends nodejs \
|
||||||
|
&& corepack enable pnpm
|
||||||
|
|
||||||
|
# Puppeteer
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
libfontconfig lftp xvfb gconf-service libasound2 libatk1.0-0 libc6 \
|
||||||
|
libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 \
|
||||||
|
libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 \
|
||||||
|
libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 \
|
||||||
|
libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 \
|
||||||
|
libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
|
||||||
|
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
|
||||||
|
|
||||||
|
# Extra dependencies
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
samba-common-bin samba-dsdb-modules\
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& npm -g install pm2
|
||||||
|
|
||||||
|
# Salix
|
||||||
|
|
||||||
|
WORKDIR /salix
|
||||||
|
|
||||||
|
COPY print/package.json print/pnpm-lock.yaml print/
|
||||||
|
RUN pnpm install --prod --prefix=print
|
||||||
|
|
||||||
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
COPY loopback/package.json loopback/
|
||||||
|
RUN pnpm install --prod
|
||||||
|
|
||||||
|
COPY loopback loopback
|
||||||
|
COPY back back
|
||||||
|
COPY modules modules
|
||||||
|
COPY print print
|
||||||
|
COPY \
|
||||||
|
LICENSE \
|
||||||
|
README.md \
|
||||||
|
./
|
||||||
|
|
||||||
|
CMD ["npx", "gulp", "back"]
|
||||||
|
|
|
@ -8,4 +8,4 @@ services:
|
||||||
image: registry.verdnatura.es/salix-back:${VERSION:?}
|
image: registry.verdnatura.es/salix-back:${VERSION:?}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: back/Dockerfile
|
dockerfile: back/Dockerfile.test
|
||||||
|
|
Loading…
Reference in New Issue