diff --git a/.github/renovate.json b/.github/renovate.json index 9b3babe..021f656 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,24 +1,8 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["github>bitwarden/renovate-config"], - "enabledManagers": [ - "dockerfile", - "docker-compose", - "github-actions", - "npm", - "nvm" - ], + "enabledManagers": ["github-actions", "npm", "nvm"], "packageRules": [ - { - "groupName": "dockerfile minor", - "matchManagers": ["dockerfile"], - "matchUpdateTypes": ["minor", "patch"] - }, - { - "groupName": "docker-compose minor", - "matchManagers": ["docker-compose"], - "matchUpdateTypes": ["minor", "patch"] - }, { "groupName": "gh minor", "matchManagers": ["github-actions"], diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 31b925e..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build and push Docker image - -on: - push: - branches: ["main"] - workflow_dispatch: - -jobs: - push-image: - runs-on: ubuntu-24.04 - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 - with: - registry: ghcr.io - username: ${{github.actor}} - password: ${{secrets.GITHUB_TOKEN}} - - - name: Build and push the Docker image - run: | - docker build . -f Dockerfile -t ghcr.io/bitwarden/test-the-web:latest - docker push ghcr.io/bitwarden/test-the-web:latest diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 284eeaa..0000000 --- a/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -ARG NODE_VERSION=20 - -FROM node:${NODE_VERSION}-alpine as build -WORKDIR /usr/app -COPY . . -RUN npm ci -RUN npm run build - -FROM node:${NODE_VERSION}-alpine -LABEL org.opencontainers.image.source="https://github.com/bitwarden/test-the-web" -WORKDIR /usr/app -COPY --from=build /usr/app/client/build ./client/build -COPY --from=build /usr/app/api/build ./api/build -COPY --from=build /usr/app/api/node_modules ./api/node_modules -COPY --from=build /usr/app/api/.en[v] ./ -CMD ["node", "api/build/app.js"] diff --git a/Dockerfile.dev b/Dockerfile.dev deleted file mode 100644 index 47085f1..0000000 --- a/Dockerfile.dev +++ /dev/null @@ -1,17 +0,0 @@ -ARG NODE_VERSION=20 - -FROM node:${NODE_VERSION}-alpine as build -WORKDIR /usr/app -COPY . . -RUN npm ci -RUN npm run build - -FROM node:${NODE_VERSION}-alpine -WORKDIR /usr/app -COPY --from=build /usr/app/client/build ./client/build -COPY --from=build /usr/app/api/build ./api/build -COPY --from=build /usr/app/api/node_modules ./api/node_modules -COPY --from=build /usr/app/api/ssl.cr[t] ./api/ -COPY --from=build /usr/app/api/ssl.ke[y] ./api/ -COPY --from=build /usr/app/api/.en[v] ./ -CMD ["node", "api/build/app.js"] diff --git a/README.md b/README.md index d667eb1..aa5f56c 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,13 @@ Test the Web enables anyone to quickly test common browser interactions on the w ## Requirements -- [npm](https://www.npmjs.com/) and/or [Docker](https://www.docker.com/) +- [npm](https://www.npmjs.com/) ## Quick-start - clone the repo to your desired environment -- build and run: - - with Node/npm: - - `npm ci && npm run build:watch` - - with Docker: - - `docker build -f Dockerfile.dev . -t test-the-web:dev` - - `docker run -d --name test-the-web -p 443:443 -p 80:80 test-the-web:dev` +- build and run with Node/npm: + - `npm ci && npm run build:watch` - go to `http://localhost` - start testing!