-
Notifications
You must be signed in to change notification settings - Fork 2k
Added ccache for alpine build #786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,20 +2,25 @@ FROM alpine:3.7 | |
|
|
||
| ENV NODE_VERSION 10.4.1 | ||
|
|
||
| ARG CCACHE_REPO=https://github.com/LaurentGoderre/nodejs-alpine-ccache | ||
|
|
||
| RUN addgroup -g 1000 node \ | ||
| && adduser -u 1000 -G node -s /bin/sh -D node \ | ||
| && apk add --no-cache \ | ||
| libstdc++ \ | ||
| && apk add --no-cache --virtual .build-deps \ | ||
| binutils-gold \ | ||
| ccache \ | ||
| curl \ | ||
| g++ \ | ||
| gcc \ | ||
| git \ | ||
| gnupg \ | ||
| libgcc \ | ||
| linux-headers \ | ||
| make \ | ||
| python \ | ||
| && git clone $CCACHE_REPO /root/.ccache \ | ||
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong. |
||
| # gpg keys listed at https://github.com/nodejs/node#release-team | ||
| && for key in \ | ||
| 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | ||
|
|
@@ -37,14 +42,27 @@ RUN addgroup -g 1000 node \ | |
| && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ | ||
| && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \ | ||
| && tar -xf "node-v$NODE_VERSION.tar.xz" \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/gcc \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/g++ \ | ||
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong. |
||
| && cd "node-v$NODE_VERSION" \ | ||
| && ./configure \ | ||
| && make -j$(getconf _NPROCESSORS_ONLN) \ | ||
| && make install \ | ||
| && apk del .build-deps \ | ||
| && cd .. \ | ||
| && rm -Rf "node-v$NODE_VERSION" \ | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \ | ||
| && rm /usr/local/bin/gcc /usr/local/bin/g++ \ | ||
| # update the ccache | ||
| && ( \ | ||
| [ ! "$GITHUB_API_TOKEN" ] || ( \ | ||
| cd /root/.ccache \ | ||
| && git add . \ | ||
| && git -c user.name="Node.js GitHub Bot" -c user.email="[email protected]" commit -m "Updated the cache" \ | ||
| && git push "${CCACHE_REPO//github.com/$GITHUB_API_TOKEN:[email protected]}" master > /dev/null 2>&1 || echo "Unable to push the cache update" && exit 1 \ | ||
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong. |
||
| ) \ | ||
| ) \ | ||
| && rm -rf /root/.ccache \ | ||
| && apk del .build-deps | ||
|
|
||
| ENV YARN_VERSION 1.7.0 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,20 +2,25 @@ FROM alpine:3.4 | |
|
|
||
| ENV NODE_VERSION 6.14.3 | ||
|
|
||
| ARG CCACHE_REPO=https://github.com/LaurentGoderre/nodejs-alpine-ccache | ||
|
|
||
| RUN addgroup -g 1000 node \ | ||
| && adduser -u 1000 -G node -s /bin/sh -D node \ | ||
| && apk add --no-cache \ | ||
| libstdc++ \ | ||
| && apk add --no-cache --virtual .build-deps \ | ||
| binutils-gold \ | ||
| ccache \ | ||
| curl \ | ||
| g++ \ | ||
| gcc \ | ||
| git \ | ||
| gnupg \ | ||
| libgcc \ | ||
| linux-headers \ | ||
| make \ | ||
| python \ | ||
| && git clone $CCACHE_REPO /root/.ccache \ | ||
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong. |
||
| # gpg keys listed at https://github.com/nodejs/node#release-team | ||
| && for key in \ | ||
| 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | ||
|
|
@@ -37,14 +42,27 @@ RUN addgroup -g 1000 node \ | |
| && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ | ||
| && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \ | ||
| && tar -xf "node-v$NODE_VERSION.tar.xz" \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/gcc \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/g++ \ | ||
| && cd "node-v$NODE_VERSION" \ | ||
| && ./configure \ | ||
| && make -j$(getconf _NPROCESSORS_ONLN) \ | ||
| && make install \ | ||
| && apk del .build-deps \ | ||
| && cd .. \ | ||
| && rm -Rf "node-v$NODE_VERSION" \ | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \ | ||
| && rm /usr/local/bin/gcc /usr/local/bin/g++ \ | ||
| # update the ccache | ||
| && ( \ | ||
| [ ! "$GITHUB_API_TOKEN" ] || ( \ | ||
| cd /root/.ccache \ | ||
| && git add . \ | ||
| && git -c user.name="Node.js GitHub Bot" -c user.email="[email protected]" commit -m "Updated the cache" \ | ||
| && git push "${CCACHE_REPO//github.com/$GITHUB_API_TOKEN:[email protected]}" master > /dev/null 2>&1 || echo "Unable to push the cache update" && exit 1 \ | ||
| ) \ | ||
| ) \ | ||
| && rm -rf /root/.ccache \ | ||
| && apk del .build-deps | ||
|
|
||
| ENV YARN_VERSION 1.6.0 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,20 +2,25 @@ FROM alpine:3.6 | |
|
|
||
| ENV NODE_VERSION 8.11.3 | ||
|
|
||
| ARG CCACHE_REPO=https://github.com/LaurentGoderre/nodejs-alpine-ccache | ||
|
|
||
| RUN addgroup -g 1000 node \ | ||
| && adduser -u 1000 -G node -s /bin/sh -D node \ | ||
| && apk add --no-cache \ | ||
| libstdc++ \ | ||
| && apk add --no-cache --virtual .build-deps \ | ||
| binutils-gold \ | ||
| ccache \ | ||
| curl \ | ||
| g++ \ | ||
| gcc \ | ||
| git \ | ||
| gnupg \ | ||
| libgcc \ | ||
| linux-headers \ | ||
| make \ | ||
| python \ | ||
| && git clone $CCACHE_REPO /root/.ccache \ | ||
| # gpg keys listed at https://github.com/nodejs/node#release-team | ||
| && for key in \ | ||
| 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | ||
|
|
@@ -37,14 +42,27 @@ RUN addgroup -g 1000 node \ | |
| && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ | ||
| && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \ | ||
| && tar -xf "node-v$NODE_VERSION.tar.xz" \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/gcc \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/g++ \ | ||
| && cd "node-v$NODE_VERSION" \ | ||
| && ./configure \ | ||
| && make -j$(getconf _NPROCESSORS_ONLN) \ | ||
| && make install \ | ||
| && apk del .build-deps \ | ||
| && cd .. \ | ||
| && rm -Rf "node-v$NODE_VERSION" \ | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \ | ||
| && rm /usr/local/bin/gcc /usr/local/bin/g++ \ | ||
| # update the ccache | ||
| && ( \ | ||
| [ ! "$GITHUB_API_TOKEN" ] || ( \ | ||
| cd /root/.ccache \ | ||
| && git add . \ | ||
| && git -c user.name="Node.js GitHub Bot" -c user.email="[email protected]" commit -m "Updated the cache" \ | ||
| && git push "${CCACHE_REPO//github.com/$GITHUB_API_TOKEN:[email protected]}" master > /dev/null 2>&1 || echo "Unable to push the cache update" && exit 1 \ | ||
| ) \ | ||
| ) \ | ||
| && rm -rf /root/.ccache \ | ||
| && apk del .build-deps | ||
|
|
||
| ENV YARN_VERSION 1.6.0 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,20 +2,25 @@ FROM alpine:3.6 | |
|
|
||
| ENV NODE_VERSION 9.11.2 | ||
|
|
||
| ARG CCACHE_REPO=https://github.com/LaurentGoderre/nodejs-alpine-ccache | ||
|
|
||
| RUN addgroup -g 1000 node \ | ||
| && adduser -u 1000 -G node -s /bin/sh -D node \ | ||
| && apk add --no-cache \ | ||
| libstdc++ \ | ||
| && apk add --no-cache --virtual .build-deps \ | ||
| binutils-gold \ | ||
| ccache \ | ||
| curl \ | ||
| g++ \ | ||
| gcc \ | ||
| git \ | ||
| gnupg \ | ||
| libgcc \ | ||
| linux-headers \ | ||
| make \ | ||
| python \ | ||
| && git clone $CCACHE_REPO /root/.ccache \ | ||
| # gpg keys listed at https://github.com/nodejs/node#release-team | ||
| && for key in \ | ||
| 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | ||
|
|
@@ -37,14 +42,27 @@ RUN addgroup -g 1000 node \ | |
| && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ | ||
| && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \ | ||
| && tar -xf "node-v$NODE_VERSION.tar.xz" \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/gcc \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/g++ \ | ||
| && cd "node-v$NODE_VERSION" \ | ||
| && ./configure \ | ||
| && make -j$(getconf _NPROCESSORS_ONLN) \ | ||
| && make install \ | ||
| && apk del .build-deps \ | ||
| && cd .. \ | ||
| && rm -Rf "node-v$NODE_VERSION" \ | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \ | ||
| && rm /usr/local/bin/gcc /usr/local/bin/g++ \ | ||
| # update the ccache | ||
| && ( \ | ||
| [ ! "$GITHUB_API_TOKEN" ] || ( \ | ||
| cd /root/.ccache \ | ||
| && git add . \ | ||
| && git -c user.name="Node.js GitHub Bot" -c user.email="[email protected]" commit -m "Updated the cache" \ | ||
| && git push "${CCACHE_REPO//github.com/$GITHUB_API_TOKEN:[email protected]}" master > /dev/null 2>&1 || echo "Unable to push the cache update" && exit 1 \ | ||
| ) \ | ||
| ) \ | ||
| && rm -rf /root/.ccache \ | ||
| && apk del .build-deps | ||
|
|
||
| ENV YARN_VERSION 1.5.1 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,20 +2,25 @@ FROM alpine:0.0 | |
|
|
||
| ENV NODE_VERSION 0.0.0 | ||
|
|
||
| ARG CCACHE_REPO=https://github.com/LaurentGoderre/nodejs-alpine-ccache | ||
|
|
||
| RUN addgroup -g 1000 node \ | ||
| && adduser -u 1000 -G node -s /bin/sh -D node \ | ||
| && apk add --no-cache \ | ||
| libstdc++ \ | ||
| && apk add --no-cache --virtual .build-deps \ | ||
| binutils-gold \ | ||
| ccache \ | ||
| curl \ | ||
| g++ \ | ||
| gcc \ | ||
| git \ | ||
| gnupg \ | ||
| libgcc \ | ||
| linux-headers \ | ||
| make \ | ||
| python \ | ||
| && git clone $CCACHE_REPO /root/.ccache \ | ||
| # gpg keys listed at https://github.com/nodejs/node#release-team | ||
| && for key in \ | ||
| "${NODE_KEYS[@]}" | ||
|
|
@@ -29,14 +34,27 @@ RUN addgroup -g 1000 node \ | |
| && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ | ||
| && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \ | ||
| && tar -xf "node-v$NODE_VERSION.tar.xz" \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/gcc \ | ||
| && ln -s /usr/bin/ccache /usr/local/bin/g++ \ | ||
| && cd "node-v$NODE_VERSION" \ | ||
| && ./configure \ | ||
| && make -j$(getconf _NPROCESSORS_ONLN) \ | ||
| && make install \ | ||
| && apk del .build-deps \ | ||
| && cd .. \ | ||
| && rm -Rf "node-v$NODE_VERSION" \ | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt | ||
| && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \ | ||
| && rm /usr/local/bin/gcc /usr/local/bin/g++ \ | ||
| # update the ccache | ||
| && ( \ | ||
| [ ! "$GITHUB_API_TOKEN" ] || ( \ | ||
| cd /root/.ccache \ | ||
| && git add . \ | ||
| && git -c user.name="Node.js GitHub Bot" -c user.email="[email protected]" commit -m "Updated the cache" \ | ||
| && git push "${CCACHE_REPO//github.com/$GITHUB_API_TOKEN:[email protected]}" master > /dev/null 2>&1 || echo "Unable to push the cache update" && exit 1 \ | ||
| ) \ | ||
| ) \ | ||
| && rm -rf /root/.ccache \ | ||
| && apk del .build-deps | ||
|
|
||
| ENV YARN_VERSION 0.0.0 | ||
|
|
||
|
|
||
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.