Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
apk-tools
apk-tools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • apk-toolsapk-tools
  • Issues
  • #5980

Closed
Open
Opened Jul 28, 2016 by Noah Nordrum@nnordrum
  • Report abuse
  • New issue
Report abuse New issue

Ability to Default to --no-cache

Given that

docker --no-cache add curl

would be best practice in a docker container (I assume), it would be nice if there was a mechanism to change that default.

I can think of a number of ways:

  • compile flag
  • separate apk-tools package
  • /etc/apkrc
  • environment variable that is always added to the command line like APK_OPTIONS that could be set to —no-cache in the alpine base image

or you could just tell me to keep using in my root container :)

alias apk="apk --no-cache"

I know it seems I’m being super lazy, but I think it’s best to provide best practices as the default options and then let people deviate if they choose.

(from redmine: issue id 5980, created on 2016-07-28)

  • Relations:
    • relates #8161 (closed)
Assignee
Assign to
v3.0
Milestone
v3.0
Assign milestone
Time tracking
None
Due date
None
3
Labels
Feature Low New
Assign labels
  • View project labels
Reference: alpine/apk-tools#5980