Skip to content

Commit 5aa30d1

Browse files
committed
feat: add turbo globally with fix for 1.5.6+
1 parent 238e700 commit 5aa30d1

File tree

8 files changed

+48
-8
lines changed

8 files changed

+48
-8
lines changed

dist/18-alpine/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ LABEL "org.opencontainers.image.ref.name"="18-alpine"
1616
LABEL "org.opencontainers.image.title"="node-18-alpine"
1717
LABEL "org.opencontainers.image.description"="node-18-alpine"
1818

19+
WORKDIR /app
20+
1921
RUN set -eux; \
20-
apk add \
22+
apk add --no-cache \
2123
curl \
2224
git \
25+
# For vercel/turbo
26+
libc6-compat \
2327
&& /bin/ash -c 'set -ex && \
2428
ARCH=`uname -m` && \
2529
if [ "$ARCH" == "x86_64" ]; then \
@@ -32,4 +36,6 @@ RUN set -eux; \
3236
echo "unknown arch" && \
3337
curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
3438
fi' \
35-
&& chmod +x /bin/pnpm
39+
&& chmod +x /bin/pnpm \
40+
# https://github.com/vercel/turbo/issues/2198
41+
&& yarn global add turbo

dist/18-alpine/goss.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@ command:
1313
stdout:
1414
- "7."
1515
exit-status: 0
16+
"turbo --version":
17+
stdout:
18+
- "1."
19+
exit-status: 0
1620

1721
...

dist/19-alpine/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ LABEL "org.opencontainers.image.ref.name"="19-alpine"
1616
LABEL "org.opencontainers.image.title"="node-19-alpine"
1717
LABEL "org.opencontainers.image.description"="node-19-alpine"
1818

19+
WORKDIR /app
20+
1921
RUN set -eux; \
20-
apk add \
22+
apk add --no-cache \
2123
curl \
2224
git \
25+
# For vercel/turbo
26+
libc6-compat \
2327
&& /bin/ash -c 'set -ex && \
2428
ARCH=`uname -m` && \
2529
if [ "$ARCH" == "x86_64" ]; then \
@@ -32,4 +36,6 @@ RUN set -eux; \
3236
echo "unknown arch" && \
3337
curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
3438
fi' \
35-
&& chmod +x /bin/pnpm
39+
&& chmod +x /bin/pnpm \
40+
# https://github.com/vercel/turbo/issues/2198
41+
&& yarn global add turbo

dist/19-alpine/goss.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@ command:
1313
stdout:
1414
- "7."
1515
exit-status: 0
16+
"turbo --version":
17+
stdout:
18+
- "1."
19+
exit-status: 0
1620

1721
...

dist/lts-alpine/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ LABEL "org.opencontainers.image.ref.name"="lts-alpine"
1616
LABEL "org.opencontainers.image.title"="node-lts-alpine"
1717
LABEL "org.opencontainers.image.description"="node-lts-alpine"
1818

19+
WORKDIR /app
20+
1921
RUN set -eux; \
20-
apk add \
22+
apk add --no-cache \
2123
curl \
2224
git \
25+
# For vercel/turbo
26+
libc6-compat \
2327
&& /bin/ash -c 'set -ex && \
2428
ARCH=`uname -m` && \
2529
if [ "$ARCH" == "x86_64" ]; then \
@@ -32,4 +36,6 @@ RUN set -eux; \
3236
echo "unknown arch" && \
3337
curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
3438
fi' \
35-
&& chmod +x /bin/pnpm
39+
&& chmod +x /bin/pnpm \
40+
# https://github.com/vercel/turbo/issues/2198
41+
&& yarn global add turbo

dist/lts-alpine/goss.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@ command:
1313
stdout:
1414
- "7."
1515
exit-status: 0
16+
"turbo --version":
17+
stdout:
18+
- "1."
19+
exit-status: 0
1620

1721
...

src/Dockerfiles/all/Dockerfile.j2

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ LABEL "org.opencontainers.image.ref.name"="{{ node_version }}-{{ os_name }}"
1616
LABEL "org.opencontainers.image.title"="node-{{ node_version }}-{{ os_name }}"
1717
LABEL "org.opencontainers.image.description"="node-{{ node_version }}-{{ os_name }}"
1818

19+
WORKDIR /app
20+
1921
RUN set -eux; \
20-
apk add \
22+
apk add --no-cache \
2123
curl \
2224
git \
25+
# For vercel/turbo
26+
libc6-compat \
2327
&& /bin/ash -c 'set -ex && \
2428
ARCH=`uname -m` && \
2529
if [ "$ARCH" == "x86_64" ]; then \
@@ -32,4 +36,6 @@ RUN set -eux; \
3236
echo "unknown arch" && \
3337
curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
3438
fi' \
35-
&& chmod +x /bin/pnpm
39+
&& chmod +x /bin/pnpm \
40+
# https://github.com/vercel/turbo/issues/2198
41+
&& yarn global add turbo

src/Dockerfiles/all/goss.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@ command:
1313
stdout:
1414
- "7."
1515
exit-status: 0
16+
"turbo --version":
17+
stdout:
18+
- "1."
19+
exit-status: 0
1620

1721
...

0 commit comments

Comments
 (0)