Linear Regression System with CI/CD
The Code
Cloning the code:
git clone https://github.com/budi-kurniawan/linear-regression
Creating A Model:
python simple_linear_regrsssion.py
The model (model.sav file) will be saved to the current directory.
Run the unittest
python -m pytest
Docker
Make sure an app directory has been created
$ cd $PROJECT_DIR
$ docker build --tag lin2023 .
$ docker run -i -p 5000:5000 -d lin2023
To pull the Docker image from Docker Hub
$ docker pull budi2020/lin2023[:tagName]
$ docker pull budi2020/lin2023:v0.0.1
Metadata
Release files for lin2023 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lin2023-0.0.1.tar.gz | 1.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lin2023-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.9 kB
Release files / lin2023-0.0.1.tar.gz
| Download URL | lin2023-0.0.1.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63cf1f1913b760254ccfc39c9705643ae08b1c69317da03195946ea5cce9e767
|
|
BLAKE2b-256 checksum How to use checksums |
d23e278d54910cb17cb4a056da275013502edff6e560409baad1c59f278416be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / lin2023-0.0.1-py3-none-any.whl
| Download URL | lin2023-0.0.1-py3-none-any.whl |
|---|---|
| Size | 1.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7dafb89646d05dd46abed6dfa618ee6d6e2470e8742b7b655420b0fcfefe15a
|
|
BLAKE2b-256 checksum How to use checksums |
ecb8e9b6bafedd0c87a9b5c47a9781e565a10870c17ebf518950c51259db0ddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|