Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moar examples & trophies #4

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: ShellCheck

on:
push:
pull_request:

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run shellcheck
uses: ludeeus/[email protected]
with:
check_together: 'yes'
severity: error
10 changes: 10 additions & 0 deletions examples/2600hz_kazoo/oas3.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
monkey.openapi3(
name = "kazoo",
file = "https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/crossbar/priv/oas3/openapi.yml",
)

monkey.shell(
name = "id",
provides = ["kazoo"],
reset = "true",
)
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ error() {

info "$MONKEY" --version
$MONKEY --version
rebar3 clean --all
# rebar3 clean --all
rebar3 as prod release

check() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ error() {

info "$MONKEY" --version
$MONKEY --version
rebar3 clean --all
# rebar3 clean --all
rebar3 as prod release

check() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ error() {

info "$MONKEY" --version
$MONKEY --version
rebar3 clean --all
# rebar3 clean --all
rebar3 as prod release

check() {
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_erlang_cowboy_simpleREST/bugfree/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ error() {

info "$MONKEY" --version
$MONKEY --version
rebar3 clean --all
# rebar3 clean --all
rebar3 as prod release

check() {
Expand Down
2 changes: 2 additions & 0 deletions examples/github.com/hashicorp/vault/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vault/
/openapi.json
16 changes: 16 additions & 0 deletions examples/github.com/hashicorp/vault/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# FROM gcr.io/distroless/static:nonroot@sha256:80c956fb0836a17a565c43a4026c9c80b2013c83bea09f74fa4da195a59b7a99 AS distroless
# FROM gcr.io/distroless/base:nonroot@sha256:02f667185ccf78dbaaf79376b6904aea6d832638e1314387c2c2932f217ac5cb AS distroless
FROM docker.io/library/alpine@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300 AS alpine

COPY --chown=nonroot /vault /vault
# RUN ls -lha . /vault /vault/vault wefwefw
# ARG HOST
# ARG TOKEN
EXPOSE 8200/tcp
# ENTRYPOINT ["/vault/bin/vault", "server", "-dev", "-dev-root-token-id=root", "-address=http://127.0.0.1:8200", "-exit-on-core-shutdown"]
# ENTRYPOINT ["/vault/bin/vault", "server", "-dev", "-dev-root-token-id=root", "-address=http://0.0.0.0:8200", "-exit-on-core-shutdown"]
RUN echo '{ "listener": { "tcp":{ "address": "0.0.0.0:8200", "tls_disable": 1 } } }' >/vault_config.json
ENV VAULT_API_ADDR=http://0.0.0.0:8200,

# ENTRYPOINT ["/vault/bin/vault", "server", "-dev", "-dev-root-token-id=root", "-config=/vault_config.json", "-exit-on-core-shutdown"]
ENTRYPOINT ["/vault/bin/vault", "server", "-dev", "-dev-root-token-id=root","-config=/vault_config.json", "-address=http://127.0.0.1:8200", "-exit-on-core-shutdown"]
2 changes: 2 additions & 0 deletions examples/github.com/hashicorp/vault/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!/vault/
Loading
Loading