Coder Social home page Coder Social logo

containers's People

Contributors

acbramley avatar edward-murrell avatar jibran avatar joshuataylor avatar jptaranto avatar kimpepper avatar larowlan avatar nicksantamaria avatar nickschuch avatar sam152 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

containers's Issues

Proposal: Disable apt caching

When running apt-get install foo, the result is cached and requires an apt-get clean to remove this cache.
However, adding

RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache

As an initial step will mean that packages are not cached with apt, and will not require an apt-get clean.

Thoughts?

Optimise package installs in gastonjs

RUN apt-get update && \

Line 8: RUN apt-get update && \
Issue  Category      Title                 Description
    1  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Optimise package installs in php images

RUN apt-get update && \

File:   php/5.6-apache-jessie/base/Dockerfile
Issues: 4

Line 9: RUN apt-get update && \
Issue  Category      Title                 Description
    1  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Line 26: RUN echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee
/etc/apt/sources.list.d/newrelic.list && \
Issue  Category      Title                 Description
    3  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    4  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

RUN apt-get update && \

File:   php/5.6-apache-jessie/dev/Dockerfile
Issues: 2

Line 23: RUN apt-get update && \
Issue  Category      Title                 Description
    1  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

RUN apt-get update && \

File:   php/7.x-apache-jessie/base/Dockerfile
Issues: 3

Line 10: RUN apt-get update && \
Issue  Category      Title                 Description
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Line 28: RUN echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee
/etc/apt/sources.list.d/newrelic.list && \
Issue  Category      Title                 Description
    3  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

RUN apt-get update && \

File:   php/7.x-apache-jessie/dev/Dockerfile
Issues: 3

Line 24: RUN apt-get update && \
Issue  Category      Title                 Description
    2  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    3  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

RUN apt-get update && \

File:   php/7.x-apache-stretch/base/Dockerfile
Issues: 3

Line 10: RUN apt-get update && \
Issue  Category      Title                 Description
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Line 27: RUN echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee
/etc/apt/sources.list.d/newrelic.list && \
Issue  Category      Title                 Description
    3  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

RUN apt-get update && \

File:   php/7.x-apache-stretch/dev/Dockerfile
Issues: 3

Line 24: RUN apt-get update && \
Issue  Category      Title                 Description
    2  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    3  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Optimise package installs in pnx-packager

RUN apt-get update && apt-get install -y git curl make && rm -rf /var/cache/apt/*

Line 3: RUN apt-get update && apt-get install -y git curl make && rm -rf /var/cache/apt/*
Issue  Category      Title                 Description
    1  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Optimise package installs in passenger images

RUN apt-get update && \

File:   passenger/base/Dockerfile
Issues: 4

Line 9: RUN apt-get update && \
Issue  Category      Title                 Description
    1  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Line 14: RUN apt-get update && \
Issue  Category      Title                 Description
    3  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    4  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

RUN apt-get update && \

File:   passenger/dev/Dockerfile
Issues: 2

Line 7: RUN apt-get update && \
Issue  Category      Title                 Description
    1  Optimization  apt-get update with   Use of apt-get update should be paired with rm -rf
                     matching cache rm     /var/lib/apt/lists/* in the same layer.
    2  Optimization  Consider              Consider using a `--no-install-recommends` when `apt-get`
                     `--no-install-recomm  installing packages.  This will result in a smaller image size.
                     ends`                 For
                                           more information, see [this blog
                                           post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
                                           e-for-image-size/)

Optimise package installs in varnish

RUN apk update && \

File:   varnish/4.x/dev/Dockerfile
Issues: 1

Line 6: RUN apk update && \
Issue  Category      Title                 Description
    1  Optimization  Consider `--no-cache  Consider using a `--no-cache` (supported in alpine linux >= 3.3) or
                     or --update with rm   `--update` followed by the command `rm -rf /var/cache/apk/*` when
                     -rf                   `apk` adding packages.  This will result in a smaller image size.
                     /var/cache/apk/*`     For
                                           more information, see [this
                                           link](https://github.com/gliderlabs/docker-alpine/blob/master/docs/
                                           usage.md)

Unable to locate a valid CA certificate file

Arrived here via instructions at
https://www.previousnext.com.au/blog/join-us-drupalgov-2020-code-sprint#set-up-a-development-environment--2
that use a gist that references previousnext/php-apache:7.3-3.x-dev

FYI, at docker-compose run -w /data/app app composer install I get

Creating drupal_app_run ... done
Running entrypoint.d script: /docker-entrypoint.d/blackfire.sh
Skipping Backfire: Set BLACKFIRE_ENABLED=yes to enable
Running entrypoint.d script: /docker-entrypoint.d/tuner.sh
Tuning: Apache: /var/run/tuner/apache2/tuner.conf
Tuning: PHP: /var/run/tuner/php/tuner.ini
Running entrypoint.d script: /docker-entrypoint.d/xdebug.sh
Skipping Xdebug: Set XDEBUG_ENABLED=yes to enable
Unable to locate a valid CA certificate file. You must set a valid 'cafile' option.
A valid CA certificate file is required for SSL/TLS protection.
You can disable this error, at your own risk, by setting the 'disable-tls' option to true.

[Composer\Downloader\TransportException]
The configured cafile was not valid or could not be read.

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.