diff --git a/.github/workflows/build-publish-dev.yml b/.github/workflows/build-publish-dev.yml deleted file mode 100644 index 10f9633e..00000000 --- a/.github/workflows/build-publish-dev.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Docker Build/Publish Development - -on: - schedule: - - cron: "0 2 * * 0" - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - env: - DOCKER_REGISTRY: docker.io - DOCKER_IMAGE: lukasdotcom/fantasy-manager - DOCKER_TARGET_PLATFORM: linux/arm64,linux/amd64 - steps: - - name: Checkout the code - uses: actions/checkout@v4 - # https://github.com/docker/setup-qemu-action - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - # https://github.com/docker/setup-buildx-action - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Prepare - if: success() - id: prepare - run: | - echo "docker_platform=${DOCKER_TARGET_PLATFORM}" >> $GITHUB_OUTPUT - echo "docker_image=${DOCKER_REGISTRY}/${DOCKER_IMAGE}" >> $GITHUB_OUTPUT - echo "version=${GITHUB_RUN_NUMBER}" >> $GITHUB_OUTPUT - - name: Login to Docker Hub - if: success() - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PAT }} - - name: Run Buildx (push image) - if: success() - run: | - docker buildx build --platform ${{ steps.prepare.outputs.docker_platform }} --tag ${{ steps.prepare.outputs.docker_image }}:development --file development/Dockerfile --push . diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1592dff8..ffcbb7b6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,16 +55,7 @@ npm run dev ## Docker -1. First install docker and docker-compose or docker desktop -2. Download this entire repository to your computer with - -```bash -git clone https://github.com/lukasdotcom/fantasy-manager -``` - -3. Copy the docker-compose file in the development folder to the top folder of the repository. -4. Edit the volume and replace /locationToWhereThisGithubIsDownloaded with wherever this repository got downloaded to. -5. Then run `docker-compose up` +1. Docker is unmaintained due to being unnecessary. # Cypress diff --git a/development/Dockerfile b/development/Dockerfile deleted file mode 100644 index d1141806..00000000 --- a/development/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM node:22-alpine -ENV NODE_ENV=development -RUN mkdir /app -WORKDIR /app -# Sets the default configuration -ENV NEXTAUTH_SECRET=hkf9eUXAZKjw99/hZ4Rrw7aNe47qxB+QuojMwmxbFqA= -ENV NEXTAUTH_URL_INTERNAL=http://127.0.0.1:3000 -CMD npm run dev -EXPOSE 3000 \ No newline at end of file diff --git a/development/docker-compose.yaml b/development/docker-compose.yaml deleted file mode 100644 index a3f5805d..00000000 --- a/development/docker-compose.yaml +++ /dev/null @@ -1,35 +0,0 @@ -version: "2.1" -services: - bundesliga: - image: lukasdotcom/bundesliga:development - container_name: bundesliga - links: - - db - environment: - # To see a list of the enviromental variables and what should get changed look at the env.md file located at https://github.com/Lukasdotcom/fantasy-manager/blob/main/ENV.md. - - NEXTAUTH_URL=http://localhost # The url of the server - - MYSQL_USER=bundesliga - - MYSQL_PASSWORD=password - - MYSQL_HOST=db - - MYSQL_DATABASE=bundesliga - - MIN_UPDATE_TIME=120 - - MIN_UPDATE_TIME_TRANSFER=3600 - - NEXTAUTH_SECRET= - - APP_ENV=development - - NODE_ENV=development - ports: - - 80:3000 - restart: always - volumes: - - /locationToWhereThisRepoIsDownloaded:/app - db: - image: mariadb - environment: - - MYSQL_ROOT_PASSWORD=password - - MYSQL_USER=bundesliga - - MYSQL_PASSWORD=password - - MYSQL_DATABASE=bundesliga - restart: always -volumes: - bundesliga: - external: true