Mobilizon-Reshare-condividi.../scripts/build_docker_image.sh

11 lines
440 B
Bash
Raw Normal View History

#!/bin/sh
2023-07-11 19:20:08 +02:00
set -e
2023-07-11 19:20:08 +02:00
if [ "$1" = "--release" ] || [ "$1" = "-r" ]; then
with_input="--with-input=mobilizon-reshare.git=mobilizon-reshare"
fi
2023-07-11 19:20:08 +02:00
guix time-machine -C channels-lock.scm -- build -L . ${with_input} mobilizon-reshare-scheduler
guix time-machine -C channels-lock.scm -- pack -L . ${with_input} -f docker -S /opt/bin=bin --save-provenance --root=docker-image.tar.gz --entry-point=bin/scheduler.py mobilizon-reshare-scheduler python