summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-02-27 01:24:58 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-02-28 03:39:36 +0100
commitbd3757a4c3ca1ed47bcc6607836280d7ce6e280c (patch)
treec2f51d415e36d1ac8e978dcd3c87fdb63ad6cf98
parente8a86e0d5a7597d62e321860abe34710563390b3 (diff)
docker-images: trisquel-etiona: Add complete and corresponding source code
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--README.txt24
-rw-r--r--trisquel-etiona/PKGBUILD22
-rw-r--r--trisquel-etiona/trisquel-etiona.tar.xz.sha5122
3 files changed, 36 insertions, 12 deletions
diff --git a/README.txt b/README.txt
index f2745d6..d1c6aac 100644
--- a/README.txt
+++ b/README.txt
@@ -23,16 +23,20 @@ and that you will be able use them offline with your own mirror,
etc. Though there will be some differences mentioned in the "Policies"
section below.
-+--------+
-| Status |
-+--------+
-Right now Parabola doesn't ship any of these packages, but if you have
-configured sudo to run without password, you can run makepkg and get
-packages of a docker images that are usable with docker import.
-
-One of the big limitation is that this image is not yet
-redistributalbe as-is as we still need to find a way to get the source
-code corresponding to the images.
++------+
+| TODO |
++------+
+- Right now the corresponding source code is shipped in the docker
+ images, so they are bigger than they could be. The source code
+ instead needs to go in the corresponding source package.
+
+- Documentatoin is lacking on how to use the docker images in real
+ production setups (like some software deployment that use a
+ Dockerfile for instance).
+
+- The available package(s) only support the same architecture between
+ the host and the target. Support for other architectures need to be
+ added.
+----------+
| Policies |
diff --git a/trisquel-etiona/PKGBUILD b/trisquel-etiona/PKGBUILD
index 97f1f0c..aa6ba4c 100644
--- a/trisquel-etiona/PKGBUILD
+++ b/trisquel-etiona/PKGBUILD
@@ -8,7 +8,7 @@ _suite=etiona
pkgname="${_distro}-${_suite}"
pkgver=9.0
-pkgrel=1
+pkgrel=2
pkgdesc="Trisquel docker image(s)"
arch=('x86_64')
url='https://trisquel.info'
@@ -19,12 +19,19 @@ depends=('debuerreotype'
# The FSDG itself is under the CC-BY-ND-4.0
source=('free-system-distribution-guidelines.html'
'CC-BY-ND-4.0.txt'
+ "https://gitlab.trisquel.org/trisquel/package-helpers/-/raw/${_suite}/helpers/DATA/apt/trisquel/sources.list.in"
"${pkgname}.tar.xz.sha512")
sha512sums=('SKIP'
'SKIP'
+ '6650ab124609b42235145c247dbf496cc1e8d2e5dad4ba9105f42f0042d343851a09055def03edf06ad5553daf8285b956885fbba17b88afbb4b66d2030f6703'
'SKIP')
build(){
+ # Generate sources.list without ${_suite}-security and ${_suite}-updates
+ # to make sure that the image is reproducible
+ sed "s/&trisquel-codename;/${_suite}/" sources.list.in | \
+ grep " ${_suite} " > sources.list
+
install -d rootfs
# debuerreotype really requires root, see the following bug report for
@@ -32,7 +39,20 @@ build(){
# https://github.com/debuerreotype/debuerreotype/issues/66
sudo debuerreotype-init --non-debian rootfs "${_suite}" https://archive.trisquel.info/trisquel
sudo debuerreotype-minimizing-config rootfs
+
+ # Add /etc/apt/sources.list
+ sudo install -m644 \
+ --owner=root --group=root \
+ -t rootfs/etc/apt sources.list
+
+ sudo debuerreotype-apt-get rootfs update
+ sudo debuerreotype-apt-get rootfs install -y dpkg-dev # for dpkg-source
+
+ sudo debuerreotype-apt-get rootfs source -y \
+ $(dpkg --root rootfs --get-selections | cut -f 1)
+
sudo debuerreotype-tar rootfs "${_distro}-${_suite}.tar"
+
# docker import ${_distro}-${_suite}.tar.xz works, so it's better to
# have the smallest file possible as xz compresses quite well and we
# will at least have one docker image per FSDG distribution if
diff --git a/trisquel-etiona/trisquel-etiona.tar.xz.sha512 b/trisquel-etiona/trisquel-etiona.tar.xz.sha512
index 5f4e3dc..63f8c60 100644
--- a/trisquel-etiona/trisquel-etiona.tar.xz.sha512
+++ b/trisquel-etiona/trisquel-etiona.tar.xz.sha512
@@ -1 +1 @@
-27fc6d091d802323fa6f9895a1d48dadf3237c81bcfcf78624f22a3f534b26cfbd6eee8295bf3dd0487b51f29f47fe7d282013be97ce94aea2cb3eee66b40e79 trisquel-etiona.tar.xz
+07a3d455830aa9607ea98a5e00b69ffea89289c559d735f2279ee374f9b82bd808daa8ec8a4721f2bc10a095f5ce1eb1d5d5c315c71db77c69d6cfe5fa93ec96 trisquel-etiona.tar.xz