From 5bd00033e2453e38c665fb88229c0ac41bb59438 Mon Sep 17 00:00:00 2001 From: iLTeoooD Date: Sat, 24 Oct 2020 17:47:11 +0200 Subject: [PATCH 1/2] web gui transmission example --- README.md | 14 ++++++++++++++ docker-compose.yml | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 373d5ad..07a9483 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ The container is configurable using 4 environment variables: ## Execution You can run this image using [Docker compose](https://docs.docker.com/compose/) and the [sample file](./docker-compose.yml) provided. +** Remember: if you want to use the web gui of a container, you must open its ports on `docker-surfshark` as described below. ** ``` version: "2" @@ -56,6 +57,8 @@ services: - NET_ADMIN devices: - /dev/net/tun + ports: + - 9091:9091 #we open here the port for transmission, as this container will be the access point for the others restart: unless-stopped dns: - 1.1.1.1 @@ -67,6 +70,17 @@ services: - surfshark network_mode: service:surfshark restart: always + transmission: + image: linuxserver/transmission + container_name: transmission + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Rome + #ports: + #- 9091:9091 needed to access transmission's GUI + network_mode: service:surfshark + restart: unless-stopped ``` Or you can use the standard `docker run` command. diff --git a/docker-compose.yml b/docker-compose.yml index 744c44a..54d8d9e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,8 @@ services: - NET_ADMIN devices: - /dev/net/tun + ports: + - 9091:9091 #we open here the port for transmission, as this container will be the access point for the others restart: unless-stopped dns: - 1.1.1.1 @@ -24,4 +26,15 @@ services: depends_on: - surfshark network_mode: service:surfshark - restart: always \ No newline at end of file + restart: always + transmission: + image: linuxserver/transmission + container_name: transmission + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Rome + #ports: + #- 9091:9091 needed to access transmission's GUI + network_mode: service:surfshark + restart: unless-stopped \ No newline at end of file From 950881c34b289e5ec6e457c936c98725ca365b0b Mon Sep 17 00:00:00 2001 From: iLTeoooD Date: Sat, 24 Oct 2020 18:09:56 +0200 Subject: [PATCH 2/2] Build only --- .github/workflows/build_only.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_only.yml b/.github/workflows/build_only.yml index 805b138..b197956 100644 --- a/.github/workflows/build_only.yml +++ b/.github/workflows/build_only.yml @@ -18,11 +18,13 @@ jobs: platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6 imageName: ilteoood/docker-surfshark - name: Scan image - uses: anchore/scan-action@master + uses: anchore/scan-action@v2 with: - image-reference: "ilteoood/docker-surfshark:latest" - dockerfile-path: "./Dockerfile" + image: "ilteoood/docker-surfshark:latest" fail-build: true - include-app-packages: true + acs-report-enable: true + severity-cutoff: critical - name: Anchore inline scan JSON results - run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done \ No newline at end of file + run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done + - name: Inspect action SARIF report + run: cat ${{ steps.scan.outputs.sarif }} \ No newline at end of file