Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion send_request.sh
Original file line number Diff line number Diff line change
@@ -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' \
Expand Down