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

Make it available in Docker #518

Merged
merged 1 commit into from
Aug 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:10-slim

LABEL version="1.23.1"
LABEL repository="http://github.com/kamilkisiela/graphql-inspector"
LABEL homepage="http://github.com/kamilkisiela/graphql-inspector"
LABEL maintainer="Kamil Kisiela <kamil.kisiela@gmail.com>"

ENV LOG_LEVEL "debug"

RUN yarn global add @graphql-inspector/cli@1.23.1

COPY entrypoint-cli.sh /entrypoint-cli.sh

ENTRYPOINT ["/entrypoint-cli.sh"]

5 changes: 5 additions & 0 deletions entrypoint-cli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh -l

set -eu

sh -c "graphql-inspector $*"
5 changes: 5 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ updateString(join(rootDir, 'Dockerfile'), docker =>
docker.replace(new RegExp(current, 'g'), version),
);

// Set version in Dockerfile (both LABEL and RUN)
updateString(join(rootDir, 'Dockerfile-cli'), docker =>
docker.replace(new RegExp(current, 'g'), version),
);

// Bump version in changelog
updateString(join(rootDir, 'CHANGELOG.md'), changelog =>
changelog.replace('### vNEXT', `### vNEXT` + '\n\n' + `### v${version}`),
Expand Down