bitnami-containers/bitnami/schema-registry
Marc Rovner 5439966ea8
[bitnami/java] postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory itself (#28667)
* java/postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory

java/postunpack.sh copies the directory pointed to by JAVA_EXTRA_SECURITY_DIR as a subdir of `/opt/bitnami/java/lib/security` directory.

java/postunpack.sh should be coping just the contents of JAVA_EXTRA_SECURITY_DIR to `/opt/bitnami/java/lib/security` directory.

Rather it is copying the finaly directory on the path in JAVA_EXTRA_SECURITY_DIR as a subdir of `/opt/bitname/java/lib/security`

For example, using the default `JAVA_EXTRA_SECURITY_DIR` value "/bitnami/java/extra-security", create the file `rootfs/bitnami/java/extra-security/cacerts`, and build the image, rather than `/opt/bitnami/java/lib/security/cacerts` replaced with the new file, a new subdir `/opt/bitnami/java/lib/security/extra-security` directory is created, with the new `cacerts` file under there.

As a proposed fix for this, change the relevate `cp` commands from
```
   cp -Lr "$JAVA_EXTRA_SECURITY_DIR" /opt/bitnami/java/lib/security
```
to this, by added a `/.` to the end of the source argument:
```
   cp -Lr "$JAVA_EXTRA_SECURITY_DIR/." /opt/bitnami/java/lib/security
```

Signed-off-by: QuirkyMarc <mrovner@panix.com>

* Use braces for env-vars expansion

Signed-off-by: Andrés Bono <andresbono@vmware.com>

---------

Signed-off-by: QuirkyMarc <mrovner@panix.com>
Signed-off-by: Andrés Bono <andresbono@vmware.com>
Co-authored-by: Andrés Bono <andresbono@vmware.com>
2023-04-03 11:44:00 +02:00
..
6.1/debian-11 [bitnami/java] postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory itself (#28667) 2023-04-03 11:44:00 +02:00
6.2/debian-11 [bitnami/java] postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory itself (#28667) 2023-04-03 11:44:00 +02:00
7.0/debian-11 [bitnami/java] postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory itself (#28667) 2023-04-03 11:44:00 +02:00
7.1/debian-11 [bitnami/java] postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory itself (#28667) 2023-04-03 11:44:00 +02:00
7.2/debian-11 [bitnami/java] postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory itself (#28667) 2023-04-03 11:44:00 +02:00
7.3/debian-11 [bitnami/java] postunpack.sh should be copying the contents of JAVA_EXTRA_SECURITY_DIR, not the directory itself (#28667) 2023-04-03 11:44:00 +02:00
README.md [bitnami/schema-registry] Release 6.2.9-debian-11-r6 (#27400) 2023-03-14 16:42:43 +01:00
docker-compose.yml

README.md

Confluent Schema Registry packaged by Bitnami

What is Confluent Schema Registry?

Confluent Schema Registry provides a RESTful interface by adding a serving layer for your metadata on top of Kafka. It expands Kafka enabling support for Apache Avro, JSON, and Protobuf schemas.

Overview of Confluent Schema Registry Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

docker run --name schema-registry bitnami/schema-registry:latest

Why use Bitnami Images?

  • Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
  • With Bitnami images the latest bug fixes and features are available as soon as possible.
  • Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.
  • All our images are based on minideb a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading Linux distribution.
  • All Bitnami images available in Docker Hub are signed with Docker Content Trust (DCT). You can use DOCKER_CONTENT_TRUST=1 to verify the integrity of the images.
  • Bitnami container images are released on a regular basis with the latest distribution packages available.

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

You can see the equivalence between the different tags by taking a look at the tags-info.yaml file present in the branch folder, i.e bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml.

Subscribe to project updates by watching the bitnami/containers GitHub repo.

Get this image

The recommended way to get the Bitnami schema-registry Docker Image is to pull the prebuilt image from the Docker Hub Registry.

docker pull bitnami/schema-registry:latest

To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.

docker pull bitnami/schema-registry:[TAG]

If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.

git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t bitnami/APP:latest .

Configuration

Environment variables

When you start the Confluent Schema Registry image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. Please note that some variables are only considered when the container is started for the first time. If you want to add a new environment variable:

  • For docker-compose add the variable name and value under the application section in the docker-compose.yml file present in this repository:

    schema-registry:
      ...
      environment:
        - SCHEMA_REGISTRY_DEBUG=true
      ...
    
  • For manual execution add a --env option with each variable and value:

    $ docker run -d --name schema-registry -p 8081:8081 \
      --env SCHEMA_REGISTRY_DEBUG=true \
      --network schema-registry-tier \
      --volume /path/to/schema-registry-persistence:/bitnami \
      bitnami/schema-registry:latest
    

Available environment variables:

Schema Registry settings

  • SCHEMA_REGISTRY_KAFKA_BROKERS: List of Kafka brokers to connect to. Default: PLAINTEXT://localhost:9092.
  • SCHEMA_REGISTRY_ADVERTISED_HOSTNAME: Advertised hostname in ZooKeeper. Default: container IP.
  • SCHEMA_REGISTRY_KAFKA_KEYSTORE_PASSWORD: Password to access the keystore. Default: empty value.
  • SCHEMA_REGISTRY_KAFKA_KEY_PASSWORD: Password to be able to used ssl secured kafka broker with Schema Registry. Default: empty value.
  • SCHEMA_REGISTRY_KAFKA_TRUSTSTORE_PASSWORD: Password to access the truststore. Default: empty value.
  • SCHEMA_REGISTRY_KAFKA_SASL_USER: SASL user to authenticate with Kafka. Default: empty value.
  • SCHEMA_REGISTRY_KAFKA_SASL_PASSWORD: SASL password to authenticate with Kafka. Default: empty value.
  • SCHEMA_REGISTRY_LISTENERS: Comma-separated list of listeners that listen for API requests over either HTTP or HTTPS. Default: http://0.0.0.0:8081.
  • SCHEMA_REGISTRY_SSL_KEYSTORE_PASSWORD: Password to access the SSL keystore. Default: empty value.
  • SCHEMA_REGISTRY_SSL_KEY_PASSWORD: Password to access the SSL key. Default: empty value.
  • SCHEMA_REGISTRY_SSL_TRUSTSTORE_PASSWORD: Password to access the SSL truststore. Default: empty value.
  • SCHEMA_REGISTRY_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: Endpoint identification algorithm to validate the server hostname using the server certificate. Default: empty value.
  • SCHEMA_REGISTRY_CLIENT_AUTHENTICATION: Client authentication configuration. Valid options: NONE, REQUESTED, or REQUIRED.
  • SCHEMA_REGISTRY_AVRO_COMPATIBILY_LEVEL: The Avro compatibility type. Valid options: NONE, BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, or FULL_TRANSITIVE.
  • SCHEMA_REGISTRY_DEBUG: Enable Schema Registry debug logs. Valid options: true or false. Default: false.

Kafka settings

Please check the configuration settings for the Kakfa service in the Kafka's README file.

Zookeeper settings

Please check the configuration settings for the Kakfa service in the Zookeeper's README file.

Contributing

We'd love for you to contribute to this container. You can request new features by creating an issue or submitting a pull request with your contribution.

Issues

If you encountered a problem running this container, you can file an issue. For us to provide better support, be sure to fill the issue template.

License

Copyright © 2023 Bitnami

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.