mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-29 06:35:28 -04:00
precommit: Freeze tool versions
This commit is contained in:
parent
dd8d7d6d1c
commit
0d9cee8e30
4 changed files with 300 additions and 7 deletions
|
|
@ -19,21 +19,23 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && \
|
|||
shellcheck \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install MarkdownLint.
|
||||
# Install markdownlint-cli and dependencies.
|
||||
# https://github.com/DavidAnson/markdownlint
|
||||
# https://github.com/igorshubovych/markdownlint-cli
|
||||
RUN npm install -g markdownlint-cli
|
||||
# https://github.com/igorshubovych/markdownlint-cli
|
||||
WORKDIR /opt/cp2k-precommit
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install .
|
||||
RUN ln -s /opt/cp2k-precommit/node_modules/markdownlint-cli/markdownlint.js /usr/bin/markdownlint
|
||||
|
||||
# Install Black Python Formatter.
|
||||
# Install black, flask, gunicorn, and dependencies.
|
||||
# https://github.com/psf/black
|
||||
RUN pip3 install black
|
||||
COPY requirements.txt .
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
# Clone cp2k repository (needed for CI mode).
|
||||
RUN git clone --quiet --recursive --single-branch -b master https://github.com/cp2k/cp2k.git /workspace/cp2k
|
||||
|
||||
# Install Flask app.
|
||||
RUN pip3 install flask gunicorn
|
||||
WORKDIR /opt/cp2k-precommit
|
||||
COPY precommit_server.py .
|
||||
|
||||
ARG REVISION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue