Skip to content

Commit 090b8a8

Browse files
committed
Add Mint 20.1
1 parent 3eb90cd commit 090b8a8

5 files changed

+83
-0
lines changed

generate-files.py

+6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@
7171
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"]
7272
subprocess.call(command, stdout=docker_file)
7373

74+
with open("mint20.1-amd64.Dockerfile", "w") as docker_file:
75+
files = "mint20.1"
76+
image = "ubuntu:20.04"
77+
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"]
78+
subprocess.call(command, stdout=docker_file)
79+
7480
with open("lmde4-amd64.Dockerfile", "w") as docker_file:
7581
files = "lmde4"
7682
image = "debian:buster"

mint20.1-amd64.Dockerfile

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Pull base image.
2+
FROM ubuntu:20.04
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 mint20.1 /
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 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,8 @@
1+
deb http://packages.linuxmint.com ulyssa main upstream import backport
2+
3+
deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
4+
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
5+
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
6+
7+
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
8+
deb http://archive.canonical.com/ubuntu/ focal partner
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
deb-src http://packages.linuxmint.com ulyssa main upstream import backport
2+
3+
deb-src http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
4+
deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
5+
deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
6+
7+
deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
8+
deb-src http://archive.canonical.com/ubuntu/ focal partner

0 commit comments

Comments
 (0)