Skip to content
Snippets Groups Projects
Commit d5e6c603 authored by Goutham Veeramachaneni's avatar Goutham Veeramachaneni Committed by Tom Wilkie
Browse files

Make images run (#49)


No clue what the flag is and what fixed it.

With `-linkmode=external`, this is printed while building the image
```
loadinternal: cannot find runtime/cgo
```

When you try to run the image there is a coredump, see
```
```➜  loki git:(master) ✗ strace ./cmd/loki/loki
execve("./cmd/loki/loki", ["./cmd/loki/loki"], 0x7ffe400edb30 /* 36 vars */) = 0
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffef5e69200) = -1 EINVAL (Invalid argument)
brk(NULL)                               = 0x3140000
brk(0x31411c0)                          = 0x31411c0
arch_prctl(ARCH_SET_FS, 0x3140880)      = 0
uname({sysname="Linux", nodename="nomad", ...}) = 0
readlink("/proc/self/exe", "/home/goutham/go/src/github.com/"..., 4096) = 58
brk(0x31621c0)                          = 0x31621c0
brk(0x3163000)                          = 0x3163000
arch_prctl(ARCH_SET_FS, 0x12012b0)      = 0
--- SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} ---
+++ killed by SIGTRAP (core dumped) +++
[1]    14848 trace trap (core dumped)  strace ./cmd/loki/loki```
```

Signed-off-by: default avatarGoutham Veeramachaneni <gouthamve@gmail.com>
parent 04edce46
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment