INTI-CMNB / kicad_auto_test

KiCad on Debian + automation + test tools used to test kicad_auto
Apache License 2.0
1 stars 1 forks source link

[FEATURE] Add ssh to kibot full image #3

Closed mdeweerd closed 6 months ago

mdeweerd commented 6 months ago

I am using submodules to include libraries.

The diff target does a recursive update which fails.

I mapped my .ssh directory into the docker but that does not suffice, 'ssh' itself is missing.

ERROR:Running ['/usr/bin/git', 'submodule', 'update', '--init', '--recursive'] returned 1 (kibot.gs - gs.py:839)
DEBUG:- Output from command: Cloning into '/tmp/tmp-kibot-diff-checkout-mp8wk_1l/LIBS/kicad-lib'...
error: cannot run ssh: No such file or directory
fatal: unable to fork
fatal: clone of 'ssh://git@redacted/redacted/kicad-lib.git' into submodule path '/tmp/tmp-kibot-diff-checkout-mp8wk_1l/LIBS/kicad-lib' failed

On a side note, I try to add 'ssh' with: apt update ; apt install -y ssh but I ran into the following (ghcr.io/inti-cmnb/kicad8_auto_full:dev):

189 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 kidiff : Depends: kiauto but it is not installable
          Recommends: scour but it is not going to be installed
 ssh : Depends: openssh-client (>= 1:9.7p1-4) but it is not going to be installed
       Depends: openssh-server (>= 1:9.7p1-4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
mdeweerd commented 6 months ago

FYI: With the following command run by docker the git functions work. It uninstalls kidiff, but allows me to run the diff functions anyway (because it's downloaded 👍) :

/bin/bash -c "apt --fix-broken install -y ; apt update ; apt install -y ssh ; chmod 700 $TGTHOMEDIR/.ssh ; cd workdir/$SUBDIR ; kibot --version ; $ARGS" 
set-soft commented 6 months ago

Hi @mdeweerd !

Fresh images should now contain the ssh client

mdeweerd commented 6 months ago

Thanks!