From 362a561bf624110d079261871c6b5552c38430f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Serrano?= Date: Thu, 29 Apr 2021 11:53:55 +0200 Subject: [PATCH 1/5] Fix docker tagging --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0d6c4556d..2aaef212d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -20,7 +20,7 @@ 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 echo ::set-output name=tags::${TAGS} From 618c1b323e7fe3cb4fdf8e93b45898698dd4edf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Serrano?= Date: Thu, 29 Apr 2021 12:26:36 +0200 Subject: [PATCH 2/5] Add tagging for develop branch --- .github/workflows/docker.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2aaef212d..9f91cbba0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -23,6 +23,9 @@ jobs: 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 From 866932658f84783d20f7c90465211294906854c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Serrano?= Date: Thu, 29 Apr 2021 13:06:03 +0200 Subject: [PATCH 3/5] Remove duplicated namespace --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9f91cbba0..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 From 3e1829cb3e25ec3d821f25f893161984394eb491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Serrano?= Date: Thu, 29 Apr 2021 13:06:54 +0200 Subject: [PATCH 4/5] Update docker run instructions --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cf2e9f2d4..0e57cc765 100644 --- a/README.md +++ b/README.md @@ -224,16 +224,21 @@ If you wish to run Superalgos over docker platform, follow these steps. Follow the link to [install docker](https://docs.docker.com/engine/install/). -## 2. Login and Run +## 2. Run ``` -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 \ + 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 + +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). From 0792bed42c1f6fd2ff2b12b55b865893a9be78fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gonz=C3=A1lez=20Serrano?= Date: Fri, 30 Apr 2021 08:06:49 +0200 Subject: [PATCH 5/5] Improve docker info --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0e57cc765..d78719869 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,8 @@ 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 @@ -226,6 +228,8 @@ Follow the link to [install docker](https://docs.docker.com/engine/install/). ## 2. Run +You will need to create local storage directories beforehand, by example with `mkdir Data-Storage Log-Files My-Workspaces` + ``` docker run \ -d \ @@ -233,11 +237,16 @@ docker run \ --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 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).