Skip to content

Commit

Permalink
Remove web uploader
Browse files Browse the repository at this point in the history
remove obsolete project testing upload of large files via web page
  • Loading branch information
phwissmann committed Oct 4, 2024
1 parent 98bc5d3 commit f0b08a2
Show file tree
Hide file tree
Showing 31 changed files with 0 additions and 8,259 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
WEBUPLOADER_IMAGE_NAME: ${{ github.repository }}-webuploader
OPENEM_FLOWS_IMAGE_NAME: ${{ github.repository }}-openem-flows
OPENEM_BACKEND_IMAGE_NAME: ${{ github.repository }}-openem-backend
OPENEM_CONFIG_IMAGE_NAME: ${{ github.repository }}-openem-config
Expand All @@ -26,7 +25,6 @@ jobs:
pull-requests: read
# Set job outputs to values from filter step
outputs:
webuploader: ${{ steps.filter.outputs.webuploader }}
backend: ${{ steps.filter.outputs.backend }}
steps:
# For pull requests it's not necessary to checkout the code
Expand All @@ -36,8 +34,6 @@ jobs:
id: filter
with:
filters: |
webuploader:
- 'webuploader/**'
backend:
- 'backend/**'
Expand Down Expand Up @@ -190,48 +186,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}


build_webuploader:
runs-on: ubuntu-latest

permissions:
packages: write
contents: read

needs: detect_changes
if: ${{ needs.detect_changes.outputs.webuploader == 'true' }} || github.event_name != 'pull_request'

steps:
- uses: actions/checkout@v3

- name: Log into registry ${{ env.REGISTRY }}
# if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.WEBUPLOADER_IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: ./webuploader
push: true # ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


build_scicat_mock:
runs-on: ubuntu-latest

Expand Down
4 changes: 0 additions & 4 deletions .production.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ MINIO_RETRIEVAL_BUCKET="retrieval"
MINIO_LANDINGZONE_BUCKET="landingzone"
MINIO_STAGING_BUCKET="staging"

## Webuploader
WEBUPLOADER_IMAGE_NAME=ghcr.io/swissopenem/scopemarchiver-webuploader
WEBUPLOADER_IMAGE_TAG=main

# PREFECT
PREFECT_RUNTIME_IMAGE_NAME=ghcr.io/swissopenem/scopemarchiver-openem-runtime
PREFECT_FLOWS_IMAGE_NAME=ghcr.io/swissopenem/scopemarchiver-openem-flows
Expand Down
19 changes: 0 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,25 +104,6 @@ services:
- minio_user
- minio_pass

frontend:
image: ${WEBUPLOADER_IMAGE_NAME}:${OPENEM_IMAGE_TAG}
container_name: frontend
profiles:
- disabled
pull_policy: if_not_present
build:
context: ./webuploader
dockerfile: Dockerfile
environment:
- COMPANION_URL=${HOST}/companion
expose:
- 3000
labels:
- "traefik.enable=true"
- "traefik.http.routers.webuploader.rule=Host(`${HOST}`)"
- "traefik.http.routers.webuploader.entrypoints=web"
- "traefik.http.services.webuploader.loadbalancer.server.port=3000"

archiver-backend:
image: ${OPENEM_BACKEND_IMAGE_NAME}:${OPENEM_IMAGE_TAG}
container_name: backend
Expand Down
29 changes: 0 additions & 29 deletions webuploader/.devcontainer/devcontainer.json

This file was deleted.

24 changes: 0 additions & 24 deletions webuploader/.dockerignore

This file was deleted.

13 changes: 0 additions & 13 deletions webuploader/.eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions webuploader/.eslintrc.cjs

This file was deleted.

12 changes: 0 additions & 12 deletions webuploader/.github/dependabot.yml

This file was deleted.

10 changes: 0 additions & 10 deletions webuploader/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion webuploader/.npmrc

This file was deleted.

4 changes: 0 additions & 4 deletions webuploader/.prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions webuploader/.prettierrc

This file was deleted.

23 changes: 0 additions & 23 deletions webuploader/Dockerfile

This file was deleted.

52 changes: 0 additions & 52 deletions webuploader/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions webuploader/jsconfig.json

This file was deleted.

Loading

0 comments on commit f0b08a2

Please sign in to comment.