Skip to content

Conversation

@Exeloo
Copy link
Member

@Exeloo Exeloo commented Jan 20, 2026

What does this PR do?

Resolves #13
Resolves #48

How do you test this PR?

Copy link
Contributor

@MartinFillon MartinFillon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this pr doing all those things, upgrading versions, changing code, adding dockerfile. It is cluttery.

Comment on lines +1 to +11
#!/bin/sh
set -e

# Run command with nf if the first argument contains a "-" or is not a system command. The last
# part inside the "{}" is a workaround for the following bug in ash/dash:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then
set -- nf "$@"
fi

exec "$@"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this useful ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To override the node docker entrypoint

Comment on lines +1 to +21
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac

if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/usr/nanoforge/node_modules"
else
export NODE_PATH="/usr/nanoforge/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/cli/dist/nf.js" "$@"
else
exec node "$basedir/cli/dist/nf.js" "$@"
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cant we just use a release version of nanoforge instead of that ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean by that ?

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

Successfully merging this pull request may close these issues.

Add Docker with cli to run app Add bun as dependencies and use this bun to performs commands

3 participants