Skip to content

Commit 1bb491a

Browse files
committed
Add 19.1
1 parent 848d666 commit 1bb491a

7 files changed

+147
-0
lines changed

generate-files.py

+12
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@
2828
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
2929
subprocess.call(command, stdout=docker_file)
3030

31+
with open("mint19.1-amd64.Dockerfile", "w") as docker_file:
32+
files = "mint19.1"
33+
image = "ubuntu:18.04"
34+
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
35+
subprocess.call(command, stdout=docker_file)
36+
37+
with open("mint19.1-i386.Dockerfile", "w") as docker_file:
38+
files = "mint19.1"
39+
image = "i386\/ubuntu:18.04"
40+
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
41+
subprocess.call(command, stdout=docker_file)
42+
3143
with open("lmde3-amd64.Dockerfile", "w") as docker_file:
3244
files = "lmde3"
3345
image = "debian:stretch"

mint19.1-amd64.Dockerfile

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Pull base image.
2+
FROM ubuntu:18.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 mint19.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 python python2.7 python3

mint19.1-i386.Dockerfile

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Pull base image.
2+
FROM i386/ubuntu:18.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 mint19.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 python python2.7 python3
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
APT::Install-Recommends "false";
2+
Aptitude::Recommends-Important "false";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
9+
Package: *
10+
Pin: release o=Ubuntu
11+
Pin-Priority: 500
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
deb http://packages.linuxmint.com tessa main upstream import backport
2+
3+
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
4+
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
5+
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
6+
7+
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
8+
deb http://archive.canonical.com/ubuntu/ bionic partner
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
deb-src http://packages.linuxmint.com tessa main upstream import backport
2+
3+
deb-src http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
4+
deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
5+
deb-src http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
6+
7+
deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
8+
deb-src http://archive.canonical.com/ubuntu/ bionic partner

0 commit comments

Comments
 (0)