Aggiornato README.md

This commit is contained in:
Giancarlo Panichi 2020-09-22 11:58:53 +02:00
parent 8c41b376bd
commit c9b5d20abe
1 changed files with 15 additions and 4 deletions

View File

@ -5,26 +5,36 @@ Starting from this example, you can first create an installable package via pip3
The package declares the sortapp command as entrypoint.
So once the package is installed you can use this command at command line to run the example:
- sortapp <token> <file-item-id> <temp-dir-item-id>
```
sortapp <token> <file-item-id> <temp-dir-item-id>
```
The image created in this way can be executed in a container with the following command:
- docker run -i -t --rm --name sortapp-cont sortapp sortapp <token> <file-item-id> <temp-dir-item-id>
```
docker run -i -t --rm --name sortapp-cont sortapp sortapp <token> <file-item-id> <temp-dir-item-id>
```
## Useful Commands
### Create Distribution Package
```
python3 setup.py sdist --formats=gztar
```
### Create Docker Image
```
docker build -t sortapp .
```
### Save Docker Image in file
```
docker save sortapp | gzip > sortapp.tar.gz
```
### Publish Docker Image on DockerHub
Name your local images using:
```
By re-tagging an existing local image:
- docker tag sortapp <hub-user>/<repo-name>[:<tag>]
@ -40,3 +50,4 @@ Now you can push this repository to the registry designated by its name or tag:
Then logout for security:
- docker logout
```