Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a possibility to dockerize the Traccar Client? #141

Closed
Jkrox opened this issue Sep 21, 2024 · 8 comments
Closed

Is there a possibility to dockerize the Traccar Client? #141

Jkrox opened this issue Sep 21, 2024 · 8 comments

Comments

@Jkrox
Copy link

Jkrox commented Sep 21, 2024

Hi,

Docker for me it's the best way to setup everything for production in my opinion. I was checking if there is a Docker image for Traccar-Client in order to deploy everything in a single docker-compose.yml with the database. I'm using #101 (comment) and it just works awesome.

I'm new implementing solutions with Traccar, so I want to make sure if this was already done by somebody else, if not, I can contribute doing it, as well as, making a dev container to develop and adjust anything the user wants, but mostly important, an image prepared for production.

@tananaev
Copy link
Member

Sounds like you're talking about the web app, not Traccar Client. Very confusing.

The web app is already included in the single docker image that we have.

@Jkrox
Copy link
Author

Jkrox commented Sep 22, 2024

I meant the web app (Traccar Client because of client side), I have the problem that the image contains the app transpiled by Babel.

I know it's for better optimization and ready to be deployed, however If I want to adjust or change anything before deployment (dev purposes), it's not possible. So, my take here would be, instead of using a zip file backend and frontend inside at once on a single image, we might dockerize the web app and the backend separately. Perhaps, implement the script that you use to transpile the code into the instructions once the user has done any adjustment or change, and finally, do the image for deployment.

wget -qO /tmp/traccar.zip https://github.com/traccar/traccar/releases/download/v$TRACCAR_VERSION/traccar-other-$TRACCAR_VERSION.zip; \

@tananaev
Copy link
Member

How is it going to help with customization?

@Jkrox
Copy link
Author

Jkrox commented Sep 22, 2024

One of my customers pisses me off trying to change some styles stuff in the web app to make it look more according to his brand, and deploy it with a reverse proxy.

@tananaev
Copy link
Member

I don't think it answers my question.

@Jkrox
Copy link
Author

Jkrox commented Sep 22, 2024

It is self-explanatory, you can't change anything with a transpiled code inside the image.

It's going to help with the fact that you can adjust anything, add more parameters (env files, port binding, and so on) to the image, and make it more flexible. Dev containers might be a solution.

@tananaev
Copy link
Member

It's not self explanatory to me. How is dividing one container into two solves the problem? Dev containers is a completely different purpose. It's for development, not deployment, so this would be the wrong repo for that.

@Jkrox
Copy link
Author

Jkrox commented Oct 9, 2024

Hi,

Yes, it was for development, however, I could solve the issue for myself. And yes, this was the wrong repo.

Regards.

@Jkrox Jkrox closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants