Skip to content

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

Open
@ndtreviv

Description

@ndtreviv

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.

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