8000 sudo: source: command not found · Issue #8 · thecodingmachine/docker-images-nodejs · GitHub
[go: up one dir, main page]

Skip to content
sudo: source: command not found #8
Open
@tinuva

Description

@tinuva

When adding a /etc/config/startup.sh file to the configuration, I get the error sudo: source: command not found

docker-compose up -d --remove-orphans && docker-compose logs -f --tail 10 | grep nodejswatch
Creating nodejswatch ... done
Attaching to nodejswatch,
nodejswatch        | sudo: source: command not found
nodejswatch        | time="2020-11-24T08:16:17Z" level=info msg="read crontab: /tmp/generated_crontab" 
nodejswatch exited with code 1

Docker compose config:

  nodejswatch:
    container_name: nodejswatch
    image: thecodingmachine/nodejs:10-apache
    environment:
      - CRON_USER_1=www-data
      - CRON_SCHEDULE_1=*/5 * * * *
      - CRON_COMMAND_1=node /var/www/html/script.js
    volumes:
      - ${USERDIR}/docker/nodejswatch/data:/var/www/html
      - ${USERDIR}/docker/nodejswatch/config/startup.sh:/etc/container/startup.sh:ro

Is there something I am doing wrong? Contents of the script doesnt matter I just get the above error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0