Skip to content

Commit

Permalink
Merge pull request #104 from DSD-DBS/remove-fileservice
Browse files Browse the repository at this point in the history
Remove fileservice
  • Loading branch information
MoritzWeber0 authored Feb 14, 2023
2 parents 5bd8ae5 + 9373016 commit a73af2f
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 319 deletions.
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ GIT_PASSWORD ?= password
# Preferred RDP port on your host system
RDP_PORT ?= 3390

# Preferred fileservice port on your host system
FILESYSTEM_PORT ?= 8081

# Preferred metrics port on your host system
METRICS_PORT ?= 9118

Expand Down Expand Up @@ -266,7 +263,6 @@ run-t4c/client/remote-legacy: t4c/client/remote
-e T4C_SERVER_PORT=$(T4C_SERVER_PORT) \
-e T4C_REPOSITORIES=$(T4C_REPOSITORIES) \
-e RMT_PASSWORD=$(RMT_PASSWORD) \
-e FILESERVICE_PASSWORD=$(RMT_PASSWORD) \
-e T4C_USERNAME=$(T4C_USERNAME) \
-p $(RDP_PORT):3389 \
-p $(FILESYSTEM_PORT):8000 \
Expand All @@ -280,7 +276,6 @@ run-t4c/client/remote-json: t4c/client/remote
-e T4C_LICENCE_SECRET=$(T4C_LICENCE_SECRET) \
-e T4C_JSON=$(T4C_JSON) \
-e RMT_PASSWORD=$(RMT_PASSWORD) \
-e FILESERVICE_PASSWORD=$(RMT_PASSWORD) \
-e T4C_USERNAME=$(T4C_USERNAME) \
-p $(RDP_PORT):3389 \
-p $(FILESYSTEM_PORT):8000 \
Expand All @@ -293,7 +288,6 @@ run-t4c/client/remote/pure-variants: t4c/client/remote/pure-variants
-e T4C_LICENCE_SECRET=$(T4C_LICENCE_SECRET) \
-e T4C_JSON=$(T4C_JSON) \
-e RMT_PASSWORD=$(RMT_PASSWORD) \
-e FILESERVICE_PASSWORD=$(RMT_PASSWORD) \
-e T4C_USERNAME=$(T4C_USERNAME) \
-e PURE_VARIANTS_LICENSE_SERVER=$(PURE_VARIANTS_LICENSE_SERVER) \
-v $$(pwd)/volumes/pure-variants:/inputs/pure-variants \
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ The remote images allow to extend the
- Capella base image (`capella/base`) or
- the T4C base image (`t4c/client/base`)

with an RDP server, a metrics endpoint to measure the container activity and a fileservice that serves the current workspace structure.
with an RDP server, a metrics endpoint to measure the container activity.

It is a basic Linux server with an [Openbox](http://openbox.org/) installation.

Expand Down Expand Up @@ -470,7 +470,6 @@ docker run -d \
-e T4C_SERVER_PORT=$T4C_SERVER_PORT \
-e T4C_REPOSITORIES=$T4C_REPOSITORIES \
-e RMT_PASSWORD=$RMT_PASSWORD \
-e FILESERVICE_PASSWORD=$FILESERVICE_PASSWORD \
-e T4C_USERNAME=$T4C_USERNAME \
-e AUTOSTART_CAPELLA=$AUTOSTART_CAPELLA \
-e RESTART_CAPELLA=$RESTART_CAPELLA \
Expand All @@ -483,7 +482,6 @@ Please replace the followings variables:
- `$RMT_PASSWORD` is the password for remote connections (for the login via RDP).
- `$T4C_LICENCE_SECRET` to your TeamForCapella licence secret.
- `$T4C_USERNAME` is the username that is suggested when connecting to t4c.
- `$FILESERVICE_PASSWORD` with the password for the fileservice, which is used as basic authentication password.
- `AUTOSTART_CAPELLA` defines the auto-start behaviour of Capella. When set to 1 (default), Capella will be started as soon
as an RDP connection has been established to the running container.
- `RESTART_CAPELLA` defines the restart behaviour of Capella. When set to 1 (default) and when `AUTOSTART_CAPELLA=1`,
Expand Down
4 changes: 0 additions & 4 deletions remote/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ RUN pip install prometheus-client

COPY metrics.py .metrics.py

# Run fileservice endpoint
COPY fastapi /opt/fastapi
RUN pip install /opt/fastapi

ENV AUTOSTART_CAPELLA=1
ENV RESTART_CAPELLA=1

Expand Down
5 changes: 0 additions & 5 deletions remote/fastapi/.dockerignore

This file was deleted.

6 changes: 0 additions & 6 deletions remote/fastapi/.gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions remote/fastapi/fileservice/__init__.py

This file was deleted.

41 changes: 0 additions & 41 deletions remote/fastapi/fileservice/core.py

This file was deleted.

24 changes: 0 additions & 24 deletions remote/fastapi/fileservice/models.py

This file was deleted.

33 changes: 0 additions & 33 deletions remote/fastapi/fileservice/routes.py

This file was deleted.

167 changes: 0 additions & 167 deletions remote/fastapi/pyproject.toml

This file was deleted.

5 changes: 0 additions & 5 deletions remote/fastapi/setup.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions remote/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ user=techuser
autorestart=true
environment=DISPLAY=":10"

[program:fileservice]
; Serves the workspace structure
command=uvicorn fileservice:app --host 0.0.0.0
user=techuser
autorestart=true

[supervisord]
nodaemon=true
childlogdir=/var/log
1 change: 0 additions & 1 deletion tests/test_t4c_repository_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
default_env = {
"T4C_LICENCE_SECRET": "",
"RMT_PASSWORD": "my_long_password",
"FILESERVICE_PASSWORD": "password",
"T4C_USERNAME": "techuser",
}

Expand Down

0 comments on commit a73af2f

Please sign in to comment.