ci: stabilize Jenkins jobs and mobile pipeline
This commit is contained in:
@@ -33,7 +33,7 @@ services:
|
||||
- jenkins_home:/var/jenkins_home
|
||||
- ./jenkins/casc:/var/jenkins_home/casc_configs:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ../..:/workspace/otus-autotests:ro
|
||||
- ..:/workspace/hw8:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/login >/dev/null"]
|
||||
interval: 10s
|
||||
@@ -67,9 +67,9 @@ services:
|
||||
JENKINS_HOSTNAME: http://jenkins:8080
|
||||
JENKINS_USERNAME: ${JENKINS_ADMIN_ID}
|
||||
JENKINS_PASSWORD: ${JENKINS_ADMIN_PASSWORD}
|
||||
JJB_PATH: /workspace/otus-autotests/hw8/config/jobs
|
||||
JJB_PATH: /workspace/hw8/config/jobs
|
||||
volumes:
|
||||
- ../..:/workspace/otus-autotests:ro
|
||||
- ..:/workspace/hw8:ro
|
||||
networks:
|
||||
- jenkins_net
|
||||
|
||||
@@ -87,9 +87,10 @@ services:
|
||||
JENKINS_AGENT_WORKDIR: /home/jenkins/agent
|
||||
JENKINS_WEB_SOCKET: "true"
|
||||
JENKINS_LABELS: maven docker
|
||||
HW8_ROOT: /workspace/hw8
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ../..:/workspace/otus-autotests:ro
|
||||
- ..:/workspace/hw8:ro
|
||||
networks:
|
||||
- jenkins_net
|
||||
|
||||
@@ -107,9 +108,10 @@ services:
|
||||
JENKINS_AGENT_WORKDIR: /home/jenkins/agent
|
||||
JENKINS_WEB_SOCKET: "true"
|
||||
JENKINS_LABELS: jjb docker
|
||||
HW8_ROOT: /workspace/hw8
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ../..:/workspace/otus-autotests:ro
|
||||
- ..:/workspace/hw8:ro
|
||||
networks:
|
||||
- jenkins_net
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ RUN apt-get update \
|
||||
ca-certificates \
|
||||
curl \
|
||||
docker.io \
|
||||
git \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
@@ -1,9 +1,55 @@
|
||||
FROM maven:3.9.11-eclipse-temurin-21
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
chromium \
|
||||
chromium-driver \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
unzip \
|
||||
fontconfig \
|
||||
fonts-liberation \
|
||||
libasound2t64 \
|
||||
libatk-bridge2.0-0 \
|
||||
libatk1.0-0 \
|
||||
libc6 \
|
||||
libcairo2 \
|
||||
libcups2 \
|
||||
libdbus-1-3 \
|
||||
libexpat1 \
|
||||
libfontconfig1 \
|
||||
libgbm1 \
|
||||
libgcc1 \
|
||||
libglib2.0-0 \
|
||||
libgtk-3-0 \
|
||||
libnspr4 \
|
||||
libnss3 \
|
||||
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 \
|
||||
xdg-utils; \
|
||||
CHROME_VERSION="$(curl -fsSL https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE)"; \
|
||||
curl -fsSL "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chrome-linux64.zip" -o /tmp/chrome.zip; \
|
||||
curl -fsSL "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chromedriver-linux64.zip" -o /tmp/chromedriver.zip; \
|
||||
unzip -q /tmp/chrome.zip -d /opt; \
|
||||
unzip -q /tmp/chromedriver.zip -d /opt; \
|
||||
ln -sf /opt/chrome-linux64/chrome /usr/bin/google-chrome; \
|
||||
ln -sf /opt/chrome-linux64/chrome /usr/bin/chromium; \
|
||||
ln -sf /opt/chromedriver-linux64/chromedriver /usr/bin/chromedriver; \
|
||||
chmod +x /opt/chrome-linux64/chrome /opt/chromedriver-linux64/chromedriver; \
|
||||
rm -f /tmp/chrome.zip /tmp/chromedriver.zip; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
@@ -30,7 +30,7 @@ jenkins:
|
||||
- key: JENKINS_URL_INTERNAL
|
||||
value: "http://jenkins:8080"
|
||||
- key: OTUS_WORKSPACE_ROOT
|
||||
value: "/workspace/otus-autotests"
|
||||
value: "/workspace/hw8"
|
||||
- key: MOBILE_DB_PASSWORD
|
||||
value: "${MOBILE_DB_PASSWORD}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user