Skip to content

Commit

Permalink
Make it available in Docker (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Aug 9, 2019
1 parent 60b0c3a commit 664215f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
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

0 comments on commit 664215f

Please sign in to comment.