Giter VIP home page Giter VIP logo

Comments (8)

rst-fokus avatar rst-fokus commented on June 1, 2024

Hello @ilovetogetspamed ,

I think it is related to some GNU tools used in the script. I will have a look to it.

Best,
Ronald

from openmtc.

ilovetogetspamed avatar ilovetogetspamed commented on June 1, 2024

from openmtc.

butzeldodo avatar butzeldodo commented on June 1, 2024

Well, "works for me" ™ on macOS Mojave, but I remember I had to do some changes, e.g. update bash to 4.4

from openmtc.

ilovetogetspamed avatar ilovetogetspamed commented on June 1, 2024

$ echo $BASH_VERSION
5.0.0(1)-release
$ ./create-binary-docker gateway
Error: Exactly one module name needs to be provided
Usage: create-binary-docker [OPTS] <module_name>
OPTS:
-a|--arch Choose architecture: amd64|arm
-p|--prefix Choose Docker image name prefix
-e|--export Export the Docker image to a file, after build

-h|--help                  Show this help
-v|--version               Show version information

module_name:
gateway | backend

@dnehls any other ideas?

from openmtc.

butzeldodo avatar butzeldodo commented on June 1, 2024

Another issue I had was with the mac's getopt
See also stackoverflow

from openmtc.

ilovetogetspamed avatar ilovetogetspamed commented on June 1, 2024

@dnehls that didn't work. Don't have time to fool with it now. will look at it again sometime. I tried ksh and zsh and they didn't work either. Don't have time to waste now. I may put it in a ubuntu vm and play with it there in the future.

from openmtc.

ilovetogetspamed avatar ilovetogetspamed commented on June 1, 2024

FYI -- Got it going in a Ubuntu 18 VirtualBoxVM on macOS Mojave.

from openmtc.

ilovetogetspamed avatar ilovetogetspamed commented on June 1, 2024

Update -- to run on macOS Mojave:

  1. Install gnu-getopt
$ brew install gnu-getopt
  1. setup your PATH to use gnu-getopt ahead of /
$ PATH=/usr/local/Cellar/gnu-getopt/1.1.6/bin:$PATH
$ which getopt
/usr/local/Cellar/gnu-getopt/1.1.6/bin/getopt
  1. run the command.
$ ./create-binary-docker gateway
...
### Base gateway-amd64 container built successfully.
...

Put your path back if you like. It will go away when you close your terminal session. I don't recommend overriding the OS's getopt with gnu-getopt.

All is good... ;-)

from openmtc.

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.