Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jq & packer #30

Closed
solace-10 opened this issue Jun 11, 2020 · 3 comments
Closed

jq & packer #30

solace-10 opened this issue Jun 11, 2020 · 3 comments

Comments

@solace-10
Copy link
Contributor

Hello.

I've just tried setting up my first instance with axiom-configure as recommended in the readme. I'm running Linux Mint 19.3 ( Linux flagship 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux).

On my first attempt I got an error with jq and packer being unknown commands:

You're running Bash! Installing Axiom to $PATH... /dev/fd/63: line 193: jq: command not found Beginning first packer build... /dev/fd/63: line 197: packer: command not found

I've installed them via apt. After that, I'm getting the following:

`You're running Bash! Installing Axiom to $PATH...
jq - commandline JSON processor [version 1.5-1-a5b5cbe]
Usage: jq [options] [file...]

jq is a tool for processing JSON inputs, applying the
given filter to its JSON text inputs and producing the
filter's results as JSON on standard output.
The simplest filter is ., which is the identity filter,
copying jq's input to its output unmodified (except for
formatting).
For more advanced filters see the jq(1) manpage ("man jq")
and/or https://stedolan.github.io/jq

Some of the options include:
 -c		compact instead of pretty-printed output;
 -n		use `null` as the single input value;
 -e		set the exit status code based on the output;
 -s		read (slurp) all inputs into an array; apply filter to it;
 -r		output raw strings, not JSON texts;
 -R		read raw strings, not JSON texts;
 -C		colorize JSON;
 -M		monochrome (don't colorize JSON);
 -S		sort keys of objects on output;
 --tab	use tabs for indentation;
 --arg a v	set variable $a to value <v>;
 --argjson a v	set variable $a to JSON value <v>;
 --slurpfile a f	set variable $a to an array of JSON texts read from <f>;
See the manpage for more options.

Beginning first packer build...
invalid value "/home/hostilenode/.axiom/axiom.json" for flag -var-file: Error reading variables in '/home/hostilenode/.axiom/axiom.json': EOF
Usage: packer build [options] TEMPLATE

Will execute multiple builds in parallel as defined in the template.
The various artifacts created by the template will be outputted.

Options:

-color=false Disable color output (on by default)
-debug Debug mode enabled for builds
-except=foo,bar,baz Build all builds other than these
-only=foo,bar,baz Build only the specified builds
-force Force a build to continue if artifacts exist, deletes existing artifacts
-machine-readable Machine-readable output
-on-error=[cleanup|abort|ask] If the build fails do: clean up (default), abort, or ask
-parallel=false Disable parallelization (on by default)
-var 'key=value' Variable for templates, can be used multiple times.
-var-file=path JSON file containing user variables.
`

Any thoughts? Mismatching jq / packer versions?

@justatechnology
Copy link

You got this thing working? Figuring out same thing.

@solace-10
Copy link
Contributor Author

Hey. Yeah, I got it working. Linux Mint has outdated packages.

Grab the following and place them in your user's local bin:
jq: https://github.com/stedolan/jq/releases
packer: https://www.packer.io/downloads/
doctl: https://github.com/digitalocean/doctl/releases

@pry0cc
Copy link
Owner

pry0cc commented Jun 15, 2020

Thanks for posting the solutions! I remember we fixed this in DM :)

@pry0cc pry0cc closed this as completed Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants