From b5ace86a03ac288dc4612d63c5d0a5f666f8d081 Mon Sep 17 00:00:00 2001 From: husbando_enjoyer Date: Tue, 23 Dec 2025 17:33:30 +0100 Subject: [PATCH 01/16] Change port --- docker-compose.yml | 2 +- frontend/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5bc14c9..d6a08b8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,7 +28,7 @@ services: context: ./frontend image: cafeteria-frontend:${FRONTEND_TAG} ports: - - "80:80" + - "8081:8081" depends_on: backend: condition: service_healthy diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 12c2eae..a28b467 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -8,5 +8,5 @@ RUN npm run build FROM nginx:1.27-alpine AS final COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build /app/dist /usr/share/nginx/html -EXPOSE 80 +EXPOSE 8081 CMD ["nginx", "-g", "daemon off;"] From 93fdce1d6e10e69ef190632ecd9be587264532a7 Mon Sep 17 00:00:00 2001 From: husbando_enjoyer Date: Tue, 23 Dec 2025 17:33:48 +0100 Subject: [PATCH 02/16] Change jenkins url --- Jenkinsfile.cd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.cd b/Jenkinsfile.cd index af4c8e4..4a1d445 100644 --- a/Jenkinsfile.cd +++ b/Jenkinsfile.cd @@ -94,8 +94,8 @@ pipeline { } agent any environment { - JENKINS_BASE_URL = 'http://jenkins:8080' - JENKINS_JOB_NAME = 'Espetos' + JENKINS_BASE_URL = 'https://openbokeron.org/jenkins' + JENKINS_JOB_NAME = 'TallerCiCd' } steps { withCredentials([ From 48dd10ea056e55d23cadfb542fcbc52f67287b74 Mon Sep 17 00:00:00 2001 From: husbando_enjoyer Date: Tue, 23 Dec 2025 17:34:06 +0100 Subject: [PATCH 03/16] Prevent creation of pycache directory --- Jenkinsfile.ci | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile.ci b/Jenkinsfile.ci index fac7695..3d26508 100644 --- a/Jenkinsfile.ci +++ b/Jenkinsfile.ci @@ -41,6 +41,11 @@ pipeline { args '-u root' } } + + environment { + PYTHONDONTWRITEBYTECODE = 1 + } + steps { dir('backend') { sh ''' From 26128feb7e72a59eabd6083a0640604e094d6fa4 Mon Sep 17 00:00:00 2001 From: husbando_enjoyer Date: Tue, 23 Dec 2025 17:46:32 +0100 Subject: [PATCH 04/16] Update listening port --- frontend/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index bb3f608..785c42c 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -1,5 +1,5 @@ server { - listen 80; + listen 8081; server_name _; root /usr/share/nginx/html; From 1191ef9f1ff9d4787d051dc04aa81383a7f90105 Mon Sep 17 00:00:00 2001 From: husbando_enjoyer Date: Tue, 23 Dec 2025 18:02:41 +0100 Subject: [PATCH 05/16] Update context path --- frontend/vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index ac8bbe8..e5764f0 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -2,6 +2,7 @@ import { defineConfig } from 'vite'; import { svelte } from '@sveltejs/vite-plugin-svelte'; export default defineConfig({ + base: '/taller', plugins: [svelte()], test: { environment: 'jsdom', From c74cc19d1bfa3ca22750067fdaf93cfd069952cc Mon Sep 17 00:00:00 2001 From: husbando_enjoyer Date: Tue, 23 Dec 2025 18:30:53 +0100 Subject: [PATCH 06/16] Add context path --- frontend/Dockerfile | 2 +- frontend/nginx.conf | 4 ++-- frontend/src/App.svelte | 2 +- frontend/vite.config.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a28b467..9ead6b2 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -7,6 +7,6 @@ RUN npm run build FROM nginx:1.27-alpine AS final COPY nginx.conf /etc/nginx/conf.d/default.conf -COPY --from=build /app/dist /usr/share/nginx/html +COPY --from=build /app/dist /usr/share/nginx/html/taller EXPOSE 8081 CMD ["nginx", "-g", "daemon off;"] diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 785c42c..4e23060 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -5,7 +5,7 @@ server { root /usr/share/nginx/html; index index.html; - location / { - try_files $uri /index.html; + location /taller/ { + try_files $uri $uri/ /index.html; } } diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 5e1298b..4782c98 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -467,7 +467,7 @@ along with this program. If not, see .