This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sleep 2 | |
| mkdir -p organizations/ordererOrganizations/example.com | |
| export FABRIC_CA_CLIENT_HOME=/organizations/ordererOrganizations/example.com | |
| echo $FABRIC_CA_CLIENT_HOME | |
| set -x | |
| fabric-ca-client enroll -u https://admin:adminpw@ca-orderer:10054 --caname ca-orderer --tls.certfiles /organizations/fabric-ca/ordererOrg/tls-cert.pem | |
| { set +x; } 2>/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -x | |
| mkdir -p /organizations/peerOrganizations/org1.example.com/ | |
| export FABRIC_CA_CLIENT_HOME=/organizations/peerOrganizations/org1.example.com/ | |
| fabric-ca-client enroll -u https://admin:adminpw@ca-org1:7054 --caname ca-org1 --tls.certfiles "/organizations/fabric-ca/org1/tls-cert.pem" | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CHANNEL_NAME="$1" | |
| DELAY="$2" | |
| MAX_RETRY="$3" | |
| VERBOSE="$4" | |
| : ${CHANNEL_NAME:="mychannel"} | |
| : ${DELAY:="3"} | |
| : ${MAX_RETRY:="5"} | |
| : ${VERBOSE:="true"} | |
| FABRIC_CFG_PATH=${PWD}configtx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: create-certs | |
| spec: | |
| backoffLimit: 1 | |
| parallelism: 1 | |
| completions: 1 | |
| template: | |
| metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: create-artifacts | |
| spec: | |
| backoffLimit: 1 | |
| template: | |
| spec: | |
| containers: | |
| - name: create-artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Organizations: | |
| Name: OrdererOrg | |
| # ID to load the MSP definition as | |
| ID: OrdererMSP | |
| # MSPDir is the filesystem path which contains the MSP configuration | |
| MSPDir: ../organizations/ordererOrganizations/example.com/msp | |
| ... | |
| OrdererEndpoints: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.17-buster as builder | |
| ARG upx_version=3.96 | |
| RUN apt-get update && apt-get install -y --no-install-recommends xz-utils && \ | |
| curl -Ls https://github.com/upx/upx/releases/download/v${upx_version}/upx-${upx_version}-amd64_linux.tar.xz -o - | tar xvJf - -C /tmp && \ | |
| cp /tmp/upx-${upx_version}-amd64_linux/upx /usr/local/bin/ && \ | |
| chmod +x /usr/local/bin/upx && \ | |
| apt-get remove -y xz-utils && \ | |
| rm -rf /var/lib/apt/lists/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <properties> | |
| <java.version>17</java.version> | |
| <spring-native.version>0.11.0-RC1</spring-native.version> | |
| <repackage.classifier/> | |
| <maven.compiler.source>${java.version}</maven.compiler.source> | |
| <maven.compiler.target>${java.version}</maven.compiler.target> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
| </properties> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.github.susimsek.springbootdemorest.config; | |
| import io.swagger.v3.oas.models.parameters.Parameter; | |
| import org.springdoc.core.customizers.OperationCustomizer; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| @Configuration | |
| public class ApiDocConfig { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>org.springdoc</groupId> | |
| <artifactId>springdoc-openapi-hateoas</artifactId> | |
| </dependency> |