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 openjdk:8-jdk-alpine | |
| RUN apk --no-cache add curl tzdata && cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime | |
| RUN adduser -D -s /bin/sh voyagerwoo | |
| USER voyagerwoo | |
| WORKDIR /home/voyagerwoo | |
| ARG JAR_FILE | |
| COPY target/${JAR_FILE} app.jar | |
| ENV PROFILE=local | |
| ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROFILE}","-jar","app.jar"] |
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
| version: "3" | |
| services: | |
| sonarqube: | |
| image: sonarqube:lts-alpine | |
| ports: | |
| - "19000:9000" | |
| links: | |
| - db | |
| environment: |
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
| sudo wget https://dl.influxdata.com/influxdb/releases/influxdb-1.6.4.x86_64.rpm | |
| sudo yum localinstall -y influxdb-1.6.4.x86_64.rpm | |
| sudo wget https://dl.influxdata.com/kapacitor/releases/kapacitor-1.5.1.x86_64.rpm | |
| sudo yum localinstall -y kapacitor-1.5.1.x86_64.rpm | |
| sudo wget https://dl.influxdata.com/chronograf/releases/chronograf-1.6.2.x86_64.rpm | |
| sudo yum localinstall -y chronograf-1.6.2.x86_64.rpm | |
| sudo wget https://dl.influxdata.com/telegraf/releases/telegraf-1.8.3-1.x86_64.rpm |
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
| #!/bin/bash | |
| # | |
| # steps taken verbatim from: | |
| # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#install_docker | |
| # | |
| sudo yum update -y | |
| sudo yum install -y docker | |
| sudo service docker start | |
| sudo usermod -a -G docker ec2-user | |
| # log out and log in to pickup the added group |
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
| #!/bin/bash | |
| # | |
| # steps taken verbatim from: | |
| # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#install_docker | |
| # | |
| sudo yum update -y | |
| sudo yum install -y docker | |
| sudo service docker start | |
| sudo usermod -a -G docker ec2-user | |
| # log out and log in to pickup the added group |
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
| const BASE64 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_"; | |
| function encodeBASE64(value) { | |
| value = parseInt(value); | |
| if (!value) throw new Error("Not a integer value.") | |
| let result = ""; | |
| do { | |
| result += BASE64[value % 64]; | |
| value = parseInt(value / 64); | |
| } while (value > 0); | |
| return result; |
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
| function retryPromise(promiseFunc, args, retryTimes) { | |
| const max = retryTimes; | |
| let result; | |
| const retry = (promiseFunc, args, retryTimes) => new Promise((resolve, reject) => { | |
| if (retryTimes <= 0) { | |
| const message = `${promiseFunc.name} : ${max} times failed...`; | |
| console.log(message); | |
| reject(new Error(message)); return; | |
| } | |
| return promiseFunc.apply(null, args).then(r => { |
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
| using Newtonsoft.Json; | |
| using System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using Windows.Web.Http; | |
| namespace vw.http.service | |
| { | |
| class MultiPartService | |
| { |