1.8.1-debian-9-r0 release

This commit is contained in:
Bitnami Bot 2019-07-02 10:39:25 +00:00
parent d87df0a0a1
commit 66798bc150
16 changed files with 484 additions and 0 deletions

View File

@ -0,0 +1,28 @@
FROM bitnami/minideb-extras-base:stretch-r290
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
HOME="/" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-9" \
OS_NAME="linux"
# Install required system packages and dependencies
RUN install_packages libc6
RUN . ./libcomponent.sh && component_unpack "harbor-notary-signer" "1.8.1-0" --checksum 7b3ace2f32b7a700a385790e0712021a36bbf2c3823d27b29314ac328be4f9b5
COPY rootfs /
RUN /postunpack.sh
ENV BITNAMI_APP_NAME="harbor-notary-signer" \
BITNAMI_IMAGE_VERSION="1.8.1-debian-9-r0" \
NAMI_PREFIX="/.nami" \
PATH="/opt/bitnami/harbor-notary-signer/bin:$PATH" \
SERVICE_NAME="notary_signer"
VOLUME [ "/etc/notary" ]
EXPOSE 7899
USER 1001
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/run.sh" ]

View File

@ -0,0 +1,33 @@
-----BEGIN CERTIFICATE-----
MIIFyzCCA7OgAwIBAgIJANdXprS3J6rsMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRIwEAYDVQQHDAlQYWxvIEFsdG8x
ETAPBgNVBAoMCEdvSGFyYm9yMQ8wDQYDVQQLDAZIYXJib3IxIDAeBgNVBAMMF1Nl
bGYtc2lnbmVkIGJ5IEdvSGFyYm9yMB4XDTE5MDYyNTExNDU0N1oXDTI5MDYyMjEx
NDU0N1owfDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNV
BAcMCVBhbG8gQWx0bzERMA8GA1UECgwIR29IYXJib3IxDzANBgNVBAsMBkhhcmJv
cjEgMB4GA1UEAwwXU2VsZi1zaWduZWQ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fBtGI+2C7No+Dq8LEyEINZe6wSQ81+ryt5jy5SZmAsnj
V4OsSIwlpR5fLUwrFStVoUWHEKl1DflkYki/cAC1TL0Om+ldJ219kcOnaXDNaq66
3I75BvRY7/88MYLl4Fgt7sn05Mn3uNPrCrci8d0R1tlXIcwMdCowIHeZdWHX43f7
NsVk/7VSOxJ343csgaQc+3WxEFK0tBxGO6GP+Xj0XmdVGLhalVBsEhPjnmx+Yyrn
oMsTA1Yrs88C8ItQn7zuO/30eKNGTnby0gptHiS6sa/c3O083Mpi8y33GPVZDvBl
l9PfSZT8LG7SvpjsdgdNZlyFvTY4vsB+Vd5Howh7gXYPVXdCs4k7HMyo7zvzliZS
ekCw9NGLoNqQqnA=
-----END CERTIFICATE-----

View File

@ -0,0 +1,28 @@
{
"server": {
"http_addr": ":4443"
},
"trust_service": {
"type": "remote",
"hostname": "notarysigner",
"port": "7899",
"tls_ca_file": "./notary-signer-ca.crt",
"key_algorithm": "ecdsa"
},
"logging": {
"level": "debug"
},
"storage": {
"backend": "postgres",
"db_url": "postgres://server:password@postgresql:5432/notaryserver?sslmode=disable"
},
"auth": {
"type": "token",
"options": {
"realm": "https://reg.mydomain.com/service/token",
"service": "harbor-notary",
"issuer": "harbor-token-issuer",
"rootcertbundle": "/etc/notary/root.crt"
}
}
}

View File

@ -0,0 +1,15 @@
{
"server": {
"grpc_addr": ":7899",
"tls_cert_file": "./notary-signer.crt",
"tls_key_file": "./notary-signer.key"
},
"logging": {
"level": "debug"
},
"storage": {
"backend": "postgres",
"db_url": "postgres://signer:password@postgresql:5432/notarysigner?sslmode=disable",
"default_alias": "defaultalias"
}
}

View File

@ -0,0 +1,43 @@
version: '2'
services:
postgresql:
image: bitnami/postgresql:11
container_name: harbor-db
environment:
- POSTGRESQL_PASSWORD=bitnami
volumes:
- postgresql_data:/bitnami/postgresql
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
harbor-notary-signer:
image: bitnami/harbor-notary-signer:1-centos-7
container_name: notary-signer
ports:
- '7899:7899'
environment:
- NOTARY_SIGNER_DEFAULTALIAS=CHANGEME
- MIGRATIONS_PATH=migrations/signer/postgresql
- DB_URL=postgres://signer:password@postgresql:5432/notarysigner?sslmode=disable
volumes:
- ./config/notary/:/etc/notary/:ro
depends_on:
- postgresql
networks:
default:
aliases:
- notarysigner
harbor-notary-server:
image: bitnami/harbor-notary-server:1-centos-7
container_name: notary-server
ports:
- '4443:4443'
environment:
- MIGRATIONS_PATH=migrations/server/postgresql
- DB_URL=postgres://server:password@postgresql:5432/notaryserver?sslmode=disable
volumes:
- ./config/notary/:/etc/notary/:ro
depends_on:
- postgresql
volumes:
postgresql_data:
driver: local

View File

@ -0,0 +1,4 @@
CREATE DATABASE notaryserver;
CREATE USER server;
alter user server with encrypted password 'password';
GRANT ALL PRIVILEGES ON DATABASE notaryserver TO server;

View File

@ -0,0 +1,4 @@
CREATE DATABASE notarysigner;
CREATE USER signer;
alter user signer with encrypted password 'password';
GRANT ALL PRIVILEGES ON DATABASE notarysigner TO signer;

View File

@ -0,0 +1,21 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
#set -o xtrace
# shellcheck disable=SC1091
# Load libraries
. /libbitnami.sh
print_welcome_page
if [[ "$*" = "/run.sh" ]]; then
info "** Starting Harbor Notary Signer setup **"
/setup.sh
info "** Harbor Notary Signer setup finished! **"
fi
echo ""
exec "$@"

View File

@ -0,0 +1,14 @@
#!/bin/bash
# shellcheck disable=SC1091
# Load libraries
. /libfs.sh
# Ensure a set of directories exist
for dir in "/etc/notary"; do
ensure_dir_exists "$dir"
done
# Ensure the non-root user has writing permission at a set of directories
chmod -R g+rwX "/etc/notary"

View File

@ -0,0 +1,22 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
#set -o xtrace
# shellcheck disable=SC1091
# Load libraries
. /liblog.sh
readonly cmd=$(command -v notary-signer)
readonly flags=("-config=/etc/notary/signer-config.postgres.json" "-logf=logfmt")
readonly installdir=$(dirname "$(dirname "$cmd")")
cd "$installdir"
info "Running Harbor Notary Server migrations"
"$installdir"/migrations/migrate.sh
info "** Starting Harbor Notary Signer **"
exec "$cmd" "${flags[@]}"

View File

@ -0,0 +1,32 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
# shellcheck disable=SC1091
# Load libraries
. /liblog.sh
. /libvalidations.sh
# Auxiliar Functions
########################
# Validate Notary Signer settings
# Arguments:
# None
# Returns:
# None
#########################
harbor_notary_signer_validate() {
info "Validating Harbor Notary Signer settings..."
if [[ ! -f "/etc/notary/signer-config.postgres.json" ]]; then
error "No configuration file was detected. Please mount your configuration file at \"/etc/notary/signer-config.postgres.json\""
exit 1
fi
}
# Ensure Harbor Notary Signer settings are valid
harbor_notary_signer_validate

View File

@ -0,0 +1,79 @@
# What is Harbor Notary Signer?
> Harbor Notary Signer is an optional component of Harbor, a cloud native registry that stores, signs, and scans content. Adding Notary Server and Notary Signer to Harbor deployment will allow users to sign their docker images.
>
> Notary Signer is part of the [Notary Project](/theupdateframework/notary), which aims to make the internet more secure by making it easy for people to publish and verify content.
[https://github.com/goharbor/harbor](https://github.com/goharbor/harbor)
# TL;DR;
```bash
$ curl -LO https://raw.githubusercontent.com/bitnami/bitnami-docker-harbor-notary-signer/master/docker-compose.yml
$ docker-compose up
```
# 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.
* Bitnami container images are released daily with the latest distribution packages available.
> This [CVE scan report](https://quay.io/repository/bitnami/harbor-notary-signer?tab=tags) contains a security report with all open CVEs. To get the list of actionable security issues, find the "latest" tag, click the vulnerability report link under the corresponding "Security scan" field and then select the "Only show fixable" filter on the next page.
# How to deploy Harbor in Kubernetes?
Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the [Bitnami Harbor Chart GitHub repository](https://github.com/bitnami/charts/tree/master/bitnami/harbor).
Bitnami containers can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters.
# Why use a non-root container?
Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers [in our docs](https://docs.bitnami.com/containers/how-to/work-with-non-root-containers/).
# Supported tags and respective `Dockerfile` links
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/).
* [`1-centos-7`, `-centos-7-r0` (1/centos-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-harbor-notary-signer/blob/-centos-7-r0/1/centos-7/Dockerfile)
* [`1-ol-7`, `1.8.1-ol-7-r0` (1/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-harbor-notary-signer/blob/1.8.1-ol-7-r0/1/ol-7/Dockerfile)
* [`1-debian-9`, `1.8.1-debian-9-r0`, `1`, `1.8.1`, `1.8.1-r0`, `latest` (1/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-harbor-notary-signer/blob/1.8.1-debian-9-r0/1/debian-9/Dockerfile)
# Configuration
Harbor Notary Signer is a component of the Harbor application. In order to get the Harbor application running on Kubernetes we encourage you to check the [bitnami/harbor Helm chart](https://github.com/bitnami/charts/tree/master/bitnami/harbor) and configure it using the options exposed in the values.yaml file.
For further information about the specific component itself, please refer to the [source repository documentation](https://github.com/goharbor/harbor/tree/master/docs).
# Contributing
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-harbor-notary-signer/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-harbor-notary-signer/pulls) with your contribution.
# Issues
If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-harbor-notary-signer/issues). For us to provide better support, be sure to include the following information in your issue:
- Host OS and version
- Docker version (`docker version`)
- Output of `docker info`
- Version of this container (`echo $BITNAMI_IMAGE_VERSION` inside the container)
- The command you used to run the container, and any relevant output you saw (masking any sensitive information)
# License
Copyright (c) 2019 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.

View File

@ -0,0 +1,43 @@
version: '2'
services:
postgresql:
image: bitnami/postgresql:11
container_name: harbor-db
environment:
- POSTGRESQL_PASSWORD=bitnami
volumes:
- postgresql_data:/bitnami/postgresql
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
harbor-notary-signer:
image: bitnami/harbor-notary-signer:1-centos-7
container_name: notary-signer
ports:
- '7899:7899'
environment:
- NOTARY_SIGNER_DEFAULTALIAS=CHANGEME
- MIGRATIONS_PATH=migrations/signer/postgresql
- DB_URL=postgres://signer:password@postgresql:5432/notarysigner?sslmode=disable
volumes:
- ./config/notary/:/etc/notary/:ro
depends_on:
- postgresql
networks:
default:
aliases:
- notarysigner
harbor-notary-server:
image: bitnami/harbor-notary-server:1-centos-7
container_name: notary-server
ports:
- '4443:4443'
environment:
- MIGRATIONS_PATH=migrations/server/postgresql
- DB_URL=postgres://server:password@postgresql:5432/notaryserver?sslmode=disable
volumes:
- ./config/notary/:/etc/notary/:ro
depends_on:
- postgresql
volumes:
postgresql_data:
driver: local