dify icon indicating copy to clipboard operation
dify copied to clipboard

The `latest` tag of dify-sandbox image is outdated

Open mrchi opened this issue 1 year ago • 2 comments

Self Checks

  • [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

✔️ Expected Behavior

keep the latest tag pointing to the latest image tag, now is 0.2.0.

❌ Actual Behavior

the latest tag is not updated when 0.2.0 released.

mrchi avatar May 27 '24 02:05 mrchi

Hello @mrchi! 👋 I'm here to help you out with any bugs, questions, or ways to contribute to the project while we wait for a human maintainer. Let's squash that bug together!

To address the issue of the latest tag for the dify-sandbox image not being updated to point to the 0.2.0 release, you can update the image tag in the docker-compose.middleware.yaml file. Here is the relevant section of the file:

# The DifySandbox
sandbox:
  image: langgenius/dify-sandbox:latest
  restart: always
  environment:
    # The DifySandbox configurations
    # Make sure you are changing this key for your deployment with a strong key.
    # You can generate a strong key using `openssl rand -base64 42`.
    API_KEY: dify-sandbox
    GIN_MODE: 'release'
    WORKER_TIMEOUT: 15
    ENABLE_NETWORK: 'true'
    HTTP_PROXY: 'http://ssrf_proxy:3128'
    HTTPS_PROXY: 'http://ssrf_proxy:3128'
  volumes:
    - ./volumes/sandbox/dependencies:/dependencies
  networks:
    - ssrf_proxy_network

This change ensures that the sandbox service uses the latest tag, which should now point to the 0.2.0 release [1].

Additionally, the automated workflows in place for updating the latest tag in the Docker Hub repository for dify-sandbox should ensure that the latest tag is updated automatically when changes are pushed to the main branch or when a new release is published [2].

Details

About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

dosubot[bot] avatar May 27 '24 02:05 dosubot[bot]

Oops, I will fix it

Yeuoly avatar May 30 '24 10:05 Yeuoly

fixed

Yeuoly avatar May 31 '24 05:05 Yeuoly