Skip to content
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

Fix 429 rate limit error in weekly Theia build #14

Merged
merged 2 commits into from
Aug 20, 2024
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
5 changes: 2 additions & 3 deletions .github/workflows/docker-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ jobs:
id: build
uses: docker/build-push-action@v5
with:
build-args: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
${{ inputs.build-args }}
build-args: ${{ inputs.build-args }}
context: ${{ inputs.path }}
push: ${{ inputs.push }}
platforms: ${{ inputs.qemu && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
secrets: github_token=${{ secrets.GITHUB_TOKEN }}
tags: ${{ inputs.tags || env.DEFAULT_TAGS }}

- name: Image Digest
Expand Down
3 changes: 1 addition & 2 deletions ze/theia-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ WORKDIR /home/theia
ADD buildPackageJson.js ./buildPackageJson.js
ARG THEIA_VERSION=latest
RUN echo "$(node buildPackageJson.js ${THEIA_VERSION})" > package.json
ARG GITHUB_TOKEN
RUN yarn global add node-gyp && \
yarn --pure-lockfile && \
NODE_OPTIONS="--max_old_space_size=4096" yarn theia build && \
yarn theia download:plugins && \
yarn theia download:plugins --rate-limit=15 --parallel=false && \
yarn --production && \
yarn autoclean --init && \
echo *.ts >> .yarnclean && \
Expand Down
2 changes: 0 additions & 2 deletions ze/theia-slim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Based on https://github.com/theia-ide/theia-apps/tree/master/theia-docker

To build the container, run `docker build .`

**Note:** You may need to provide a GITHUB_TOKEN as a build argument with `repo` access

The following runs Theia IDE on http://localhost:3000 with the current directory as a workspace. The option of `--init` is added to fix the [defunct process problem](https://github.com/theia-ide/theia-apps/issues/195).

```bash
Expand Down