coala

linterhub: Create a Docker image for csvlint

Task

Create a Docker image with Alpine Linux for the csvlint linter.

Register an issue

Fork repository

Fork the linterhub-docker repository.

Build

Find an Alpine-base image on Dockerhub with a ruby package manager that can install csvlint.

Create a new Dockerfile based on the previous one and install the linter csvlint (and dependencies if needed). e.g. https://github.com/repometric/linterhub-docker/blob/master/engines/jshint/Dockerfile

Please do not install unnecessary dependencies!

Build container, make sure there are no errors during build.

Manual tests

  1. Run the csvlint linter on a sample CSV file using csvlint installed on your computer

  2. Perform the same analysis using your container

    docker run -v /local_folder:/container_folder -it linterhub/your_favorite_engine engine_command
    

    Make sure that outputs are equal.

Automated tests

Introduce a simple test as described above using Automated Test: https://docs.docker.com/docker-cloud/builds/automated-testing/#set-up-automated-test-files (ensure that expected analysis results are equal to the actual results).

Submit a PR

Once you've finished, please submit a PR to linterhub-docker .

Task tags

  • docker
  • csv
  • ruby
  • alpine
  • linux

Students who completed this task

Nalin Bhardwaj

Task type

  • code Code
  • done_all Quality Assurance
close

2017