This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN"> | |
<Appenders> | |
<Console name="STDOUT"> | |
<!-- eventEol should be "false" --> | |
<JSONLayout compact="true" eventEol="false" includeTimeMillis="true" /> | |
</Console> | |
</Appenders> | |
<Loggers> | |
<Root level="INFO"> |
This file contains 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
// Uses Declarative syntax to run commands inside a container. | |
pipeline { | |
agent { | |
kubernetes { | |
cloud 'openshift' | |
defaultContainer 'maven' | |
yaml ''' | |
apiVersion: v1 | |
kind: Pod | |
spec: |
This file contains 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
#!/bin/bash | |
# config files (user-data & meta-data) must be under "template" directory!! | |
OUTPUT_NAME=seed-$1 | |
VM_HOST_NAME=$1 | |
VM_IPV4_ADDRESS=$2 | |
rm -rf $VM_HOST_NAME | |
rm -f $OUTPUT_NAME.iso |
This file contains 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.15' | |
} | |
} | |
plugins { |
This file contains 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
import * as cdk from '@aws-cdk/core'; | |
import * as codecommit from '@aws-cdk/aws-codecommit'; | |
import * as amplify from '@aws-cdk/aws-amplify'; | |
// https://aws.amazon.com/jp/blogs/mobile/deploying-a-static-website-with-aws-amplify-and-cdk/ | |
export class AmplifyAppStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); | |
// create repository |
This file contains 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
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Frontend application hosted by Amplify | |
Parameters: | |
AppName: | |
Type: String | |
Default: my-app | |
Description: Amplify application name | |
AppRolePolicyName: | |
Type: String | |
Default: AppRoleDefaultPolicy |
This file contains 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
# Build stage | |
FROM maven:3.6-openjdk-11 AS builder | |
WORKDIR /app | |
COPY . /app | |
RUN mvn clean package | |
# Runtime stage | |
FROM openjdk:11 | |
WORKDIR /app | |
COPY --from=builder /app/target/sample-app.jar . |
This file contains 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
"use strict"; | |
const { Contract, Context } = require("fabric-contract-api"); | |
module.exports = class SampleContract extends Contract { | |
constructor() { | |
super("BasicContract"); | |
} | |
/** | |
* 取得処理 |
This file contains 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
version: "3" | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:5.4.0 | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: | |
- "32181:32181" | |
environment: |
This file contains 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
import com.google.gson.Gson; | |
import org.apache.kafka.clients.CommonClientConfigs; | |
import org.apache.kafka.clients.consumer.Consumer; | |
import org.apache.kafka.clients.consumer.ConsumerConfig; | |
import org.apache.kafka.clients.consumer.ConsumerRecords; | |
import org.apache.kafka.clients.consumer.KafkaConsumer; | |
import org.apache.kafka.clients.producer.*; | |
import org.apache.kafka.common.config.SaslConfigs; | |
import org.apache.kafka.common.config.SslConfigs; |
NewerOlder