Can't install golang using a workflow

Describe the problem/error/question

Probably I don’t have enough experience with n8n yet, but I think my use case is kind of simple. I just want to install Golang in my n8n host machine from a workflow to run some Golang cli tools in my workflows (which will also be installed from a workflow). I’ve tried many different things:

  1. Trying apt/snap → They don’t exist
  2. wget the tar.gz file, but I can’t extract it (neither with the extract node nor with “tar” command)

Please share your workflow

I just keep getting that memory is not enough when reading the file from disk (with read file node) but I just run “docker stats” and this is not true.

Information on your n8n setup

  • n8n version: 1.31.2
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Not sure about this.
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker in digital ocean
  • Operating system: Ubuntu 22.04

hello @Forjaser

Why are you trying to install GO with n8n?

Better to use the docker capabilities for that - Dockerfile reference | Docker Docs

1 Like

Hmm maybe that could work, although I’m using docker compose (no complain, just need to try). I’ll let you know if this works with my full use case

you can let docker execute commands via the docker compose file

services:
 server:
   image: alpine
   command: ["sh","-c","sleep 15 && curl -u rob:123456 -X PUT couchserver:5984/_users &&  curl -u rob:123456 -X PUT couchserver:5984/test"]