-
Notifications
You must be signed in to change notification settings - Fork 2
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
Forward SSH port #329
Comments
Affected are
Proposed changes for (3): SSH_PORT = "22"
if self.ssh_port_forward is not None:
ports[f"{SSH_PORT}/tcp"] = ('0.0.0.0', int(self.ssh_port_forward)) |
Discussion with @tkilias:
For reuse:
or def get_mapped_port(container: Container, port: int) -> int:
try:
return int(
container.attrs
["HostConfig"]
["PortBindings"]
[f"{port}/tcp"]
[0]
["HostPort"]
)
except (KeyError, IndexError):
return None Example from "PortBindings": {
"6583/tcp": [{"HostIp": "0.0.0.0", "HostPort": "36263"}],
"8888/tcp": [{"HostIp": "0.0.0.0", "HostPort": "50033"}]
},
|
See Used in database_port, bucketfs_port = find_free_ports(2) Implementation options
I opt for option (c). |
Observations indicate that some logic in Docker seems to overwrite file Which alternatives exist?
For A1 and A2 feasibility is unknown. |
Extend docker db EXAConf template with
add
|
After changing one of the templates, e.g. bash ./githooks/update_packaging.sh Inside the Docker Container the following commands might be helpful:
|
the issue is, in the c4 container, you can't access the exaconf and exaconf changes the config file, but not the applied config, for that exainit needs to run again. |
if you want to change the user in a running container, you probably need to use confd. |
No worries, currently I have some progress and I already could find out that the key in EXAConf is not |
Open questions
|
Dear reviewers: I updated the PR #339 and fixed most review findings. |
Dear reviewers I fixed findings from round No. 2. |
Blocked by #351 |
blocking issue #351 has been implemented and released with version 1.7.1 - removing label |
Ready for Review again. |
ITDE currently uses
docker_exec
to access the Docker Container, e.g. to analyze the content of some logfiles. With version 8 and higher the format of the Docker Containers might change so thatdocker_exec
is no longer possible. Instead ITDE will then need to use SSH access.The current ticket requests to to forward the SSH port outside the Docker Container in order to enable accessing the operating system hosting the database via SSH from outside the Docker Container.
Acceptance Criteria
--ssh-port-forward
to specify the port mappingThe text was updated successfully, but these errors were encountered: