Skip to content

Commit

Permalink
Build Docker image in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed Aug 3, 2023
1 parent 773dcb6 commit d478290
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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' }}
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit d478290

Please sign in to comment.