Skip to content

Commit 9020bb9

Browse files
committed
Add LMDE 5
1 parent 0984d0f commit 9020bb9

6 files changed

+140
-0
lines changed

generate-files.py

+12
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@
8989
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
9090
subprocess.call(command, stdout=docker_file)
9191

92+
with open("lmde5-amd64.Dockerfile", "w") as docker_file:
93+
files = "lmde5"
94+
image = "debian:bullseye"
95+
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
96+
subprocess.call(command, stdout=docker_file)
97+
98+
with open("lmde5-i386.Dockerfile", "w") as docker_file:
99+
files = "lmde5"
100+
image = "i386\/debian:bullseye"
101+
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
102+
subprocess.call(command, stdout=docker_file)
103+
92104
with open("lmde4-amd64.Dockerfile", "w") as docker_file:
93105
files = "lmde4"
94106
image = "debian:buster"

lmde5-amd64.Dockerfile

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Pull base image.
2+
FROM debian:bullseye
3+
4+
# Make sure APT operations are non-interactive
5+
ENV DEBIAN_FRONTEND noninteractive
6+
7+
# Add basic tools
8+
RUN apt-get update && apt-get --yes install wget gnupg locales unzip libfile-fcntllock-perl
9+
10+
# Set locale
11+
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
12+
RUN locale-gen
13+
ENV LANG en_US.UTF-8
14+
ENV LANGUAGE en_US:en
15+
ENV LC_ALL en_US.UTF-8
16+
17+
# Add GHR
18+
RUN \
19+
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip \
20+
&& unzip ghr_v0.5.4_linux_amd64.zip \
21+
&& mv ghr /usr/bin/ghr \
22+
&& rm ghr_v0.5.4_linux_amd64.zip
23+
24+
# Add files.
25+
ADD lmde5 /
26+
27+
###################################
28+
# Set up repositories
29+
###################################
30+
31+
# Add linuxmint-keyring
32+
RUN \
33+
wget http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/linuxmint-keyring_2016.05.26_all.deb > dev/null 2>&1 \
34+
&& dpkg -i linuxmint-keyring_2016.05.26_all.deb \
35+
&& rm linuxmint-keyring_2016.05.26_all.deb
36+
37+
# Empty default sources.list
38+
RUN echo "" > /etc/apt/sources.list
39+
40+
# Update APT cache.
41+
RUN apt-get update
42+
43+
###################################
44+
# Apply updates
45+
###################################
46+
47+
RUN apt-get dist-upgrade --yes
48+
49+
###################################
50+
# Install stuff
51+
###################################
52+
53+
RUN apt-get --yes install mint-dev-tools build-essential devscripts fakeroot quilt dh-make automake libdistro-info-perl less nano ubuntu-dev-tools python python2.7 python3

lmde5-i386.Dockerfile

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Pull base image.
2+
FROM i386/debian:bullseye
3+
4+
# Make sure APT operations are non-interactive
5+
ENV DEBIAN_FRONTEND noninteractive
6+
7+
# Add basic tools
8+
RUN apt-get update && apt-get --yes install wget gnupg locales unzip libfile-fcntllock-perl
9+
10+
# Set locale
11+
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
12+
RUN locale-gen
13+
ENV LANG en_US.UTF-8
14+
ENV LANGUAGE en_US:en
15+
ENV LC_ALL en_US.UTF-8
16+
17+
# Add GHR
18+
RUN \
19+
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip \
20+
&& unzip ghr_v0.5.4_linux_amd64.zip \
21+
&& mv ghr /usr/bin/ghr \
22+
&& rm ghr_v0.5.4_linux_amd64.zip
23+
24+
# Add files.
25+
ADD lmde5 /
26+
27+
###################################
28+
# Set up repositories
29+
###################################
30+
31+
# Add linuxmint-keyring
32+
RUN \
33+
wget http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/linuxmint-keyring_2016.05.26_all.deb > dev/null 2>&1 \
34+
&& dpkg -i linuxmint-keyring_2016.05.26_all.deb \
35+
&& rm linuxmint-keyring_2016.05.26_all.deb
36+
37+
# Empty default sources.list
38+
RUN echo "" > /etc/apt/sources.list
39+
40+
# Update APT cache.
41+
RUN apt-get update
42+
43+
###################################
44+
# Apply updates
45+
###################################
46+
47+
RUN apt-get dist-upgrade --yes
48+
49+
###################################
50+
# Install stuff
51+
###################################
52+
53+
RUN apt-get --yes install mint-dev-tools build-essential devscripts fakeroot quilt dh-make automake libdistro-info-perl less nano ubuntu-dev-tools python python2.7 python3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Package: *
2+
Pin: origin live.linuxmint.com
3+
Pin-Priority: 750
4+
5+
Package: *
6+
Pin: release o=linuxmint,c=upstream
7+
Pin-Priority: 700
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
deb http://packages.linuxmint.com elsie main upstream import backport #id:linuxmint_main
2+
3+
deb https://deb.debian.org/debian bullseye main contrib non-free
4+
deb https://deb.debian.org/debian bullseye-updates main contrib non-free
5+
deb http://security.debian.org bullseye-security main contrib non-free
6+
7+
deb https://deb.debian.org/debian bullseye-backports main contrib non-free
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
deb-src http://packages.linuxmint.com elsie main upstream import backport #id:linuxmint_main
2+
3+
deb-src https://deb.debian.org/debian bullseye main contrib non-free
4+
deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free
5+
deb-src http://security.debian.org bullseye-security main contrib non-free
6+
7+
deb-src https://deb.debian.org/debian bullseye-backports main contrib non-free

0 commit comments

Comments
 (0)