diff --git a/.github/workflows/auto-check-new-releases.yml b/.github/workflows/auto-check-new-releases.yml index 980722b..430531d 100644 --- a/.github/workflows/auto-check-new-releases.yml +++ b/.github/workflows/auto-check-new-releases.yml @@ -21,7 +21,7 @@ jobs: - name: Fetch release version id: fetch-version run: | - curl -sL https://raw.githubusercontent.com/n8n-io/n8n/master/package.json | jq -r ".version" > release-versions/n8n-latest.txt + curl -s https://api.github.com/repos/n8n-io/n8n/releases/latest | jq -r '.tag_name' | cut -d'@' -f2 > release-versions/n8n-latest.txt echo ::set-output name=version::$(cat release-versions/n8n-latest.txt) # - name: Check for modified files diff --git a/images/n8n-debian/Dockerfile b/images/n8n-debian/Dockerfile index 48a5a02..4777970 100644 --- a/images/n8n-debian/Dockerfile +++ b/images/n8n-debian/Dockerfile @@ -24,7 +24,7 @@ USER root RUN npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} # Install n8n-nodes-python module -RUN cd /usr/lib/node_modules/n8n && npm install n8n-nodes-python +RUN npm install n8n-nodes-python --prefix /home/node/custom/.n8n/nodes/ && mkdir /home/node/.n8n ENV NODE_ICU_DATA /usr/lib/node_modules/full-icu diff --git a/images/n8n-debian/README.md b/images/n8n-debian/README.md index 525ac41..5599419 100644 --- a/images/n8n-debian/README.md +++ b/images/n8n-debian/README.md @@ -7,15 +7,14 @@ For information about how to run n8n with Docker check the generic ``` -docker build --build-arg N8N_VERSION= -t n8nio/n8n: . # For example: -docker build --build-arg N8N_VERSION=0.43.0 -t n8nio/n8n:0.43.0-debian . +docker build --build-arg N8N_VERSION=1.37.3 -t n8nio/n8n:1.37.3-debian . ``` ``` docker run -it --rm \ --name n8n \ -p 5678:5678 \ - n8nio/n8n:0.43.0-debian + n8nio/n8n:1.37.3-debian ``` diff --git a/images/n8n-debian/docker-entrypoint.sh b/images/n8n-debian/docker-entrypoint.sh index 80a252f..b9dfa2b 100755 --- a/images/n8n-debian/docker-entrypoint.sh +++ b/images/n8n-debian/docker-entrypoint.sh @@ -1,11 +1,13 @@ #!/bin/sh -if [ -d /root/.n8n ] ; then - chmod o+rx /root - chown -R node /root/.n8n - ln -s /root/.n8n /home/node/ +if [ -d /home/node/custom/.n8n/nodes/ ] ; then + chmod o+rx /home/node/custom + chown -R node /home/node/custom/.n8n/ + ln -s /home/node/custom/.n8n/nodes/ /home/node/.n8n/ fi +chown -R node /home/node + if [ "$#" -gt 0 ]; then # Got started with arguments exec gosu node "$@" diff --git a/images/n8n-debian/requirements.txt b/images/n8n-debian/requirements.txt new file mode 100644 index 0000000..2b99497 --- /dev/null +++ b/images/n8n-debian/requirements.txt @@ -0,0 +1,5 @@ +openai==1.8.0 +langchain==0.1.1 +langchain-openai==0.0.2.post1 +langchain-community===0.0.15 +fire \ No newline at end of file