GithubHelp home page GithubHelp logo

docker-apt-cacher-ng's Introduction

README

Start apt_cacher_ng service

docker compose build && \
docker compose up -d

Read apt_cacher_ng service logs

docker exec -it apt_cacher_ng \
  tail -f /var/log/apt-cacher-ng/apt-cacher.log

Build test client using apt_cacher_ng service

Build test client

In tests subdirectory:

  1. Build the test client once.
time docker compose build \
  --build-arg APT_CACHER_NG_HOST=localhost \
  --build-arg APT_CACHER_NG_PORT=3142 \
  --no-cache
  1. Read the logs to see that files have been cached.
  2. Build the test client once again. It should be faster.
  3. Read the logs to see that cached files have been reused.

Run bash command in apt_cacher_ng container

docker exec -it apt_cacher_ng bash

List cached files in apt_cacher_ng container

docker exec -it apt_cacher_ng find /var/cache/apt-cacher-ng

Stop services

In project root directory:

docker compose stop

Remove stopped service containers along with associated volumes

In project root directory:

docker compose rm --volumes

docker-apt-cacher-ng's People

Contributors

bmichalski avatar

Watchers

 avatar  avatar

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.