toddsundsted / ktistec

Single user ActivityPub (https://www.w3.org/TR/activitypub/) server.
GNU Affero General Public License v3.0
360 stars 20 forks source link

Failure to produce docker image. #36

Open vrthra opened 1 year ago

vrthra commented 1 year ago

When I run docker build on the latest, I get this error

vagrant@ubuntu:~/ktistec$ docker build -t "ktistec:latest" .
Sending build context to Docker daemon  9.292MB
Step 1/19 : FROM crystallang/crystal:1.2.2-alpine AS builder
 ---> 30781946fed1
Step 2/19 : RUN apk update && apk upgrade && apk add sqlite-static
 ---> Using cache
 ---> 106492098c22
Step 3/19 : WORKDIR /build/
 ---> Using cache
 ---> d5a5bf3e4792
Step 4/19 : ARG version
 ---> Using cache
 ---> 9961b914336b
Step 5/19 : RUN git clone --branch ${version:-dist} --depth 1 https://github.com/toddsundsted/ktistec .
 ---> Using cache
 ---> 7eeadb422887
Step 6/19 : RUN shards install --production
 ---> Running in 8766da6fd5ea
Resolving dependencies
Fetching https://github.com/toddsundsted/slang.git
Fetching https://github.com/crystal-lang/crystal-sqlite3.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/toddsundsted/libxml_ext.git
Fetching https://github.com/toddsundsted/openssl_ext.git
Fetching https://github.com/toddsundsted/web_finger.git
Fetching https://github.com/toddsundsted/host_meta.git
Fetching https://github.com/kemalcr/kemal.git
Fetching https://github.com/toddsundsted/school.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/sija/backtracer.cr.git
Outdated shard.lock (backtracer requirements changed). Please run shards update instead.
The command '/bin/sh -c shards install --production' returned a non-zero code: 1
vrthra commented 1 year ago

System details

vagrant@ubuntu:~/ktistec$ uname -a
Linux ubuntu.localdomain 5.15.0-48-generic #54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
vagrant@ubuntu:~/ktistec$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy
felixkrohn commented 1 year ago

I didn't tag my PR properly and I don't know anything at all about Crystal, but wouldn't it be best/easiest to just run the "shards update" when running the image build?