Code Monkey home page Code Monkey logo

Comments (3)

hairyhenderson avatar hairyhenderson commented on July 16, 2024

@estahn That's interesting - the result of the build that I make for Linux is 13.5MBs (https://github.com/hairyhenderson/gomplate/releases/download/v1.9.1/gomplate_linux-amd64). I'll have a closer look at the build for Alpine (https://github.com/alpinelinux/aports/blob/master/community/gomplate/APKBUILD)

One thing to note - I produce a smaller "slim" build for some platforms. The Linux/amd64 binary is 3.7MBs. I use UPX to produce the slim ones, and unfortunately UPX isn't available in the Alpine repos yet, so it won't be able to be used during the Alpine build.

I'll try to see if I can get the build closer to the 13MB mark, but beyond that for now we're out of luck. The main reason it's so big is the aws-sdk-go package. I logged #47 a while back to track the possibility of making that smaller...

from gomplate.

estahn avatar estahn commented on July 16, 2024

@hairyhenderson Actually, I'm using the slim version now in my alpine image.

curl -SsL -o /usr/local/bin/gomplate https://github.com/hairyhenderson/gomplate/releases/download/v1.9.1/gomplate_linux-amd64-slim

Works fine.

It might be an idea to provide a version without aws-sdk-go, e.g. we're not using this feature atm. Anyways, the slim version works for me.

from gomplate.

hairyhenderson avatar hairyhenderson commented on July 16, 2024

It might be an idea to provide a version without aws-sdk-go

Yep - that crossed my mind, though it's easier said than done 😉

from gomplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.