SortApp is simple example that sort a file in input. The application is written in Python and the user can use Docker and Docker-Compose to generate the relative image.
Go to file
giancarlo 90665fbaa6 Merge branch 'master' of gitea@code-repo.d4science.org:gCubeSystem/sortapp.git 2020-10-16 17:38:03 +02:00
.settings Added SortApp project 2020-09-22 11:51:39 +02:00
dist Updated Distribution 2020-09-22 15:38:52 +02:00
src Updated Distribution 2020-09-22 15:38:52 +02:00
.gitignore Updated README.md 2020-10-16 17:37:44 +02:00
.project Added SortApp project 2020-09-22 11:51:39 +02:00
.pydevproject Added SortApp project 2020-09-22 11:51:39 +02:00
Dockerfile Added SortApp project 2020-09-22 11:51:39 +02:00
FUNDING.md Updated README.md 2020-10-16 17:37:44 +02:00
LICENSE.md Updated README.md 2020-10-16 17:37:44 +02:00
MANIFEST.in Added SortApp project 2020-09-22 11:51:39 +02:00
README.md Merge branch 'master' of gitea@code-repo.d4science.org:gCubeSystem/sortapp.git 2020-10-16 17:38:03 +02:00
requirements.txt Added SortApp project 2020-09-22 11:51:39 +02:00
runexample.txt Added SortApp project 2020-09-22 11:51:39 +02:00
setup.py Aggiornare 'setup.py' 2020-09-22 12:06:15 +02:00

README.md

SortApp

SortApp is a simple example that allows you to sort a file in input. Starting from this example, you can first create an installable package via pip3 and then a docker image in which it is installed the created package. 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> 

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>

To be able to create an image from this application you need to have Docker and Docker-Compose installed on your machine and the relative python packages, see: Docker, Docker-Compose and Docker Package for Python.

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

Re-tagging an existing local image:

docker tag sortapp <hub-user>/<repo-name>[:<tag>]

Login in DockerHub(use your Docker ID):

docker login

Now you can push this repository to the registry designated by its name or tag:

docker push <hub-user>/<repo-name>:<tag>

Then logout for security:

docker logout

Authors

License

This project is licensed under the EUPL V.1.1 License - see the LICENSE.md file for details.

About the gCube Framework

This software is part of the gCubeFramework: an open-source software toolkit used for building and operating Hybrid Data Infrastructures enabling the dynamic deployment of Virtual Research Environments by favouring the realisation of reuse oriented policies.

The projects leading to this software have received funding from a series of European Union programmes see FUNDING.md