Add channels for additional caching of guix pull.

This commit is contained in:
viferga 2020-10-29 12:37:37 -08:00
parent 8da8626f59
commit 8e3f34b34b
3 changed files with 35 additions and 0 deletions

@ -1,2 +1,3 @@
** **
!channels
!scripts !scripts

@ -65,6 +65,9 @@ RUN mkdir -p /gnu/store \
&& source $GUIX_PROFILE/etc/profile \ && source $GUIX_PROFILE/etc/profile \
&& guix archive --authorize < /root/.config/guix/current/share/guix/ci.guix.gnu.org.pub && guix archive --authorize < /root/.config/guix/current/share/guix/ci.guix.gnu.org.pub
# Copy additional channels
COPY channels/ /root/.config/guix/
# Run pull (https://github.com/docker/buildx/blob/master/README.md#--allowentitlement) # Run pull (https://github.com/docker/buildx/blob/master/README.md#--allowentitlement)
RUN --security=insecure /entry-point.sh guix pull RUN --security=insecure /entry-point.sh guix pull

31
channels/channels.scm Normal file

@ -0,0 +1,31 @@
;
; MetaCall Guix by Parra Studios
; Docker image for using Guix in a CI/CD environment.
;
; Copyright (C) 2016 - 2020 Vicente Eduardo Ferrer Garcia <vic798@gmail.com>
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
(list (channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git")
(branch "master")
(commit "1a9ebe3b0aa12584624dfa811c480c636a56e1b4"))
; TODO:
; (channel
; (name 'nonguix)
; (url "https://gitlab.com/nonguix/nonguix.git")
; (branch "master")
; (commit "95adb6ec077dc4139cf7e1956ad5caa1ff08f92b"))
)