diff --git a/.github/workflows/build_and_release_for_nextcloud_with_smbclient.yaml b/.github/workflows/build_and_release_for_nextcloud_with_smbclient.yaml new file mode 100644 index 0000000..88c9f37 --- /dev/null +++ b/.github/workflows/build_and_release_for_nextcloud_with_smbclient.yaml @@ -0,0 +1,47 @@ +name: "Build and release for nextcloud-with-smbclient" + +on: + push: + branches: + - main + paths: + - "nextcloud-with-smbclient/**" + +jobs: + create: + name: "Creates the newest release by version" + runs-on: "ubuntu-latest" + + steps: + - name: Checkout project + uses: actions/checkout@v2.3.4 + + # New step to read the VERSION file and set the version as an output + - name: Get the version + id: get_version + run: echo "nextcloud_with_smbclient_version=$(cat nextcloud-with-smbclient/VERSION)" >> $GITHUB_ENV + + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + + - name: Set up Docker Build + 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 + uses: docker/build-push-action@v3 + with: + push: true + platforms: linux/amd64,linux/arm64 + context: ./nextcloud-with-smbclient + file: ./nextcloud-with-smbclient/Dockerfile + tags: | + bigbeartechworld/big-bear-nextcloud-with-smbclient:latest + bigbeartechworld/big-bear-nextcloud-with-smbclient:${{ env.nextcloud_with_smbclient_version }} diff --git a/nextcloud-with-smbclient/Dockerfile b/nextcloud-with-smbclient/Dockerfile new file mode 100644 index 0000000..1a7318e --- /dev/null +++ b/nextcloud-with-smbclient/Dockerfile @@ -0,0 +1,10 @@ +FROM nextcloud:30.0-apache + +RUN set -e; \ + apt-get update && \ + apt-get install -y libsmbclient-dev build-essential autoconf && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* && \ + pecl install smbclient && \ + docker-php-ext-enable smbclient && \ + php -m | grep -q 'smbclient' diff --git a/nextcloud-with-smbclient/README.md b/nextcloud-with-smbclient/README.md new file mode 100644 index 0000000..3446738 --- /dev/null +++ b/nextcloud-with-smbclient/README.md @@ -0,0 +1,9 @@ +# Instructions to build and run the Docker image + +Made for: https://community.bigbeartechworld.com/t/script-request-smb-share-into-nextcloud/1484?u=dragonfire1119 + +# Build docker image with: + +``` +docker build . -t big-bear-nextcloud-with-smbclient +``` diff --git a/nextcloud-with-smbclient/VERSION b/nextcloud-with-smbclient/VERSION new file mode 100644 index 0000000..8acdd82 --- /dev/null +++ b/nextcloud-with-smbclient/VERSION @@ -0,0 +1 @@ +0.0.1