From 7f119d59b9c74b1a5e6b079bc6aab1032435adf0 Mon Sep 17 00:00:00 2001 From: ak Date: Wed, 12 Oct 2022 19:04:27 +0200 Subject: [PATCH 1/5] Test api --- send_request.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send_request.sh b/send_request.sh index e5d424a..4386dba 100644 --- a/send_request.sh +++ b/send_request.sh @@ -1,7 +1,7 @@ #!/bin/bash # 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' \ From d3147a8cc2b1c68877a10faf799eb7a3f170264b Mon Sep 17 00:00:00 2001 From: Serdar AKYOL Date: Wed, 12 Oct 2022 19:09:40 +0200 Subject: [PATCH 2/5] wip --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c342611..26dda05 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,6 +30,9 @@ jobs: - run: name: "Run Docker" command: docker run -dp 1234:1234 cf_api:0.0.1 + - run: + name: "Send request" + command: bash send_request.sh # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 1ce235aec9c99e077006ad989dfe823267a77830 Mon Sep 17 00:00:00 2001 From: Serdar AKYOL Date: Wed, 12 Oct 2022 19:12:39 +0200 Subject: [PATCH 3/5] Updated config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 26dda05..d24a29a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,8 +31,8 @@ jobs: name: "Run Docker" command: docker run -dp 1234:1234 cf_api:0.0.1 - run: - name: "Send request" - command: bash send_request.sh + name: "Prepare API" + command: bash send_request.sh # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows From 2684c36f28e1bb9f05526f5bb3fc4ab30ab4c8e8 Mon Sep 17 00:00:00 2001 From: Serdar AKYOL Date: Wed, 12 Oct 2022 19:13:39 +0200 Subject: [PATCH 4/5] wip --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d24a29a..001e840 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,7 +31,7 @@ jobs: name: "Run Docker" command: docker run -dp 1234:1234 cf_api:0.0.1 - run: - name: "Prepare API" + name: "Send request to API" command: bash send_request.sh # Invoke jobs via workflows From 1e0679451342ecdd641d7d8ffdf2fd6a36906506 Mon Sep 17 00:00:00 2001 From: Serdar AKYOL Date: Wed, 12 Oct 2022 19:50:50 +0200 Subject: [PATCH 5/5] wip --- .circleci/config.yml | 6 +++--- send_request.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 001e840..2fa63d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,9 +27,9 @@ 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 diff --git a/send_request.sh b/send_request.sh index 4386dba..bd191fc 100644 --- a/send_request.sh +++ b/send_request.sh @@ -1,4 +1,5 @@ #!/bin/bash +docker run -dp 1234:1234 cf_api:0.0.1 # send request curl -X 'POST' \ 'http://localhost:1234/api/collaborativefilter' \