tutorial-shell

GPL-3.0 License

Stars
5

Docker image for shell introduction

Works with thuv.

Files

  • Dockerfile, install packages and copies scripts/config
  • setup.sh, Dockerfile entrypoint, pass login|password as arguments of docker run
  • tests.sh, Scenario of a user (run over ssh)

Commands

  • Build: docker build -t shell_tuto .
  • Run: docker run -it --rm -p 3000:22 shell_tuto <login> <passwd>
  • SSH: ssh -p 3000 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <login>@0.0.0.0
  • To run tests: ssh -p 3000 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t [email protected] '~/tests.sh'