-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMS-5025: Add Requester IP to Get and List Messages (#157)
* SMS-5025: Add requester ip to List and Get MDR * Dockerisation setup * Address review comments * Bump version
- Loading branch information
1 parent
6dd1280
commit 6bed2dc
Showing
12 changed files
with
175 additions
and
25 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
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,12 @@ | ||
FROM golang:1.17-alpine | ||
|
||
WORKDIR /usr/src/app | ||
RUN apk update && apk add git vim bash gcc musl-dev | ||
|
||
ENV PATH $PATH:/usr/local/go/bin | ||
|
||
# Copy setup script | ||
COPY setup_sdk.sh /usr/src/app/ | ||
RUN chmod a+x /usr/src/app/setup_sdk.sh | ||
|
||
ENTRYPOINT [ "/usr/src/app/setup_sdk.sh" ] |
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,7 @@ | ||
.PHONY: build test | ||
|
||
build: | ||
docker-compose up --build --remove-orphans | ||
|
||
test: | ||
docker exec -it $$CONTAINER /bin/bash -c "go test -v -race -cover" |
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,18 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
goSDK: | ||
build: | ||
context: . | ||
image: gosdk | ||
container_name: goSDK | ||
environment: | ||
- PLIVO_AUTH_ID=${PLIVO_AUTH_ID} | ||
- PLIVO_AUTH_TOKEN=${PLIVO_AUTH_TOKEN} | ||
- PLIVO_API_DEV_HOST=${PLIVO_API_DEV_HOST} | ||
- PLIVO_API_PROD_HOST=${PLIVO_API_PROD_HOST} | ||
volumes: | ||
- .:/usr/src/app | ||
stdin_open: true | ||
tty: true |
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
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.