Skip to content

Commit 6887d20

Browse files
committed
Create symlinks in agent image
1 parent b9f6e19 commit 6887d20

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

do

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu -o pipefail
44

55
# This variable is used, but shellcheck can't tell.
66
# shellcheck disable=SC2034
7-
help_download_taskagent="Download task agents via the picard image"
7+
help_download_taskagents="Download task agents via the picard image"
88
download-taskagents() {
99
id=$(docker create circleci/picard:agent)
1010

runner-init/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
FROM busybox:stable-musl as build
22

3-
FROM scratch as temp
4-
53
ARG ARCH=amd64
64

75
COPY ./bin/circleci-agent-${ARCH} /opt/circleci/circleci-agent
6+
RUN ln -s /opt/circleci/circleci-agent /opt/circleci/circleci
7+
8+
FROM scratch as temp
9+
10+
COPY --from=build /opt/circleci/circleci-agent /opt/circleci/circleci-agent
11+
COPY --from=build /opt/circleci/circleci /opt/circleci/circleci
812
COPY --from=build /bin/cp /bin/cp
913

1014
FROM scratch

0 commit comments

Comments
 (0)