Display Docker version and info
docker --version
docker info
Execute Docker image
docker run hello-world
| { | |
| "name": "npm-test", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "gulp": "./node_modules/.bin/gulp --help", | |
| "test": "./node_modules/.bin/lite-server --help" | |
| }, | |
| "keywords": [], |
| import * as tf from "@tensorflow/tfjs" | |
| import "@tensorflow/tfjs-node" | |
| import iris from "./iris.json" | |
| import irisTesting from "./iris-testing.json" | |
| // convert/setup our data | |
| const trainingData = tf.tensor2d(iris.map(item => [ | |
| item.sepal_length, item.sepal_width, item.petal_length, item.petal_width, | |
| ])) | |
| const outputData = tf.tensor2d(iris.map(item => [ |
Display Docker version and info
docker --version
docker info
Execute Docker image
docker run hello-world
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging |
| { | |
| "arrowParens": "avoid", | |
| "bracketSpacing": true, | |
| "printWidth": 100, | |
| "semi": true, | |
| "singleQuote": true, | |
| "tabWidth": 2, | |
| "trailingComma": "all", | |
| "useTabs": false | |
| } |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true |
| { | |
| "editor.formatOnPaste": true, | |
| "editor.formatOnSave": true, | |
| "[javascript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[solidity]": { | |
| "editor.defaultFormatter": "JuanBlanco.solidity" | |
| } | |
| } |
| require('@nomicfoundation/hardhat-toolbox'); | |
| require('dotenv').config(); | |
| /** @type import('hardhat/config').HardhatUserConfig */ | |
| module.exports = { | |
| solidity: { | |
| version: '0.8.9', | |
| settings: { | |
| optimizer: { | |
| enabled: true, |