#I got sidetracked building tmate from
1 messages ยท Page 1 of 1 (latest)
Spent a whole bunch of time copying the binary + all required dynamic libraries into a separate bundle... only to realize there is a script to build a static binary 
https://tmate.io/
What is this sorcery!
I should warn you, tmate is a whole sidetrack..
- really awesome functionality
- they really need dagger ๐
head build_static_release.sh -n 4
#!/bin/bash
set -eux
# This is invoked by .travis.yml
๐ฑ
might as well be at Gen I
@scenic marlin can you try this?
dagger shell -m github.com/shykes/daggerverse/tmate wrap alpine
required flag(s) container not set
should it be --container alpine?
ah it wants a Container
Ah yes please
The idea is to drop tmate into the container of your choice
once that works, I'll add sugar to autorun tmate ahead of your own entrypoint.. If I ever figure out what the hell is going on with dagger shell and entrypoints..
got it, yeah I don't think we have a way of inputting a Container yet, right?
are you using a secret dev version?
you're getting the terminfo database error?
- I get an alpine shell
- Then when I run
tmateI get the terminfo error
json: error calling MarshalJSON for type *main.Container: input:1: git.tag.tree.dockerBuild.file process "/bin/sh -c apk add --no-cache wget cmake make gcc g++ linux-headers zlib-dev openssl-dev aut
โ ake autoconf libevent-dev ncurses-dev msgpack-c-dev libexecinfo-dev ncurses-static libexecinfo-static libevent-static msgpack-c ncurses-libs libevent libexecinfo openssl zlib" did not co
โ lete successfully: exit code: 1
โ file(path: "tmate") ERROR [0.08s]
โ [ 3/10] RUN apk add --no-cache wget cmake make gcc g++ linux-headers zlib-dev openssl-dev automake autoconf libevent-dev ncurses-dev msgpack-c-dev libexecinfo-dev ncurses-static libexecinfo-static libevent-static msgpack-c ncurses-libs libevent libexecinfo openssl zlib ERROR [0.07s]
โ exec /bin/sh: no such file or directory
daggerdev shell -m github.com/shykes/daggerverse/tmate wrap --container alpine
true ๐ค
arm64 on my end
mmm sorry arm64 also
could you try dagger download --export-path=tmate-static -m github.com/shykes/daggerverse/tmate static ?
And take a look at that file?
same error, so I guess it's from that tmate build. digging deeper...
oh it's tmate's dockerfile
that's super weird
is that the same image sha you're getting?
can you pass the build arg PLATFORM=runtime.GOARCH? https://github.com/tmate-io/tmate/blob/master/Dockerfile#L1
that was on my todolist
let me check sha
โฃโโฎ
โ โฝ docker build
โ โ [0.47s] git://github.com/tmate-io/tmate.git#2.4.0
โ โ 5e00bfa5e137e76c81888727712ced2b3fd99f5b refs/tags/2.4.0
โ โ [0.01s] [ 1/10] FROM docker.io/amd64/alpine:3.10@sha256:e515aad2ed234a5072c4d2ef86a1cb77d5bfe4b11aa865d9214875734c4eeb3c
โ โฃ [0.01s] resolve docker.io/amd64/alpine:3.10@sha256:e515aad2ed234a5072c4d2ef86a1cb77d5bfe4b11aa865d9214875734c4eeb3c
looks like the same
ah it's running for me now ๐ I forgot that I just rebooted and needed to reload qemu
so apparently that's the error that comes back if qemu isn't on
good to know
getting further in the build now but still failing
from make error "no strtoull function found"
Yeah I'm at a loss lol
@scenic marlin did you ever get it to work?
