Commit d16f164f authored by nanahira's avatar nanahira

updates

parent 53d22bfa
FROM debian:buster
RUN apt update && apt install -y apt-cacher-ng && rm -rf /var/lib/apt/lists/*
RUN sed -i 's/# ForeGround: 0/ForeGround: 1/' /etc/apt-cacher-ng/acng.conf
RUN sed -i 's/Remap-debrep: .*/Remap-debrep: \/debian ; http:\/\/{{apt_mirror}}\/debian/' /etc/apt-cacher-ng/acng.conf && \
sed -i 's/Remap-uburep: .*/Remap-uburep: \/ubuntu ; http:\/\/{{apt_mirror}}\/ubuntu/' /etc/apt-cacher-ng/acng.conf && \
sed -i 's/Remap-secdeb: .*/Remap-debdeb: \/debian-security ; http:\/\/{{apt_mirror}}\/debian-security/' /etc/apt-cacher-ng/acng.conf
RUN ln -s /dev/stdout /var/log/apt-cacher-ng/apt-cacher.log && ln -s /dev/stderr /var/log/apt-cacher-ng.err
EXPOSE 3142/tcp
CMD [ "/usr/sbin/apt-cacher-ng", "-c", "/etc/apt-cacher-ng" ]
......@@ -16,7 +16,7 @@ services:
apt-cacher-ng:
restart: always
image: mycard/apt-cacher-ng
build: apt-cacher-ng-docker
dns: 114.114.114.114
ports:
- '80:3142'
......
......@@ -13,8 +13,17 @@
synchronize:
src: ./files/utility/
dest: /root/utility
- name: apt-cacker-ng Dockerfile directory
file:
path: /root/utility/apt-cacher-ng-docker
state: directory
- name: apt cacher Dockerfile
template:
src: ./files/apt-cacher-ng-docker/Dockerfile.j2
dest: /root/utility/apt-cacher-ng-docker/Dockerfile
- name: docker-compose up -d
docker_service:
docker_compose:
project_src: /root/utility
remove_orphans: true
pull: true
build: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment