File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed
Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1- FROM ghcr.io/hasura/ndc-rest:v0.1.1
1+ FROM ghcr.io/hasura/ndc-rest:v0.1.2
22
33COPY ./config /config
Original file line number Diff line number Diff line change 11STRIPE_VERSION ?= v956
2- NDC_REST_VERSION ?= v0.1.1
2+ NDC_REST_VERSION ?= v0.1.2
33UID ?= $(shell id -u)
44GID ?= $(shell id -g)
55
@@ -9,4 +9,8 @@ build-schema:
99 -f https://raw.githubusercontent.com/stripe/openapi/$(STRIPE_VERSION ) /openapi/spec3.json \
1010 --trim-prefix /v1 --spec openapi3 \
1111 --env-prefix STRIPE \
12- -o /home/config/schema.json
12+ -o /home/config/schema.json
13+
14+ .PHONY : update-deps
15+ update-deps :
16+ VERSION=$(NDC_REST_VERSION ) scripts/update-deps.sh
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ docker-compose up -d --build
2828
2929The connector serves the HTTP service at ` http://localhost:8080 ` and connect to the internal ` stripe-mock ` service.
3030
31+ ### Update dependencies
32+
33+ ``` sh
34+ NDC_REST_VERSION=\< version\> make update-deps
35+ ```
36+
3137### Update schema
3238
3339Update ` VERSION ` in [ Makefile] ( ./Makefile ) and run:
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ -z " $VERSION " ]; then
4+ echo " VERSION env variable is required"
5+ exit 1
6+ fi
7+
8+ sed -i -r " s/v[0-9.]+$/$VERSION /" Dockerfile
9+ sed -i -r " s/NDC_REST_VERSION\s+\?\=\s+[a-z0-9.]+$/NDC_REST_VERSION ?= $VERSION /" Makefile
You can’t perform that action at this time.
0 commit comments