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

markdown-renderer / generate.sh: applet not found #1

Open
StefanHeimberg opened this issue Aug 9, 2021 · 1 comment
Open

markdown-renderer / generate.sh: applet not found #1

StefanHeimberg opened this issue Aug 9, 2021 · 1 comment

Comments

@StefanHeimberg
Copy link

StefanHeimberg commented Aug 9, 2021

Damit der Markdown Renderer unter Mac OS X funktioniert muss der Command entweder einen Shebang enthalten oder nicht direkt sondern über den sh Befehl ausgeführt werden.

Variante Shebang:

In 01-environment/docker/documentation/templates/generate.sh die Zeile einfügen:

#!/usr/bin/env sh

Variante Command:

oder im Docker file / Docker-Compose den Command anpassen:

sh -x /scripts/generate.sh
  markdown-renderer:
    image: trivadis/jinja2-renderer:latest
    container_name: markdown-renderer
    hostname: markdown-renderer
    command: sh -x /scripts/generate.sh
    environment:

Fehlerdetail

Ansonsten kommt es unter macOS 11.4 zu folgendem Fehler:

➜  docker git:(main) ✗ docker-compose up markdown-renderer
Recreating markdown-renderer ... done
Attaching to markdown-renderer
markdown-renderer     | generate.sh: applet not found
markdown-renderer exited with code 127

Ausgabe mit Shebang und/oder Ausführung mit "sh -x":

➜  docker git:(main) ✗ docker-compose up markdown-renderer
Starting markdown-renderer ... done
Attaching to markdown-renderer
markdown-renderer     | + jinja2 /templates/services.md.j2 /variables/docker-compose.yml '--format=yaml' --outfile /output/services.md
markdown-renderer     | + jinja2 /templates/index.md.j2 /variables/config.yml '--format=yaml' --outfile /output/index.md
markdown-renderer exited with code 0

Meine Umgebung:

  • MacBook Air (M1, 2020)
  • Apple M1
  • macOS Big Sur 11.4 (20F71)
➜  docker git:(main) ✗ docker version
Client:
 Cloud integration: 1.0.17
 Version:           20.10.7
 API version:       1.41
 Go version:        go1.16.4
 Git commit:        f0df350
 Built:             Wed Jun  2 11:56:23 2021
 OS/Arch:           darwin/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.7
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       b0f5bc3
  Built:            Wed Jun  2 11:55:36 2021
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.4.6
  GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
 runc:
  Version:          1.0.0-rc95
  GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
➜  docker git:(main) ✗ docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.9.0
OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020
@StefanHeimberg
Copy link
Author

Zu bedenken hierbei ist auch: docker/for-mac#5736 und confluentinc/kafka-images#80

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

1 participant