Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# syntax=docker/dockerfile:1.3-labs

FROM tonistiigi/binfmt:qemu-v6.2.0 AS binfmt
FROM moby/buildkit:v0.10.6 AS buildkit
FROM public.ecr.aws/docker/library/registry:2.8.1 AS registry
FROM rancher/klipper-lb:v0.3.5 AS klipper-lb
FROM ghcr.io/acorn-io/images-mirror/tonistiigi/binfmt:qemu-v6.2.0 AS binfmt
FROM ghcr.io/acorn-io/images-mirror/moby/buildkit:v0.10.6 AS buildkit
FROM ghcr.io/acorn-io/images-mirror/registry:2.8.1 AS registry
FROM ghcr.io/acorn-io/images-mirror/rancher/klipper-lb:v0.3.5 AS klipper-lb

FROM public.ecr.aws/docker/library/golang:1.20-alpine AS helper
FROM ghcr.io/acorn-io/images-mirror/golang:1.20-alpine AS helper
WORKDIR /usr/src
RUN apk -U add curl
RUN curl -sfL https://github.com/loft-sh/devspace/archive/refs/tags/v5.18.5.tar.gz | tar xzf - --strip-components=1
RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 go build -o /usr/local/bin/acorn-helper -ldflags "-s -w" ./helper

FROM public.ecr.aws/docker/library/golang:1.20 AS build
FROM ghcr.io/acorn-io/images-mirror/golang:1.20 AS build
COPY / /src
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build make build

FROM public.ecr.aws/docker/library/nginx:1.23.2-alpine AS base
FROM ghcr.io/acorn-io/images-mirror/nginx:1.23.2-alpine AS base
RUN apk add --no-cache ca-certificates iptables ip6tables fuse3 git openssh pigz xz \
&& ln -s fusermount3 /usr/bin/fusermount
RUN adduser -D acorn
Expand Down
4 changes: 2 additions & 2 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:19-buster as src
FROM ghcr.io/acorn-io/images-mirror/node:19-buster as src
COPY / /usr/src
WORKDIR /usr/src
RUN yarn install

FROM src as bin
RUN yarn build

FROM nginx as static
FROM ghcr.io/acorn-io/images-mirror/nginx:latest as static
COPY --from=bin /usr/src/build /usr/share/nginx/html

FROM src as dynamic
Expand Down
2 changes: 1 addition & 1 deletion integration/build/testdata/build-default/Acornfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ args: {
profiles: build: include: bool | *true

if args.include {
containers: default: image: "public.ecr.aws/docker/library/busybox:latest"
containers: default: image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
}
4 changes: 2 additions & 2 deletions integration/build/testdata/contextdir/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM public.ecr.aws/docker/library/busybox:latest AS not-default
FROM ghcr.io/acorn-io/images-mirror/busybox:latest AS not-default

FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
COPY this-will-fail /
2 changes: 1 addition & 1 deletion integration/build/testdata/dev/Acornfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
containers: {
if args.dev {
default: image: "public.ecr.aws/docker/library/busybox:latest"
default: image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
}
}
2 changes: 1 addition & 1 deletion integration/build/testdata/jobs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
2 changes: 1 addition & 1 deletion integration/build/testdata/jobs/Dockerfile.sidecar
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
CMD ["sidecar"]
2 changes: 1 addition & 1 deletion integration/build/testdata/sidecar/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
2 changes: 1 addition & 1 deletion integration/build/testdata/sidecar/Dockerfile.sidecar
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
CMD ["sidecar"]
2 changes: 1 addition & 1 deletion integration/build/testdata/similar/one/Acornfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file must match its sibling except for the value of index.txt
containers: {
web: {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
files: {
"/foo/index.txt": "1"
}
Expand Down
2 changes: 1 addition & 1 deletion integration/build/testdata/similar/two/Acornfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file must match its sibling except for the value of index.txt
containers: {
web: {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
files: {
"/foo/index.txt": "2"
}
Expand Down
4 changes: 2 additions & 2 deletions integration/build/testdata/simple-two/Acornfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ containers: {
build: images.itwo.build
}
three: {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
}
}

Expand All @@ -21,6 +21,6 @@ images: {
}
}
three: {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
}
}
2 changes: 1 addition & 1 deletion integration/build/testdata/simple-two/one/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
COPY data.txt /
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
COPY data.txt /
2 changes: 1 addition & 1 deletion integration/build/testdata/simple/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
4 changes: 2 additions & 2 deletions integration/build/testdata/target/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM public.ecr.aws/docker/library/busybox:latest AS not-default
FROM ghcr.io/acorn-io/images-mirror/busybox:latest AS not-default

FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
COPY this-will-fail /
2 changes: 1 addition & 1 deletion integration/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ func TestFriendlyNameInContainer(t *testing.T) {

_, img, _ := strings.Cut(image.ImageData.Containers["default"].Image, "@")
assert.Len(t, cs, 1)
assert.Equal(t, "public.ecr.aws/docker/library/nginx:latest", cs[0].Spec.Image)
assert.Equal(t, "ghcr.io/acorn-io/images-mirror/nginx:latest", cs[0].Spec.Image)
assert.True(t, strings.HasSuffix(cs[0].Status.ImageID, img))
}
10 changes: 5 additions & 5 deletions integration/client/testdata/dependson/Acornfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
containers: {
one: {
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
ports: "80/http"
dependsOn: ["job1", "job2"]
}
two: {
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
ports: "80/http"
dependsOn: "one"
}
three: {
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
ports: "80/http"
dependsOn: "two"
}
}

jobs: {
job1: {
image:"public.ecr.aws/docker/library/busybox:latest"
image:"ghcr.io/acorn-io/images-mirror/busybox:latest"
command: "/bin/true"
dependsOn: "job2"
}
job2: {
image:"public.ecr.aws/docker/library/busybox:latest"
image:"ghcr.io/acorn-io/images-mirror/busybox:latest"
command: "/bin/true"
}
}
2 changes: 1 addition & 1 deletion integration/client/testdata/nginx/Acornfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
containers: default: image: "public.ecr.aws/docker/library/nginx:latest"
containers: default: image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
containers: default: dirs: "/usr/share/www": "vol"
2 changes: 1 addition & 1 deletion integration/client/testdata/nginx2/Acornfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
containers: nginx2: image: "public.ecr.aws/docker/library/nginx:latest"
containers: nginx2: image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
containers: nginx2: dirs: "/usr/share/www": "vol"
4 changes: 2 additions & 2 deletions integration/client/testdata/sidecar/Acornfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
containers: {
web: {
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
files: "/tmp/file": "This is the web container"

sidecars: sidecar: {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
command: ["/bin/sh", "-c", "sleep 9999"]
files: "/tmp/file": "This is the sidecar"
}
Expand Down
4 changes: 2 additions & 2 deletions integration/dev/dev_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const (
containers: default: build: {}
`
dockerfile1 = `
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
CMD ["echo", "hi"]`
dockerfile2 = `
FROM public.ecr.aws/docker/library/busybox:latest
FROM ghcr.io/acorn-io/images-mirror/busybox:latest
CMD ["echo", "bye"]`
)

Expand Down
8 changes: 4 additions & 4 deletions integration/log/testdata/Acornfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
containers: {
"cont1-1": {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
command: [
"sh", "-c", "echo -e \"line 1-1\nline 1-2\"; sleep 9999"
]
sidecars: "cont2-1": {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
command: [
"sh", "-c", "echo -e \"line 1-3\nline 1-4\"; sleep 9999"
]
}
}
"cont1-2": {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
command: [
"sh", "-c", "echo -e \"line 2-1\nline 2-2\"; sleep 9999"
]
sidecars: "cont2-2": {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
command: [
"sh", "-c", "echo -e \"line 2-3\nline 2-4\"; sleep 9999"
]
Expand Down
2 changes: 1 addition & 1 deletion integration/run/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ func TestImageNameAnnotation(t *testing.T) {
}

_, digest, _ := strings.Cut(pod.Spec.Containers[0].Image, "sha256:")
return mapping["sha256:"+digest] == "public.ecr.aws/docker/library/nginx:latest"
return mapping["sha256:"+digest] == "ghcr.io/acorn-io/images-mirror/nginx:latest"
})
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/run/testdata/cluster-volume-class/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/run/testdata/computeclass/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/run/testdata/named/Acornfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
containers: default: image: "public.ecr.aws/docker/library/nginx:latest"
containers: default: image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
2 changes: 1 addition & 1 deletion integration/run/testdata/no-class-with-values/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/run/testdata/params/Acornfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ containers: {
env: {
arg: "\(args.someInt)"
}
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
}
}
2 changes: 1 addition & 1 deletion integration/run/testdata/simple/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/run/testdata/volume-bad-class/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/run/testdata/volume-custom-class/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/run/testdata/volume/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM public.ecr.aws/docker/library/nginx:latest
FROM ghcr.io/acorn-io/images-mirror/nginx:latest
2 changes: 1 addition & 1 deletion integration/secrets/testdata/encryption/Acornfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
args: encdata: ""

containers: app: {
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
env: secretVal: "secret://test/key"
}

Expand Down
2 changes: 1 addition & 1 deletion integration/secrets/testdata/generated-json/Acornfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs: {
env: {
PASS: "secret://zzz/password"
}
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
files: "/run.sh": """
#!/bin/sh
cat << EOF > /run/secrets/output
Expand Down
2 changes: 1 addition & 1 deletion integration/secrets/testdata/generated/Acornfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs: {
env: {
PASS: "secret://zzz/password"
}
image: "public.ecr.aws/docker/library/busybox:latest"
image: "ghcr.io/acorn-io/images-mirror/busybox:latest"
cmd: ["sh", "-c", "echo -n $PASS > /run/secrets/output"]
}
cronpass: {schedule: "* * * * * "} & pass
Expand Down
2 changes: 1 addition & 1 deletion integration/secrets/testdata/issue-552/Acornfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
containers: {
"icinga2-master": {
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
dirs: {
"/data/var": "volume://icinga-data"
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/appdefinition/appdefinition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ containers: {
build: {}
}
right: {
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
dirs: "/var/tmp": "./foo/bar"
}
}
Expand Down Expand Up @@ -223,9 +223,9 @@ acorns: {
assert.Equal(t, "Dockerfile", buildSpec.Containers["file"].Sidecars["left"].Build.Dockerfile)
assert.Equal(t, ".", buildSpec.Containers["file"].Sidecars["left"].Build.Context)

assert.Equal(t, "public.ecr.aws/docker/library/nginx:latest", buildSpec.Containers["file"].Sidecars["right"].Image)
assert.Equal(t, "ghcr.io/acorn-io/images-mirror/nginx:latest", buildSpec.Containers["file"].Sidecars["right"].Image)
assert.Equal(t, "Dockerfile", buildSpec.Containers["file"].Sidecars["right"].Build.Dockerfile)
assert.Equal(t, "public.ecr.aws/docker/library/nginx:latest", buildSpec.Containers["file"].Sidecars["right"].Build.BaseImage)
assert.Equal(t, "ghcr.io/acorn-io/images-mirror/nginx:latest", buildSpec.Containers["file"].Sidecars["right"].Build.BaseImage)
assert.Equal(t, ".", buildSpec.Containers["file"].Sidecars["right"].Build.Context)
assert.Equal(t, "./foo/bar", buildSpec.Containers["file"].Sidecars["right"].Build.ContextDirs["/var/tmp"])

Expand Down
2 changes: 1 addition & 1 deletion pkg/appdefinition/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ profiles: {

containers: {
web: {
image: "public.ecr.aws/docker/library/nginx:latest"
image: "ghcr.io/acorn-io/images-mirror/nginx:latest"
scale: args.replicas
}
}`)
Expand Down