#I got sidetracked building tmate from

1 messages ยท Page 1 of 1 (latest)

scenic marlin
#

Awesome! I haven't had a chance to try it out yet

median pelican
#

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 facepalm

honest urchin
median pelican
#

I should warn you, tmate is a whole sidetrack..

#
  1. really awesome functionality
#
  1. they really need dagger ๐Ÿ˜‰
#
head build_static_release.sh  -n 4
#!/bin/bash
set -eux                                       
# This is invoked by .travis.yml

๐Ÿ˜ฑ

honest urchin
#

might as well be at Gen I

median pelican
#

@scenic marlin can you try this?

dagger shell -m github.com/shykes/daggerverse/tmate wrap alpine
scenic marlin
#

required flag(s) container not set

#

should it be --container alpine?

#

ah it wants a Container

median pelican
#

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..

scenic marlin
#

got it, yeah I don't think we have a way of inputting a Container yet, right?

median pelican
#

we do ๐Ÿ™‚

#

it will interpret it as a ref, and pull it

scenic marlin
median pelican
#

oh... nevermind

#

but how did it work for me??

scenic marlin
#

are you using a secret dev version?

median pelican
#

just main

#

yeah definitely works for me

scenic marlin
#

cool i'll try on main, one sec

#

does it work for you with alpine?

median pelican
#

you're getting the terminfo database error?

#
  • I get an alpine shell
  • Then when I run tmate I get the terminfo error
scenic marlin
#
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

median pelican
#

Hum

#

Only possible variation is the platform

scenic marlin
#

true ๐Ÿค”

median pelican
#

What platform would that build run on?

#

amd64 arm64 here

scenic marlin
#

arm64 on my end

median pelican
#

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?

scenic marlin
#

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?

median pelican
#

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

scenic marlin
#

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

median pelican
#

good to know

scenic marlin
#

getting further in the build now but still failing

#

from make error "no strtoull function found"

median pelican
#

That's crazy to me

#

How could our two builds be so different?

scenic marlin
#

Yeah I'm at a loss lol

median pelican
#

@scenic marlin did you ever get it to work?