Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 816
    • Issues 816
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 41
    • Merge Requests 41
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #10285

Closed
Open
Opened Apr 18, 2019 by Roi Greenberg@roigreenberg
  • Report abuse
  • New issue
Report abuse New issue

Removing packages when creating alpine image

Hi.
In our work, we need custom Alpine docker and for that we need to remove some packages from the final image[minirootfs] (basically, anything that related to network/ssl)

We try to remove the packages from the container itself from inside, but doing “apk del ssl_client” for example, do nothing.

We also tried to edit the genrootfs script so after adding all the packages it will delete those we don’t want, but if I do:

<code class="text">
${APK:-apk} del --keys-dir "$keys_dir" \
        --repositories-file "$repositories_file" \
        *--root "$tmp"* $unwanted_packages
</code>

The script crash, and if I remove —root “$tmp” I receive permissions error, probably since it tries to delete the container packages.

Is there any way to accomplish what we want? maybe prevent “apk add” to install those packages?

(from redmine: issue id 10285, created on 2019-04-18)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
4
Labels
Base libraries Feedback Normal Support
Assign labels
  • View project labels
Reference: alpine/aports#10285