Skip to content

Commit

Permalink
Change Docker User
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofigueiredobisect committed Sep 24, 2024
1 parent 151cd8b commit e17a9c0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ This will run the docker containers:

## Access the Development Container

In this project it is included a development container to facilitate the development of the code. The container when built the first time it is empty and there is a need to download the repository again inside the container to build the project.

### Using VSCode

Install `ms-vscode-remote.remote-ssh` extension on vscode and enter on the container.
Expand All @@ -53,7 +55,11 @@ First you need to check you IP address. You can do it by running:

Once you know your ip address you enter the container by doing:

ssh -p 55555 bisect@{your-ip-address} -XY
ssh -p 55555 nmos@{your-ip-address} -XY

The password for the username is:

nmos

## Access NVIDIA NMOS Commissioning Controller Container

Expand Down
3 changes: 0 additions & 3 deletions images/docker-compose-x86-development.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
ossrf-dev:
build:
Expand All @@ -10,8 +9,6 @@ services:
- PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native
volumes:
- ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native
- ../volumes/home:/home/bisect/
- /.conan2:/home/bisect/.conan2:rw

nmos-registry:
image: docker.io/rhastie/nmos-cpp:latest
Expand Down
2 changes: 1 addition & 1 deletion images/scripts/common/add-ssh-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ echo "X11UseLocalhost no";
echo "Port ${SSHD_PORT}";
echo "PasswordAuthentication yes";
echo "Subsystem sftp /usr/lib/openssh/sftp-server";
) > /etc/ssh/sshd_config_bisect
) > /etc/ssh/sshd_config_nmos

mkdir /run/sshd
6 changes: 3 additions & 3 deletions images/scripts/launch.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash
set -eu

HOME="/home/bisect"
HOME="/home/nmos"

if [ -d $HOME ]
then
echo "Directory $HOME exists."
sudo chown bisect.bisect $HOME
sudo chown nmos.nmos $HOME
else
echo "Directory $HOME does not exist."
mkdir $HOME
fi

# start ssh service
sudo /usr/sbin/sshd -D -e -f /etc/ssh/sshd_config_bisect
sudo /usr/sbin/sshd -D -e -f /etc/ssh/sshd_config_nmos

0 comments on commit e17a9c0

Please sign in to comment.