diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..a406ea0 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,36 @@ +name: ci + +on: + push: + branches: + - 'master' + tags: + - 'v*.*.*' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Determine Docker tag + id: determine_tag + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v') + run: echo "tag=$(echo ${{ github.ref }} | sed -e 's|refs/tags/v||')" >> $GITHUB_OUTPUT + - + name: Build and push + uses: docker/build-push-action@v4 + with: + push: true + tags: crocsmuni/dissect:${{ steps.determine_tag.outputs.tag || 'latest' }} \ No newline at end of file diff --git a/README.md b/README.md index 853e543..1145f4b 100644 --- a/README.md +++ b/README.md @@ -23,24 +23,18 @@ We recommend to use DiSSECT in Docker, as it avoids potential issues on the boun ## Docker container -Clone this repository and build docker image. +To run the analysis notebook in a container, use the following command and access the provided link in your web browser. ```shell -git clone --recurse-submodules https://github.com/crocs-muni/DiSSECT -cd DiSSECT -docker build -t dissect . +docker run -it -p 8888:8888 crocsmuni/dissect ``` -When the image is successfully built, you can start using DiSSECT. - -To run Jupyter Notebook, use the following command and access the provided link in your web browser. +To use advanced components of DiSSECT, access the container directly: ```shell -docker run -it -p 8888:8888 dissect +docker run -it crocsmuni/dissect bash ``` -To use advanced components of DiSSECT, access the container directly. - ## Local setup ### Full (requires `sage`)