Browse Source

Create a dedicated docker image for the quality check

pull/46/head
Reinhard Müller 4 months ago
parent
commit
01e7b1b131
3 changed files with 62 additions and 3 deletions
  1. 12
    3
      .drone.yml
  2. 25
    0
      Dockerfile-quality
  3. 25
    0
      docker-compose-quality.yml

+ 12
- 3
.drone.yml View File

@@ -17,11 +17,20 @@
# =============================================================================

pipeline:
build-quality:
image: tmaier/docker-compose
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker-compose --file docker-compose-quality.yml build

quality:
image: fsfe/alpine-pipenv:latest
image: fsfe-forms-quality
commands:
- make virtualenv
- make pytest
- export $(grep -v "#" .env)
# - isort --check-only --diff
# - pylama
- pytest

deploy:
image: tmaier/docker-compose

+ 25
- 0
Dockerfile-quality View File

@@ -0,0 +1,25 @@
# =============================================================================
# Build instructions for the quality check Docker container
# =============================================================================
# This file is part of the FSFE Form Server.
#
# Copyright © 2017-2019 Free Software Foundation Europe <contact@fsfe.org>
#
# The FSFE Form Server is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# The FSFE Form Server is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details <http://www.gnu.org/licenses/>.
# =============================================================================

FROM fsfe/alpine-pipenv:latest

WORKDIR /root

# Install Python packages
COPY Pipfile Pipfile.lock ./
RUN pipenv install --system --deploy --dev

+ 25
- 0
docker-compose-quality.yml View File

@@ -0,0 +1,25 @@
# =============================================================================
# Deployment instructions for the quality check Docker container
# =============================================================================
# This file is part of the FSFE Form Server.
#
# Copyright © 2017-2019 Free Software Foundation Europe <contact@fsfe.org>
#
# The FSFE Form Server is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# The FSFE Form Server is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details <http://www.gnu.org/licenses/>.
# =============================================================================

version: "3"
services:
fsfe-forms-quality:
image: fsfe-forms-quality
build:
context: .
dockerfile: Dockerfile-quality

Loading…
Cancel
Save