Commit 45af0ed7 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Adding CI

parent 5d1725b7
Pipeline #71792 failed with stage
in 6 seconds
image: gricad-registry.univ-grenoble-alpes.fr/kubernetes-alpes/buildah:latest
stages:
- build
variables:
REGISTRY_LOGIN: buildah login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD
REGISTRY_LOGOUT: buildah logout
IMAGE_BUILD: buildah build-using-dockerfile --storage-driver vfs --format docker
IMAGE_PUSH: buildah push --storage-driver vfs
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- $REGISTRY_LOGIN $CI_REGISTRY
after_script:
- $REGISTRY_LOGOUT $CI_REGISTRY
build ws-station: &build
stage: build
only:
- master
variables:
DOCKERFILE: Dockerfile
IMAGE_NAME: $CI_REGISTRY_IMAGE/resifdatareporter:$CI_COMMIT_SHORT_SHA
script:
- ./deps/prebuild.sh
- $IMAGE_BUILD --file $DOCKERFILE $BUILD_ARG --tag $IMAGE_NAME .
- $IMAGE_PUSH $IMAGE_NAME $IMAGE_NAME
FROM python:3.9
COPY requirements.txt /
RUN pip install --no-cache-dir -r /requirements.txt
WORKDIR /usr/src/resifdatareporter
COPY resifdatareporter/resifdatareporter.py resifdatareporter/
COPY setup.py .
COPY README.md .
RUN pip install -e .
USER 1000
CMD resifdatareporter --config-file /config/config.yaml
......@@ -11,7 +11,6 @@ import yaml
import psycopg2
import click
from pathlib import Path
from resifdatareporter import __version__
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', level=logging.INFO)
logger = logging.getLogger(__name__)
......@@ -125,7 +124,6 @@ def scan_volumes(volumes):
@click.option('--force-scan', flag_value=True, default=False, help='Force scanning of the archive')
@click.option('--dryrun', flag_value=True, default=False, help="Do not send metrics to database")
@click.option("--verbose", flag_value=True, default=False, help="Verbose mode")
@click.version_option(__version__)
def cli(configfile, force_scan, dryrun, verbose, version):
"""
Command line interface. Stands as main
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment