Skip to content

Commit

Permalink
temp fix problem with test
Browse files Browse the repository at this point in the history
  • Loading branch information
fvergaracl committed Nov 21, 2024
1 parent b5e0516 commit 7a69f46
Show file tree
Hide file tree
Showing 6 changed files with 258 additions and 268 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
.git
*.log
*.cache
12 changes: 0 additions & 12 deletions app/middlewares/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ async def auth_oauth2(
HTTPException: Raises a 401 Unauthorized error if OAuth2
authentication fails.
"""
print(" * auth_oauth2 *")
print(" * auth_oauth2 *")
print(" * auth_oauth2 *")
print(" * auth_oauth2 *")
print(" * auth_oauth2 *")

oauth_user_service = Container.oauth_users_service()
try:
Expand All @@ -79,13 +74,6 @@ async def auth_oauth2(
await oauth_user_service.add(create_user)
return True
except HTTPException as e:
print("------------------------------------------------------------")
print("------------------------------------------------------------")
print("---------------------------333---------------------------------")
print("------------------------------------------------------------")
print("------------------------------------------------------------")
print(e)
print
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Invalid authentication credentials",
Expand Down
5 changes: 5 additions & 0 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

FROM node:18 AS development
WORKDIR /app
COPY --from=build /app /app
CMD ["yarn", "start"]
4 changes: 2 additions & 2 deletions dashboard/src/views/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const Dashboard = () => {
style={{
position: 'absolute',
top: '100%', // Justo debajo del botón
right: '0', // Posiciona el DateRangePicker a la derecha
zIndex: 9999, // Asegura que esté por encima de otros elementos
right: '0',
zIndex: 9999,
background: 'white',
boxShadow: '0px 4px 6px rgba(0, 0, 0, 0.1)',
borderRadius: '8px',
Expand Down
25 changes: 25 additions & 0 deletions docker-compose.devintegrated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,31 @@ services:
labels: "app=high_logging"
env: "ENV,DEBUG"
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"

dashboard_game:
container_name: "dashboard_game"
build:
context: ./dashboard
dockerfile: Dockerfile
volumes:
- ./dashboard:/app
- /app/node_modules
environment:
NODE_ENV: development
depends_on:
- api
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.dashboard_game.rule=PathPrefix(`/gameDashboard`)
- traefik.http.middlewares.strip-dashboard_game.stripprefix.prefixes=/gameDashboard
- traefik.http.routers.dashboard_game.middlewares=strip-dashboard_game
- traefik.http.services.dashboard_game.loadbalancer.server.port=3000
networks:
- traefik-public





keycloakGame:
Expand Down
Loading

0 comments on commit 7a69f46

Please sign in to comment.