Skip to content

Commit

Permalink
Add docker compose file and files directory to upload files
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas committed Nov 5, 2018
1 parent 14a3637 commit 5faa6de
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.3'
services:
blockchain:
tty: true
volumes:
- ../files:/src/files/
ports:
- "5000:5000"
build:
context: ../
dockerfile: ./docker/Dockerfile

Binary file added files/IOS9001.pdf
Binary file not shown.
109 changes: 109 additions & 0 deletions files/blockchain.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"info": {
"_postman_id": "d612f01a-ff5c-412c-b631-35fc6b5a9793",
"name": "blockchain",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get chain",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "ein",
"value": "621721435",
"description": "",
"type": "text"
},
{
"key": "pin",
"value": "001",
"description": "",
"type": "text"
}
]
},
"url": {
"raw": "localhost:5000/chain",
"host": [
"localhost"
],
"port": "5000",
"path": [
"chain"
]
}
},
"response": []
},
{
"name": "New transaction",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"author\": \"Tom\",\n\t\"content\": \"Pipirolo\"\n}"
},
"url": {
"raw": "localhost:5000/new_trans",
"host": [
"localhost"
],
"port": "5000",
"path": [
"new_trans"
]
}
},
"response": []
},
{
"name": "Mine",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "localhost:5000/mine",
"host": [
"localhost"
],
"port": "5000",
"path": [
"mine"
]
}
},
"response": []
},
{
"name": "Pending transactions",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "localhost:5000/pending_tx",
"host": [
"localhost"
],
"port": "5000",
"path": [
"pending_tx"
]
}
},
"response": []
}
]
}

0 comments on commit 5faa6de

Please sign in to comment.