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

Docker image #860

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Docker image #860

wants to merge 7 commits into from

Conversation

g7ufo
Copy link

@g7ufo g7ufo commented Jan 3, 2025

I've added documentation at README.docker.md for anyone to help test this. The documentation points to my forked image for now but will be retired in favour of this repo after merge.

The Image build takes about a hour and so is only performed when a tag (I.e from a release) is pushed.

This image isn't MacOS specific, the image is Linux based for amd64 and arm64 platforms. The documentation leans towards MacOS but only for the audio setup and the change of port to 5050 (because on MacOS port 5000 is used by 'Airplay Receiver').

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 4, 2025

Thanks a lot for your help with this, @g7ufo .

Some Suggestions:

  • can we change the paths to the origin repository?
  • Could you merge into develop branch? It's our central point for publishing releases

Some inline comments will follow

@g7ufo g7ufo changed the base branch from main to develop January 4, 2025 11:47
@g7ufo g7ufo marked this pull request as ready for review January 4, 2025 12:01
@g7ufo
Copy link
Author

g7ufo commented Jan 4, 2025

Thanks a lot for your help with this, @g7ufo .

Some Suggestions:

  • can we change the paths to the origin repository?
  • Could you merge into develop branch? It's our central point for publishing releases

Some inline comments will follow

Both comments addressed in last commit. I've also updated the summary with additional commentary.

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 21, 2025

@g7ufo Did you see the other comments above?

Best regards, Simon

@g7ufo
Copy link
Author

g7ufo commented Jan 23, 2025

@DJ2LS I can't see any additional comments, there are none inline.

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 23, 2025

@DJ2LS I can't see any additional comments, there are none inline.

Maybe the comments are hidden. They should be there. You could also look into changed file here in GitHub. Maybe they are visible there

@g7ufo
Copy link
Author

g7ufo commented Jan 24, 2025

@DJ2LS Could you maybe send me a screengrab, would be great to get any comments addressed.

One thing which always catches me out with GitHub [at work] is forgetting to hit the 'Submit review' button under 'Review changes'.

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 24, 2025

No worries, we will handle this :-)

At least at my question was, the ip addresses inside the configs - are they fixed because of docker or can we make them more dynamic or common? Specially rigctld for example

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 27, 2025

Question: what Happens in case of an Update? What's with the Message data and settings?

@g7ufo
Copy link
Author

g7ufo commented Jan 29, 2025

@DJ2LS Sorry for the delay in replying. To answer your questions:

the ip addresses inside the configs - are they fixed because of docker or can we make them more dynamic or common? Specially rigctld for example

The 192.168.0.10:6701 address can (and should) be updated to reflect the IP of the radio connected alongside the port and appropriate model number. I've pushed a change to the documentation to make this clearer.

Question: what Happens in case of an Update? What's with the Message data and settings?

The docker and docker compose commands in the documentation both map the configuration directory in the running container to the host machine. Providing the update doesn't make any breaking changes to the config or other data files then it should be seamless.

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 31, 2025

Thanks @g7ufo , so this means, the config folder is separated and in case of a FreeDATA update, the config files and database remains, right? Sorry, I'm not that familiar with docker. But I also want to merge this commit.

@g7ufo
Copy link
Author

g7ufo commented Jan 31, 2025

Yes, @DJ2LS that's correct - the config folder is a mount from the host into the container. Just to illustrate, this is the data directory on my host machine:

❯ ls -l data
total 56
-rw-r--r-- 1 neil staff  1107 Jan  3 15:05 config.ini
-rw-r--r-- 1 neil staff 53248 Jan  3 15:05 freedata-messages.db

So if I use an updated version of the image, this same directory will be mounted in that.

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 31, 2025

Ah, good to know, thanks for taking the time doing this.
At least we want to have things as simple as possible. So intention is, just downloading a docker container and running it, without too much work.

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 31, 2025

I like to give it a try, so we are going to merge it into develop branch. Then it's part of the next release. I would appreciate if we can continue work on this so everything is as easy as possible.

@DJ2LS
Copy link
Owner

DJ2LS commented Jan 31, 2025

oh, and I don't want to crash your work - but do we really need pulse audio on macOS? We are using the port audio library, it should support macOS natively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

2 participants