Giter Site home page Giter Site logo

ministryofjustice / standard-docker-image Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 1.0 2 KB

Run standardrb from a docker image, to avoid conflicts with local ruby versions and bundler binstubs.

License: MIT License

Dockerfile 46.79% Ruby 24.22% Makefile 29.00%

standard-docker-image's Introduction

Standard Ruby Linter

Docker image to enable running standardrb in a multi-ruby, multi-gem development environment.

Usage

From the top-level directory of your project:

docker run --rm -v $(pwd):/app ministryofjustice/standardrb standardrb

...or:

docker run --rm -v $(pwd):/app ministryofjustice/standardrb standardrb --fix

Why

If you use a ruby version manager such as rvm, and/or you use bundler binstubs, you might have trouble running a globally installed version of standardrb.

Typically, you might see errors like this:

...can't find gem standard (>= 0.a) with executable standardrb (Gem::GemNotFoundException)

This project provides a minimal docker image which only contains standardrb, so it will never conflict with anything in your development environment.

standard-docker-image's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

uk-gov-mirror

standard-docker-image's Issues

Default branch is not main

Hi there
The default branch for this repository is not set to main
See repository settings/settings/branches to rename the default branch to main and ensure the Branch protection rules is set to main as well
See the repository standards: https://github.com/ministryofjustice/github-repository-standards
See the report: https://operations-engineering-reports.cloud-platform.service.justice.gov.uk/github_repositories
Please contact Operations Engineering on Slack #ask-operations-engineering, if you need any assistance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.