-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#463 filled out logic for cassandra oauth plugin. fixed broken querie…
…s. got cassandra generally working it seems
- Loading branch information
Showing
14 changed files
with
472 additions
and
81 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,15 @@ WORKDIR /janus | |
|
||
COPY . ./ | ||
|
||
######## Set Up github credentials to we can access private modules ######## | ||
RUN apk add git | ||
ARG GITHUB_USER | ||
ENV GITHUB_USER=$GITHUB_USER | ||
RUN echo $GITHUB_USER | ||
ARG GITHUB_TOKEN | ||
ENV GITHUB_TOKEN=$GITHUB_TOKEN | ||
RUN git config --global url."https://$GITHUB_USER:[email protected]".insteadOf "https://github.com" | ||
|
||
# Add tooling to install GCC | ||
RUN apk add build-base | ||
# Add cqlsh to the image. | ||
|
@@ -38,6 +47,7 @@ HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f http://localhost: | |
FROM build-debug-common as dev | ||
EXPOSE 8080 8081 8443 8444 40000 | ||
COPY entry-dev.sh /usr/local/bin | ||
COPY cassandra/schema.sql /usr/local/bin | ||
RUN chmod 755 /usr/local/bin/entry-dev.sh | ||
ENTRYPOINT ["/usr/local/bin/entry-dev.sh"] | ||
#ENTRYPOINT ["/janus", "start"] |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name" : "my-endpoint", | ||
"active" : true, | ||
"proxy" : { | ||
"listen_path" : "/example/*", | ||
"upstreams" : { | ||
"balancing": "roundrobin", | ||
"targets": [ | ||
{"target": "http://www.mocky.io/v2/595625d22900008702cd71e8"} | ||
] | ||
}, | ||
"methods" : ["GET"] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3' | ||
services: | ||
|
||
janus: | ||
image: motivlabs/janus:debug | ||
ports: | ||
- "8080:8080" | ||
- "8081:8081" | ||
- "40000:40000" | ||
environment: | ||
- debug=1 | ||
depends_on: | ||
- service1 | ||
- janus-database | ||
volumes: | ||
- ./janus.toml:/etc/janus/janus.toml | ||
- ~/dev/motiv/janus:/janus | ||
|
||
janus-database: | ||
image: cassandra:latest | ||
container_name: db | ||
ports: | ||
- "9042:9042" | ||
environment: | ||
- MAX_HEAP_SIZE=1G | ||
- HEAP_NEWSIZE=250M | ||
- JAVA_OPTS="-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.num_tokens=1 -Dcassandra.initial_token=1" | ||
|
||
service1: | ||
image: rodolpheche/wiremock | ||
ports: | ||
- '9089:8080' | ||
volumes: | ||
- ../front-proxy/stubs:/home/wiremock/mappings |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
################################################################ | ||
# Global configuration | ||
################################################################ | ||
port = 8080 | ||
|
||
[log] | ||
level = "debug" | ||
|
||
################################################################ | ||
# API configuration backend | ||
################################################################ | ||
[web] | ||
port = 8081 | ||
|
||
[web.credentials] | ||
secret = "secret" | ||
|
||
[web.credentials.basic] | ||
users = {admin = "admin"} | ||
|
||
[database] | ||
dsn = "cassandra:///db/system/janus/300" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
[ | ||
{ | ||
"name" : "example", | ||
"active" : true, | ||
"proxy" : { | ||
"preserve_host" : false, | ||
"listen_path" : "/example/*", | ||
"upstreams" : { | ||
"balancing": "roundrobin", | ||
"targets": [ | ||
{"target": "http://service1:8080/"} | ||
] | ||
}, | ||
"strip_path" : false, | ||
"append_path" : false, | ||
"methods" : ["GET"] | ||
{ | ||
"name" : "my-endpoint", | ||
"active" : true, | ||
"proxy" : { | ||
"listen_path" : "/example/*", | ||
"upstreams" : { | ||
"balancing": "roundrobin", | ||
"targets": [ | ||
{"target": "http://www.mocky.io/v2/595625d22900008702cd71e8"} | ||
] | ||
}, | ||
"health_check": { | ||
"url": "http://service1:8080/status", | ||
"timeout": 3 | ||
} | ||
"methods" : ["GET"] | ||
} | ||
] | ||
} |
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
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
Oops, something went wrong.