mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-16 17:45:12 +00:00
update test docker to devuan chimaera
install pinentry curses and gpg update github action checkout v3
This commit is contained in:
parent
b7822afaf0
commit
70871108a8
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
cp -v extras/test/Dockerfile .
|
cp -v extras/test/Dockerfile .
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# This creates an Ubuntu derived base image and installs the tomb libarary
|
# This creates an Ubuntu derived base image and installs the tomb libarary
|
||||||
# along with it's dependencies.
|
# along with it's dependencies.
|
||||||
|
|
||||||
FROM dyne/devuan:beowulf
|
FROM dyne/devuan:chimaera
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
ARG TOMB_VERSION=2.9
|
ARG TOMB_VERSION=2.9
|
||||||
@ -19,7 +19,8 @@ RUN apt-get update -y && \
|
|||||||
zsh \
|
zsh \
|
||||||
gnupg \
|
gnupg \
|
||||||
cryptsetup \
|
cryptsetup \
|
||||||
pinentry-curses \
|
pinentry pinentry-curses \
|
||||||
|
file xxd \
|
||||||
steghide \
|
steghide \
|
||||||
mlocate \
|
mlocate \
|
||||||
swish-e
|
swish-e
|
||||||
|
@ -11,7 +11,7 @@ test_expect_success 'Testing tomb creation: dig, forge and lock' '
|
|||||||
tt_forge --tomb-pwd $DUMMYPASS &&
|
tt_forge --tomb-pwd $DUMMYPASS &&
|
||||||
print $DUMMYPASS \
|
print $DUMMYPASS \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
||||||
| hexdump -C &&
|
| xxd &&
|
||||||
tt_lock --tomb-pwd $DUMMYPASS
|
tt_lock --tomb-pwd $DUMMYPASS
|
||||||
'
|
'
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ if test_have_prereq SPHINX ORACLE; then
|
|||||||
tt_forge --tomb-pwd $DUMMYPASS --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST &&
|
tt_forge --tomb-pwd $DUMMYPASS --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST &&
|
||||||
print $(echo $DUMMYPASS | sphinx get $DUMMYUSER $DUMMYHOST) \
|
print $(echo $DUMMYPASS | sphinx get $DUMMYUSER $DUMMYHOST) \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
||||||
| hexdump -C &&
|
| xxd &&
|
||||||
tt_lock --tomb-pwd $DUMMYPASS --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST
|
tt_lock --tomb-pwd $DUMMYPASS --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST
|
||||||
'
|
'
|
||||||
fi
|
fi
|
||||||
@ -34,7 +34,7 @@ if test_have_prereq DOAS; then
|
|||||||
tt_forge --sudo doas --tomb-pwd $DUMMYPASS &&
|
tt_forge --sudo doas --tomb-pwd $DUMMYPASS &&
|
||||||
print $DUMMYPASS \
|
print $DUMMYPASS \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
||||||
| hexdump -C &&
|
| xxd &&
|
||||||
tt_lock --sudo doas --tomb-pwd $DUMMYPASS
|
tt_lock --sudo doas --tomb-pwd $DUMMYPASS
|
||||||
'
|
'
|
||||||
fi
|
fi
|
||||||
|
@ -11,7 +11,7 @@ if test_have_prereq KDF; then
|
|||||||
tt_forge --tomb-pwd $DUMMYPASS --kdf 1 &&
|
tt_forge --tomb-pwd $DUMMYPASS --kdf 1 &&
|
||||||
print $DUMMYPASS \
|
print $DUMMYPASS \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \
|
||||||
| hexdump -C &&
|
| xxd &&
|
||||||
tt_lock --tomb-pwd $DUMMYPASS --kdf 1
|
tt_lock --tomb-pwd $DUMMYPASS --kdf 1
|
||||||
'
|
'
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ test_expect_success 'Testing set key' '
|
|||||||
--unsafe --tomb-pwd $DUMMYPASS &&
|
--unsafe --tomb-pwd $DUMMYPASS &&
|
||||||
print $DUMMYPASS \
|
print $DUMMYPASS \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key_new \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key_new \
|
||||||
| hexdump -C &&
|
| xxd &&
|
||||||
tt_close
|
tt_close
|
||||||
'
|
'
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ if test_have_prereq SPHINX ORACLE; then
|
|||||||
--sphx-user $DUMMYUSER --sphx-host $DUMMYHOST &&
|
--sphx-user $DUMMYUSER --sphx-host $DUMMYHOST &&
|
||||||
print $DUMMYPASS \
|
print $DUMMYPASS \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key_new \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key_new \
|
||||||
| hexdump -C &&
|
| xxd &&
|
||||||
tt_close
|
tt_close
|
||||||
'
|
'
|
||||||
fi
|
fi
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
FROM dyne/devuan:beowulf
|
FROM dyne/devuan:chimaera
|
||||||
|
|
||||||
RUN echo "deb http://deb.devuan.org/merged chimaera main" >> /etc/apt/sources.list
|
RUN echo "deb http://deb.devuan.org/merged chimaera main" >> /etc/apt/sources.list
|
||||||
RUN apt-get update -y -q --allow-releaseinfo-change
|
RUN apt-get update -y -q --allow-releaseinfo-change
|
||||||
RUN apt-get install -y -q -t beowulf zsh cryptsetup gawk libgcrypt20-dev steghide qrencode python python2.7 python3-pip python3-dev libssl-dev make gcc g++ sudo gettext file bsdmainutils
|
RUN apt-get install -y -q zsh cryptsetup gpg gawk libgcrypt20-dev steghide qrencode python python2.7 python3-pip python3-dev libssl-dev make gcc sudo gettext bsdmainutils file pinentry-curses xxd libsodium23 libsodium-dev doas
|
||||||
RUN apt-get install -y -q -t chimaera libsodium23 libsodium-dev doas
|
|
||||||
RUN pip3 install setuptools wheel
|
RUN pip3 install setuptools wheel
|
||||||
|
|
||||||
COPY . /Tomb/
|
COPY . /Tomb/
|
||||||
|
@ -100,7 +100,7 @@ test-tomb-create() {
|
|||||||
notice "Dump of clear key contents to examine them:"
|
notice "Dump of clear key contents to examine them:"
|
||||||
print ${dummypass} \
|
print ${dummypass} \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d /tmp/test.tomb.key \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d /tmp/test.tomb.key \
|
||||||
| hexdump -C
|
| xxd
|
||||||
echo --
|
echo --
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,7 +309,7 @@ test-set-key() {
|
|||||||
notice "Dump of clear key contents to examine them:"
|
notice "Dump of clear key contents to examine them:"
|
||||||
print ${dummypass} \
|
print ${dummypass} \
|
||||||
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d /tmp/test.tomb.new.key \
|
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d /tmp/test.tomb.new.key \
|
||||||
| hexdump -C
|
| xxd
|
||||||
echo --
|
echo --
|
||||||
mv /tmp/test.tomb.new.key /tmp/test.tomb.key
|
mv /tmp/test.tomb.new.key /tmp/test.tomb.key
|
||||||
tt close test
|
tt close test
|
||||||
|
Loading…
Reference in New Issue
Block a user