فهرست منبع

Fix incorrect apt-get update usage in fixture DockerFile (#96156)

We had a couple of spots where we do the update in a separate step from
the install. This has led to apt returning error 100 from going out of sync
more than once for me locally.
-> Fix by always doing update + install in the same step so we don't run
into stale metadata during install.
Armin Braun 2 سال پیش
والد
کامیت
43e526f4e8

+ 1 - 2
test/fixtures/gcs-fixture/Dockerfile

@@ -1,7 +1,6 @@
 FROM ubuntu:20.04
 
-RUN apt-get update -qqy
-RUN apt-get install -qqy openjdk-17-jre-headless
+RUN apt-get update -qqy && apt-get install -qqy openjdk-17-jre-headless
 
 ARG port
 ARG bucket

+ 1 - 2
test/fixtures/s3-fixture/Dockerfile

@@ -1,7 +1,6 @@
 FROM ubuntu:20.04
 
-RUN apt-get update -qqy
-RUN apt-get install -qqy openjdk-17-jre-headless
+RUN apt-get update -qqy && apt-get install -qqy openjdk-17-jre-headless
 
 ARG fixtureClass
 ARG port

+ 1 - 2
test/fixtures/s3-fixture/sts/Dockerfile

@@ -1,7 +1,6 @@
 FROM ubuntu:20.04
 
-RUN apt-get update -qqy
-RUN apt-get install -qqy openjdk-17-jre-headless
+RUN apt-get update -qqy && apt-get install -qqy openjdk-17-jre-headless
 
 ARG fixtureClass
 ARG port

+ 1 - 2
test/fixtures/url-fixture/Dockerfile

@@ -1,7 +1,6 @@
 FROM ubuntu:20.04
 
-RUN apt-get update -qqy
-RUN apt-get install -qqy openjdk-17-jre-headless
+RUN apt-get update -qqy && apt-get install -qqy openjdk-17-jre-headless
 
 ARG port
 ARG workingDir