From ed9be42ff125f39b00b03a0f52436ca1ddd8e228 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Wed, 4 Sep 2019 16:39:44 -0400 Subject: [PATCH] guix-oci.scm: Test container deployment with guix Signed-off-by: Collin J. Doering --- guix-oci.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 guix-oci.scm diff --git a/guix-oci.scm b/guix-oci.scm new file mode 100644 index 0000000..4367265 --- /dev/null +++ b/guix-oci.scm @@ -0,0 +1,49 @@ +;; This is an operating system configuration template +;; for a "bare bones" setup, with no X11 display server. + +(use-modules (gnu)) +(use-service-modules networking ssh) +(use-package-modules python) + +(operating-system + (host-name "antelope") + (timezone "America/Toronto") + (locale "en_US.utf8") + + ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the + ;; target hard disk, and "my-root" is the label of the target + ;; root file system. + (bootloader (bootloader-configuration + (bootloader grub-bootloader) + (target "/dev/sdX"))) + + ;; (file-systems (cons* (file-system + ;; (device (file-system-label "my-root")) + ;; (mount-point "/") + ;; (type "ext4")) + ;; %container-file-systems)) + + (file-systems %container-file-systems) + + ;; This is where user accounts are specified. The "root" + ;; account is implicit, and is initially created with the + ;; empty password. + (users (cons (user-account + (name "python") + (comment "Python application user") + (group "users") +;; (supplementary-groups '("")) + (home-directory "/home/python")) + %base-user-accounts)) + + ;; Globally-installed packages. + (packages (cons python-wrapper + %base-packages)) + + ;; Add services to the baseline: a DHCP client and + ;; an SSH server. + (services (append (list (service dhcp-client-service-type) + (service openssh-service-type + (openssh-configuration + (port-number 2222)))) + %base-services)))