Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to produce docker image. #36

Open
vrthra opened this issue Nov 13, 2022 · 2 comments
Open

Failure to produce docker image. #36

vrthra opened this issue Nov 13, 2022 · 2 comments

Comments

@vrthra
Copy link
Contributor

vrthra commented Nov 13, 2022

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
Copy link
Contributor Author

vrthra commented Nov 13, 2022

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants