Skip to content

Commit

Permalink
Add extra version check in build step.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 12, 2023
1 parent 7c64383 commit b14c679
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ COPY channels/ /root/.config/guix/
# Verify if the certificates exist and the version is correct (it is fixed to the channels.scm)
RUN --security=insecure sh -c '/entry-point.sh guix pull && guix package --fallback -i nss-certs' \
&& sh -c '/entry-point.sh guix gc && guix gc --optimize' \
&& [ -e /root/.guix-profile/etc/ssl/certs/ca-certificates.crt ]

# TODO: Guix version command seems broken, re-enable this once it is solved
# \
# && [ "`cat /root/.config/guix/channels.scm | grep commit | cut -d'"' -f 2`" = "`guix --version | head -n 1 | awk '{print $NF}'`" ]
&& [ -e /root/.guix-profile/etc/ssl/certs/ca-certificates.crt ] \
&& [ "`cat /root/.config/guix/channels.scm | grep commit | cut -d'"' -f 2`" = "`guix --version | head -n 1 | awk '{print $NF}'`" ]
ENTRYPOINT ["/entry-point.sh"]
CMD ["sh"]

0 comments on commit b14c679

Please sign in to comment.