Skip to content

Commit

Permalink
Try to build Theia without GitHub token
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
  • Loading branch information
t1m0thyj committed Aug 20, 2024
1 parent 2ae2a63 commit 21abb2f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ jobs:
context: ${{ inputs.path }}
push: ${{ inputs.push }}
platforms: ${{ inputs.qemu && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
secret-envs: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
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

0 comments on commit 21abb2f

Please sign in to comment.