Sign inSign up

keidock/apt-debs-server

By keidock

•Updated almost 6 years ago

Image
0

53

keidock/apt-debs-server repository overview

⁠deb file distribution server for offline on-premises environments

deb file is not included.

⁠Dockerfile

FROM ubuntu:20.04

LABEL version="1.0"
LABEL description="Ubuntu20.04 and apache2. apt server"

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
    && apt-get install -y tzdata
RUN apt-get update \
    && apt-get install -y apache2
RUN apt-get update \
    && apt-get install -y dpkg-dev

# image create command sample
# docker build -t apt-debs-server:1.0 .

⁠docker-compose sample

version: '3'
services: 
  aptserver:
    image: keidock/apt-debs-server:1.0
    tty: true
    ports:
      - '18080:80'
    volumes:
      - './debs:/var/www/html/debs'
    environment:
      TZ: Asia/Tokyo
    command: >
      bash -c "
        mkdir -p /var/www/html/debs/AMD64 &&
        cd /var/www/html/debs &&
        dpkg-scanpackages AMD64 | gzip -9c > AMD64/Packages.gz &&
        /usr/sbin/apachectl start &&
        bash
      "

⁠apt client

  1. vi /etc/apt/sources.list
  2. add line deb [trusted=yes] http://{hostname}:18080/debs AMD64
  3. apt-get update

Tag summary

Content type

Image

Digest

Size

136 MB

Last updated

almost 6 years ago

docker pull keidock/apt-debs-server:1.0