Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile tests fail #10

Closed
oliverklee opened this issue Mar 22, 2022 · 1 comment
Closed

Dockerfile tests fail #10

oliverklee opened this issue Mar 22, 2022 · 1 comment

Comments

@oliverklee
Copy link
Contributor

https://github.com/evilmartians/ruby-on-whales/runs/5643222494?check_suite_focus=true

 DockerfileTest
  test_default_dockerfile                                         FAIL (6.57s)
        Expected "ARG RUBY_VERSION\nARG DISTRO_NAME=bullseye\n\nFROM ruby:$RUBY_VERSION-slim-$DISTRO_NAME\n\nARG DISTRO_NAME\n\n# Common dependencies\nRUN apt-get update -qq \\\n  && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \\\n    build-essential \\\n    gnupg2 \\\n    curl \\\n    less \\\n    git \\\n  && apt-get clean \\\n  && rm -rf /var/cache/apt/archives/* \\\n  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \\\n  && truncate -s 0 /var/log/*log\n\n# Application dependencies\n# We use an external Aptfile for this, stay tuned\nCOPY Aptfile /tmp/Aptfile\nRUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get -yq dist-upgrade && \\\n  DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \\\n    $(grep -Ev '^\\s*#' /tmp/Aptfile | xargs) \\\n    && apt-get clean \\\n    && rm -rf /var/cache/apt/archives/* \\\n    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \\\n    && truncate -s 0 /var/log/*log\n\n# Configure bundler\nENV LANG=C.UTF-8 \\\n  BUNDLE_JOBS=4 \\\n  BUNDLE_RETRY=3\n\n# Store Bundler settings in the project's root\nENV BUNDLE_APP_CONFIG=.bundle\n\n# Uncomment this line if you want to run binstubs without prefixing with `bin/` or `bundle exec`\n# ENV PATH /app/bin:$PATH\n\n# Upgrade RubyGems and install the latest Bundler version\nRUN gem update --system && \\\n    gem install bundler\n\n# Create a directory for the app code\nRUN mkdir -p /app\nWORKDIR /app\n\n# Document that we're going to expose port 3000\nEXPOSE 3000\n# Use Bash as the default command\nCMD [\"/usr/bin/bash\"]\n" to include "RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add".
        /home/runner/work/ruby-on-whales/ruby-on-whales/test/test_helper.rb:79:in `assert_file_contains'
        test/generator/dockerfile_test.rb:17:in `test_default_dockerfile'
@oliverklee
Copy link
Contributor Author

Fixed by #5. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant