diff --git a/.circleci/config.yml b/.circleci/config.yml index c342611..2fa63d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,9 +27,12 @@ jobs: - run: name: "Build Docker" command: docker build -t cf_api:0.0.1 . - - run: - name: "Run Docker" - command: docker run -dp 1234:1234 cf_api:0.0.1 + #- run: + # name: "Run Docker" + # command: docker run -dp 1234:1234 cf_api:0.0.1 + - run: + name: "Send request to API" + command: bash send_request.sh # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows diff --git a/send_request.sh b/send_request.sh index e5d424a..bd191fc 100644 --- a/send_request.sh +++ b/send_request.sh @@ -1,7 +1,8 @@ #!/bin/bash +docker run -dp 1234:1234 cf_api:0.0.1 # send request curl -X 'POST' \ - 'http://0.0.0.0:1234/api/collaborativefilter' \ + 'http://localhost:1234/api/collaborativefilter' \ -H 'accept: application/json' \ -H 'token: serdarakyol55@outlook.com' \ -H 'Content-Type: application/json' \