slimtoolkit / slimtoolkit/slim

Minified image curl error

Open
#234 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
Go
Stars
23.4k
Forks
840
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

As I run my image, it uses curl to fetch env file from git.
After download is complete, it runs java/jboss and serves 8080.


Actual Behavior

When it tries to use curl I get:
curl: (77) error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none

After download fails, JBoss fails to start because it can't find the env file, specified on the command.
(FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1)


Steps to Reproduce the Problem

  1. docker run -it -p 8080:8080 -e ENV=prod image
    OK

  2. docker-slim build --target image--http-probe=false

  3. docker run -it -p 8080:8080 -e ENV=prod image.slim
    ERROR


Specifications

  • Version: Docker 20.10.10, Docker-slim 1.37.0
  • Platform: Debian 11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the docker-slim build and slim-image run on Debian 11, then trace why curl cannot find /etc/pki/tls/certs/ca-bundle.crt; done when the env file downloads successfully and JBoss starts on port 8080.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, docker, java
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.