Skip to content

Use curl instead ollama docker image - bugfix bash not in path#108

Merged
nekomeowww merged 1 commit intonekomeowww:mainfrom
cafsenra:asenra_use_curl_image_instead_ollama_to_pull_models_bugfix
Oct 17, 2025
Merged

Use curl instead ollama docker image - bugfix bash not in path#108
nekomeowww merged 1 commit intonekomeowww:mainfrom
cafsenra:asenra_use_curl_image_instead_ollama_to_pull_models_bugfix

Conversation

@cafsenra
Copy link
Contributor

Close: #107

@cafsenra cafsenra marked this pull request as ready for review October 17, 2025 17:22
@nekomeowww nekomeowww merged commit 8ebccd6 into nekomeowww:main Oct 17, 2025
4 checks passed
@cafsenra
Copy link
Contributor Author

@nekomeowww fyi I tested yesterday this change with the unstable tag for the operator created after merging my PR. Everything looks good now and we are able now to define security context in pod template field to the containers to run as non root as intended with change #105

...
  podTemplate:
    spec:
      securityContext:
        fsGroup: 1000
      containers:
      - name: server
        image: ollama/ollama
        imagePullPolicy: Always
        securityContext:
          runAsNonRoot: true
          runAsUser: 1000
          runAsGroup: 1000
          allowPrivilegeEscalation: false
          capabilities:
            drop:
              - ALL
      initContainers:
      - name: ollama-image-pull
        image: curlimages/curl
        imagePullPolicy: Always
        securityContext:
          runAsNonRoot: true
          runAsUser: 1000
          runAsGroup: 1000
          allowPrivilegeEscalation: false
          capabilities:
            drop:
              - ALL
...

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.

Curl init containr throws an error exec: "bash": executable file not found in $PATH

2 participants