diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0d6c4556d..103d66e8b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,7 +12,7 @@ jobs: - id: repository uses: ASzc/change-string-case-action@v1 with: - string: "${{ github.repository }}/${{ github.event.repository.name }}" + string: "${{ github.repository }}" - uses: actions/checkout@v2 - name: Preparation id: prep @@ -20,9 +20,12 @@ jobs: REGISTRY="ghcr.io" IMAGE="${REGISTRY}/${{ steps.repository.outputs.lowercase }}" TAGS="${IMAGE}:${{ github.sha }}" - if [[ $GITHUB_REF == ref/head/master ]]; then + if [[ $GITHUB_REF == refs/heads/master ]]; then TAGS="${TAGS},${IMAGE}:latest" fi + if [[ $GITHUB_REF == refs/heads/develop ]]; then + TAGS="${TAGS},${IMAGE}:develop" + fi echo ::set-output name=tags::${TAGS} - name: Login in to registry uses: docker/login-action@v1 diff --git a/README.md b/README.md index cf2e9f2d4..d78719869 100644 --- a/README.md +++ b/README.md @@ -218,22 +218,36 @@ Once the app finishes loading, an interactive tutorial takes you by the hand and # Docker Deployments +Docker container images can be found at https://github.com/users/Superalgos/packages/container/package/superalgos + If you wish to run Superalgos over docker platform, follow these steps. ## 1. Install Docker Follow the link to [install docker](https://docs.docker.com/engine/install/). -## 2. Login and Run +## 2. Run + +You will need to create local storage directories beforehand, by example with `mkdir Data-Storage Log-Files My-Workspaces` ``` -docker login ghcr.io --username your-github-username --password-stdin -``` -``` -docker run -p 18041:18041 -p 34248 superalgos/superalgos +docker run \ + -d \ + --rm \ + --name superalgos \ + -p 18041:18041 \ + -p 34248:34248 \ + -v $(pwd)/Data-Storage:/app/Data-Storage \ + -v $(pwd)/Log-Files:/app/Log-Files \ + -v $(pwd)/My-Workspaces:/app/My-Workspaces \ + ghcr.io/superalgos/superalgos:latest ``` -Now you can access to the Superalgos UI. +Now you can access to the Superalgos UI at http://127.0.0.1:34248 + +To see console logs you can use `docker logs superalgos -f` + +When you're done just exec `docker kill superalgos` **Note:** This has not been extensively tested yet. If you run into troubles, please contact us at the [Superalgos Support Group](https://t.me/superalgossupport).