Skip to content

Commit

Permalink
resolve file location error
Browse files Browse the repository at this point in the history
  • Loading branch information
Akopti8 committed May 15, 2024
1 parent f440af6 commit dd72821
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN apk add --no-cache \
libc-dev \
git

COPY ./.env.json /app/.env.json

ENV GOROOT=/usr/local/go
ENV GOPATH=/go
ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Expand Down
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ func blobstoreInit() *blobstore.BlobHandler {
log.Fatalf("could not convert AUTH_LEVEL env variable to integer: %v", err)
}
}
bh, err := blobstore.NewBlobHandler(".env.json", authLvl)
envJson := "/app/.env.json"

bh, err := blobstore.NewBlobHandler(envJson, authLvl)
if err != nil {
errMsg := fmt.Errorf("failed to initialize a blobhandler %s", err.Error())
log.Fatal(errMsg)
Expand Down
26 changes: 13 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ services:
- ./.env
networks:
- app_network
# newman:
# image: postman/newman:alpine
# container_name: mcat-ras-newman
# entrypoint: [""]
# command: >
# sh -c "sleep 30s &&
# newman run /app/testing/postman_collection.json --env-var "url=api:5600""
# volumes:
# - ./testing:/app/testing
# depends_on:
# - "api"
# networks:
# - app_network
newman:
image: postman/newman:alpine
container_name: mcat-ras-newman
entrypoint: [ "" ]
command: >
sh -c "sleep 30s &&
newman run /app/testing/postman_collection.json --env-var "url=api:5600""
volumes:
- ./testing:/app/testing
depends_on:
- "api"
networks:
- app_network
6 changes: 6 additions & 0 deletions handlers/forcingdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ import (
"github.com/labstack/echo/v4"
)

type SimpleResponse struct {
Status int
Message string
StackTrace string
}

// ForcingData godoc
// @Summary Extract forcing data from flow files
// @Description forcing data from a RAS model given an s3 key
Expand Down

0 comments on commit dd72821

Please sign in to comment.