Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit a958067

Browse files
authored
Merge pull request #1535 from docker/revert-1533-e2e-test-improvements
Revert "E2e test improvements"
2 parents 9abd990 + 8e8635f commit a958067

File tree

15 files changed

+38
-26
lines changed

15 files changed

+38
-26
lines changed

aci/e2e/aci-demo/web/Dockerfile

+16-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,24 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
# BUILD
15-
FROM golang:alpine AS build
15+
FROM ubuntu:latest
16+
17+
# Update and upgrade repo
18+
RUN apt-get update -y -q && apt-get upgrade -y -q
19+
20+
# Install tools we might need
21+
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -q curl build-essential ca-certificates git
22+
23+
# Download Go 1.2.2 and install it to /usr/local/go
24+
RUN curl -s https://storage.googleapis.com/golang/go1.2.2.linux-amd64.tar.gz| tar -v -C /usr/local -xz
25+
26+
# Let's people find our Go binaries
27+
ENV PATH $PATH:/usr/local/go/bin
28+
1629
COPY dispatcher.go .
17-
RUN mkdir -p /out && go build -o /out/dispatcher dispatcher.go
30+
RUN go build dispatcher.go
1831

19-
FROM alpine AS run
2032
EXPOSE 80
2133
CMD ["/dispatcher"]
34+
2235
COPY static /static/
23-
COPY --from=build /out/dispatcher /dispatcher

local/e2e/compose/fixtures/attach-restart/compose.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
services:
22
simple:
3-
image: alpine
3+
image: busybox:1.31.0-uclibc
44
command: sh -c "sleep 5"
55
another:
6-
image: alpine
6+
image: busybox:1.31.0-uclibc
77
command: sh -c "sleep 0.1 && echo world && /bin/false"
88
deploy:
99
restart_policy:

local/e2e/compose/fixtures/build-test/nginx-build/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nginx:alpine
15+
FROM nginx
1616

1717
ARG FOO
1818
LABEL FOO=$FOO

local/e2e/compose/fixtures/build-test/nginx-build2/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nginx:alpine
15+
FROM nginx
1616

1717
COPY static2 /usr/share/nginx/html
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
should_fail:
3-
image: alpine
3+
image: busybox:1.27.2
44
command: ls /does_not_exist
55
sleep: # will be killed
6-
image: alpine
6+
image: busybox:1.27.2
77
command: ping localhost
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
services:
22
service:
3-
image: alpine
3+
image: busybox
44
command: top
55
ipc: "service:shareable"
66
container:
7-
image: alpine
7+
image: busybox
88
command: top
99
ipc: "container:ipc_mode_container"
1010
shareable:
11-
image: alpine
11+
image: busybox
1212
command: top
1313
ipc: shareable
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
ping:
3-
image: alpine
3+
image: busybox:1.27.2
44
command: ping localhost -c 1
55
hello:
6-
image: alpine
6+
image: busybox:1.31.0-uclibc
77
command: echo hello

local/e2e/compose/fixtures/network-test/compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
mydb:
3-
image: mariadb
3+
image: mysql
44
network_mode: "service:db"
55
environment:
66
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
services:
22
restart:
3-
image: alpine
3+
image: busybox
44
command: ash -c "if [[ -f /tmp/restart.lock ]] ; then sleep infinity; else touch /tmp/restart.lock; fi"

local/e2e/compose/fixtures/run-test/compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ services:
88
networks:
99
- backnet
1010
db:
11-
image: nginx:alpine
11+
image: nginx
1212
networks:
1313
- backnet
1414
volumes:
1515
- data:/test
1616
front:
17-
image: nginx:alpine
17+
image: nginx
1818
networks:
1919
- frontnet
2020
networks:

local/e2e/compose/fixtures/simple-build-test/nginx-build/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nginx:alpine
15+
FROM nginx
1616

1717
ARG FOO
1818
LABEL FOO=$FOO
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
simple:
3-
image: alpine
3+
image: busybox:1.27.2
44
command: top
55
another:
6-
image: alpine
6+
image: busybox:1.31.0-uclibc
77
command: top
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
22
simple:
3-
image: nginx:alpine
3+
image: nginx
44
another:
5-
image: nginx:alpine
5+
image: nginx

local/e2e/compose/fixtures/volume-test/nginx-build/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM nginx:alpine
15+
FROM nginx

local/e2e/compose/ipc_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestIPC(t *testing.T) {
3232
const projectName = "ipc_e2e"
3333
var cid string
3434
t.Run("create ipc mode container", func(t *testing.T) {
35-
res := c.RunDockerCmd("run", "-d", "--rm", "--ipc=shareable", "--name", "ipc_mode_container", "alpine", "top")
35+
res := c.RunDockerCmd("run", "-d", "--rm", "--ipc=shareable", "--name", "ipc_mode_container", "busybox", "top")
3636
cid = strings.Trim(res.Stdout(), "\n")
3737
})
3838

0 commit comments

Comments
 (0)