Skip to content

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Nov 28, 2023

  • Add NUXT_PUBLIC_API_BASEto docker compose configuration to overwrite API URL at runtime.
  • Add debug to Containerfile.
  • Refactor the publish_docker_image.yml workflow to follow the same structure as in the Index.

For development, the API base URL is taken from the `.env` file.

```
API_BASE_URL=http://localhost:3001/v1
```

For production, you can use the pre-build docker image which uses the default value set at building time (`http://localhost:3001/v1`).
If you want, you can overwrite it when you run the new app with the env var `NUXT_PUBLIC_API_BASE` but it only works if you are serving the app with node.
It doesn't work for static web app. You new to rebuild the app with your
value for the env var `API_BASE_URL` so that it's included in the
packaged app.
@josecelano josecelano self-assigned this Nov 28, 2023
@josecelano josecelano added Code Cleanup / Refactoring Tidying and Making Neat Build | Project System Compiling and Packaging - Developer - Torrust Improvement Experience Quality & Assurance Relates to QA, Testing, and CI labels Nov 28, 2023
@josecelano josecelano requested a review from da2ce7 November 28, 2023 11:37
It will allow us to use the same strcuture as the workflow to publish
the docker image in the Index and Tracker projects.
They were replace by a single workflow: `container.yaml`, folowwing the
same structure as in the Tracker and Index.
@josecelano josecelano marked this pull request as ready for review November 28, 2023 12:05
@josecelano josecelano requested a review from a team as a code owner November 28, 2023 12:05
@josecelano
Copy link
Member Author

ACK 3e1ef2f

@josecelano josecelano merged commit 1d0f370 into torrust:develop Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

- Developer - Torrust Improvement Experience Build | Project System Compiling and Packaging Code Cleanup / Refactoring Tidying and Making Neat Quality & Assurance Relates to QA, Testing, and CI

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Refactor publish_docker_image.yml workflow to use same structure as the Index and Tracker

1 participant