-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
16 add endpoints for passing appointment data to and from campus (#19)
* refactor to match new BB template architecture * appooitments units and people endpoints working * slots endpoint working * add question property to question object being returned * slots, questions and qands endpoints created * create and delete appts * new .secrets.baseline * adding yaml files for documentation * update provider id for engineering * updated yaml files * fix issue with missing or invalid person_id for units api * updated docs to include units api * image_url added to units and people, next_avail added to units * updateappointment endpoint and documentation * update conventions and changelong * add build.yaml file * updated secrets baseline
- Loading branch information
Showing
109 changed files
with
8,289 additions
and
3,321 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20' | ||
check-latest: true | ||
|
||
- name: Build | ||
run: make |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
FROM golang:1.20.1-buster as builder | ||
FROM golang:1.20-alpine as builder | ||
|
||
ENV CGO_ENABLED=0 | ||
|
||
RUN mkdir /gateway-app | ||
WORKDIR /gateway-app | ||
RUN apk add --no-cache --update make git | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
# Copy the source from the current directory to the Working Directory inside the container | ||
COPY . . | ||
RUN make | ||
|
||
FROM alpine:3.16.2 | ||
FROM alpine:3.17.2 | ||
|
||
#we need timezone database | ||
RUN apk --no-cache add tzdata | ||
RUN apk add --no-cache --update tzdata | ||
|
||
COPY --from=builder /gateway-app/bin/apigateway / | ||
COPY --from=builder /gateway-app/docs/swagger.yaml /docs/swagger.yaml | ||
COPY --from=builder /app/bin/application / | ||
COPY --from=builder /app/driver/web/docs/gen/def.yaml /driver/web/docs/gen/def.yaml | ||
|
||
COPY --from=builder /gateway-app/assets/assets.json /assets/assets.json | ||
COPY --from=builder /app/driver/web/client_permission_policy.csv /driver/web/client_permission_policy.csv | ||
COPY --from=builder /app/driver/web/client_scope_policy.csv /driver/web/client_scope_policy.csv | ||
COPY --from=builder /app/driver/web/admin_permission_policy.csv /driver/web/admin_permission_policy.csv | ||
COPY --from=builder /app/driver/web/bbs_permission_policy.csv /driver/web/bbs_permission_policy.csv | ||
COPY --from=builder /app/driver/web/tps_permission_policy.csv /driver/web/tps_permission_policy.csv | ||
COPY --from=builder /app/driver/web/system_permission_policy.csv /driver/web/system_permission_policy.csv | ||
|
||
COPY --from=builder /gateway-app/driver/web/authorization_model.conf /driver/web/authorization_model.conf | ||
COPY --from=builder /gateway-app/driver/web/authorization_policy.csv /driver/web/authorization_policy.csv | ||
COPY --from=builder /app/vendor/github.com/rokwire/core-auth-library-go/v3/authorization/authorization_model_scope.conf /app/vendor/github.com/rokwire/core-auth-library-go/v3/authorization/authorization_model_scope.conf | ||
COPY --from=builder /app/vendor/github.com/rokwire/core-auth-library-go/v3/authorization/authorization_model_string.conf /app/vendor/github.com/rokwire/core-auth-library-go/v3/authorization/authorization_model_string.conf | ||
|
||
COPY --from=builder /etc/passwd /etc/passwd | ||
|
||
#we need timezone database | ||
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo | ||
|
||
ENTRYPOINT ["/apigateway"] | ||
ENTRYPOINT ["/application"] |
Oops, something went wrong.