Skip to content

Commit

Permalink
integration: use busybox for dc fixtures to speed them up / reduce fl…
Browse files Browse the repository at this point in the history
…akes (#6342)

Signed-off-by: Nick Santos <nick.santos@docker.com>
  • Loading branch information
nicks committed Mar 19, 2024
1 parent 3edb967 commit 6d74352
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
9 changes: 4 additions & 5 deletions integration/onedc/Dockerfile
@@ -1,6 +1,5 @@
FROM golang:1.17-alpine
RUN apk add curl
WORKDIR /go/src/github.com/tilt-dev/integration/onedc
FROM alpine
RUN apk add busybox-extras curl
WORKDIR /app
ADD . .
RUN go install github.com/tilt-dev/integration/onedc
ENTRYPOINT /go/bin/onedc
ENTRYPOINT httpd -f -p 8000
1 change: 1 addition & 0 deletions integration/onedc/index.html
@@ -0,0 +1 @@
🍄 One-Up! 🍄
17 changes: 0 additions & 17 deletions integration/onedc/main.go

This file was deleted.

2 changes: 1 addition & 1 deletion integration/onedc_test.go
Expand Up @@ -32,7 +32,7 @@ func TestOneDockerCompose(t *testing.T) {

f.CurlUntil(ctx, "onedc-web", "localhost:8000", "🍄 One-Up! 🍄")

f.ReplaceContents("main.go", "One-Up", "Two-Up")
f.ReplaceContents("index.html", "One-Up", "Two-Up")

ctx, cancel = context.WithTimeout(f.ctx, time.Minute)
defer cancel()
Expand Down

0 comments on commit 6d74352

Please sign in to comment.