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

Out of the box SSL=true fails. docker-entrypoint.sh uses openssl, but it's not installed on the image. #5561

Open
ndtreviv opened this issue Apr 26, 2024 · 1 comment

Comments

@ndtreviv
Copy link

Description

I want to run Zenko CloudServer over SSL. There's an option to set SSL=true on the docker container, at which point the docker-entrypoint.sh will generate self-signed certificates using openssl.

openssl is not installed on the base image, so when docker-entrypoint.sh attempts to call it, the container exits with an error code.

Steps to reproduce the issue

Using this docker-compose file:

version: '3'
services:
  s3server:
    # image: zenko/cloudserver:latest
    image: registry.scality.com/cloudserver/cloudserver:8.7.43
    container_name: s3server
    restart: unless-stopped
    ports:
      - "8000:8000"
    volumes:
      - s3data:/usr/src/app/localData
      - s3metadata:/usr/src/app/localMetadata
    environment:
      # - SCALITY_ACCESS_KEY_ID=newAccessKey
      # - SCALITY_SECRET_ACCESS_KEY=newSecretKey
      - REMOTE_MANAGEMENT_DISABLE=1
      - SSL=true
      - S3BACKEND=file
      - ENDPOINT=cloudserver
volumes:
  s3data:
  s3metadata:

run: docker-compose up

Actual result

The container exits after hitting the error in the docker-entrypoint.sh:

[+] Building 0.0s (0/0)                                                                                        docker:desktop-linux
[+] Running 2/0
 ✔ Container s3server                                                                                                                                      Recreated0.0s 
 ! s3server The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s 
Attaching to s3server
s3server  | Host name has been modified to cloudserver
s3server  | Note: In your /etc/hosts file on Linux, OS X, or Unix with root permissions, make sure to associate 127.0.0.1 with cloudserver
s3server  | /usr/src/app/docker-entrypoint.sh: line 54: openssl: command not found

Expected result

The entrypoint should generate the self signed certs and the server should start up successfully.

Additional information

  • Docker version: Docker Desktop 4.25.1 (128006)

Suggested fix

Install openssl on the base image.

@ndtreviv
Copy link
Author

Is this repo being maintained? Feels like not.

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