Skip to content

Commit

Permalink
try to fix missing apt key
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail committed Apr 26, 2022
1 parent 6626be6 commit 1b56d7d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
17 changes: 8 additions & 9 deletions docker/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ func TestDockerIntegration(t *testing.T) {
tests := map[string]struct {
expectedDockerfile string
}{
// @todo Restore dpkg tests
//"dpkg-query using autodetect": {expectedDockerfile: "dpkg-query-autodetect/Dockerfile"},
//"dpkg-query": {expectedDockerfile: "dpkg-query/Dockerfile"},
"yum": {expectedDockerfile: "yum/Dockerfile"},
"yum using autodetect": {expectedDockerfile: "yum-autodetect/Dockerfile"},
"dnf": {expectedDockerfile: "dnf/Dockerfile"},
"dnf using autodetect": {expectedDockerfile: "dnf-autodetect/Dockerfile"},
"apk using autodetect": {expectedDockerfile: "apk-autodetect/Dockerfile"},
"apk": {expectedDockerfile: "apk/Dockerfile"},
"dpkg-query using autodetect": {expectedDockerfile: "dpkg-query-autodetect/Dockerfile"},
"dpkg-query": {expectedDockerfile: "dpkg-query/Dockerfile"},
"yum": {expectedDockerfile: "yum/Dockerfile"},
"yum using autodetect": {expectedDockerfile: "yum-autodetect/Dockerfile"},
"dnf": {expectedDockerfile: "dnf/Dockerfile"},
"dnf using autodetect": {expectedDockerfile: "dnf-autodetect/Dockerfile"},
"apk using autodetect": {expectedDockerfile: "apk-autodetect/Dockerfile"},
"apk": {expectedDockerfile: "apk/Dockerfile"},
}
t.Run("docker", func(t *testing.T) {
for name, test := range tests {
Expand Down
4 changes: 3 additions & 1 deletion docker/dpkg-query-autodetect/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM ubuntu:latest

WORKDIR /ahab-docker

RUN apt-get update && apt-get -y install python3-pip
RUN apt-get update && apt-get -y install python3-pip sudo

COPY ahab .

RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C

# Spit out these just for easier debugging
RUN dpkg-query --show --showformat='${Package} ${Version}\n'

Expand Down
4 changes: 3 additions & 1 deletion docker/dpkg-query/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM ubuntu:latest

WORKDIR /ahab-docker

RUN apt-get update && apt-get -y install python3-pip
RUN apt-get update && apt-get -y install python3-pip sudo

COPY ahab .

RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C

# Spit out these just for easier debugging
RUN dpkg-query --show --showformat='${Package} ${Version}\n'

Expand Down

0 comments on commit 1b56d7d

Please sign in to comment.