Skip to content

Commit

Permalink
ci: mount fixture path in our Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennou committed Jul 3, 2019
1 parent 9809edb commit 08b86b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/clar_libssh2.c
Expand Up @@ -131,7 +131,12 @@ static int build_openssh_server_docker_image()
static int start_openssh_server(char **container_id_out)
{
return run_command(container_id_out,
"docker run --detach -P libssh2/openssh_server"
"docker run "
"--detach "
"--publish-all "
"-v \"%s\":%s "
"libssh2/openssh_server",
CLAR_FIXTURE_PATH, "/home/libssh2/sandbox"
);
}

Expand Down
1 change: 0 additions & 1 deletion tests/resources/openssh_server/Dockerfile
Expand Up @@ -69,7 +69,6 @@ RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so
USER libssh2

RUN mkdir -p /home/libssh2/.ssh
RUN mkdir -p /home/libssh2/sandbox

COPY authorized_keys /tmp/libssh2/.ssh/authorized_keys
RUN cp /tmp/libssh2/.ssh/authorized_keys /home/libssh2/.ssh/authorized_keys
Expand Down

0 comments on commit 08b86b7

Please sign in to comment.