From 25997ae448b4897faa668f0bfa987e557549742b Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 26 Mar 2026 15:10:21 +0300 Subject: [PATCH] Remove not used snap store and docker --- .dockerignore | 1 - .github/workflows/docker-ci.yml | 51 --------------------------------- Dockerfile | 12 -------- README.md | 23 --------------- snapcraft.yaml | 33 --------------------- 5 files changed, 120 deletions(-) delete mode 100644 .dockerignore delete mode 100644 .github/workflows/docker-ci.yml delete mode 100644 Dockerfile delete mode 100644 snapcraft.yaml diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index e660fd9..0000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -bin/ diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml deleted file mode 100644 index 8c32a8d..0000000 --- a/.github/workflows/docker-ci.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: docker-ci - -on: - push: - tags: - - 'v*.*.*' - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - # list of Docker images to use as base name for tags - images: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} - # generate Docker tags based on the following events/attributes - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7 - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a15ce82..0000000 --- a/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM --platform=$BUILDPLATFORM golang:1 AS build - -WORKDIR /go/src/github.com/Alexey71/opera-proxy -COPY . . -ARG TARGETOS TARGETARCH -RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -tags netgo -ldflags '-s -w -extldflags "-static"' - -FROM scratch -COPY --from=build /go/src/github.com/Alexey71/opera-proxy/opera-proxy / -USER 9999:9999 -EXPOSE 18080/tcp -ENTRYPOINT ["/opera-proxy", "-bind-address", "0.0.0.0:18080"] diff --git a/README.md b/README.md index ac6733a..91c3850 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ opera-proxy =========== -[![opera-proxy](https://snapcraft.io//opera-proxy/badge.svg)](https://snapcraft.io/opera-proxy) - Standalone Opera VPN client. Just run it and it'll start a plain HTTP proxy server forwarding traffic through "Opera VPN" proxies of your choice. @@ -29,27 +27,6 @@ Alternatively, you may install opera-proxy from source. Run the following within make install ``` -#### Docker - -A docker image is available as well. Here is an example of running opera-proxy as a background service: - -```sh -docker run -d \ - --security-opt no-new-privileges \ - -p 127.0.0.1:18080:18080 \ - --restart unless-stopped \ - --name opera-proxy \ - yarmak/opera-proxy -``` - -#### Snap Store - -[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/opera-proxy) - -```bash -sudo snap install opera-proxy -``` - ## Usage List available countries: diff --git a/snapcraft.yaml b/snapcraft.yaml deleted file mode 100644 index 9356192..0000000 --- a/snapcraft.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: opera-proxy -summary: Standalone Opera VPN proxies client. -description: | - Standalone Opera VPN proxies client. Just run it and it'll start plain HTTP proxy server forwarding traffic via proxies of your choice. - -confinement: strict -base: core22 -adopt-info: opera-proxy - -parts: - opera-proxy: - plugin: go - build-snaps: [go/latest/stable] - build-packages: - - make - - git-core - source: https://github.com/Alexey71/opera-proxy - source-type: git - override-pull: | - craftctl default - craftctl set version="$(git describe --long --tags --always --match=v*.*.* | sed 's/v//')" - override-build: - make && - cp bin/opera-proxy "$SNAPCRAFT_PART_INSTALL" - stage: - - opera-proxy - -apps: - opera-proxy: - command: opera-proxy - plugs: - - network - - network-bind