Skip to content

Instantly share code, notes, and snippets.

View kevholditch's full-sized avatar
💭
Eat sleep code repeat

Kevin Holditch kevholditch

💭
Eat sleep code repeat
View GitHub Profile
Running build script...
Module directory does not exist.
Analyzing build script...
Analyzing C:/Projects/cake/build.cake...
Analyzing C:/Projects/cake/build/parameters.cake...
Analyzing C:/Projects/cake/build/paths.cake...
Analyzing C:/Projects/cake/build/packages.cake...
Analyzing C:/Projects/cake/build/version.cake...
Analyzing C:/Projects/cake/build/credentials.cake...
Processing build script...
ARG GITHUB_TOKEN
ENV REPO "kevholditch/demo"
ENV FILE "demo_0.0.1_linux_amd64.tar.gz"
ENV VERSION "v0.0.1"
wget -q --auth-no-challenge --header='Accept:application/octet-stream' \
https://$GITHUB_TOKEN:@api.github.com/repos/$REPO/releases/assets/`curl -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw" -s https://api.github.com/repos/$REPO/releases | jq ". | map(select(.tag_name == \"$VERSION\"))[0].assets | map(select(.name == \"$FILE\"))[0].id"` \
-O /tmp/$FILE
if [ "$GITHUB_TOKEN" = "" ]; then
echo "you need to create a github token with access to kevholditch/demo to run this build see https://github.com/settings/tokens/new"
exit -1
fi
docker build --build-arg "GITHUB_TOKEN=$GITHUB_TOKEN" -t kevholditch/demo .
services:
sns:
image: s12v/sns
ports:
- "9911:9911"
volumes:
- ./config:/etc/sns
depends_on:
- sqs
sqs:
aws sns publish --topic-arn arn:aws:sns:us-east-1:1465414804035:test1 --endpoint-url http://localhost:9911 --message "hello"
sns_1 | com.amazonaws.http.AmazonHttpClient executeHelper
sns_1 | INFO: Unable to execute HTTP request: Connection refused (Connection refused)
sns_1 | java.net.ConnectException: Connection refused (Connection refused)
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="org.apache.camel" level="INFO"/>
<root level="DEBUG">
services:
sns:
build: ../
ports:
- "9911:9911"
volumes:
- ./config:/etc/sns
depends_on:
- sqs
sqs:
TRACE o.a.c.component.aws.sqs.SqsEndpoint - Queue available at 'http://localhost:9324/queue/queue1'.
include classpath("application.conf")
node-address {
host = sqs
}
queues {
queue1 {}
}