mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* [dev-image] upgrade terraform and gcloud * update leeway version and use new cache bucket * update image tag * use oidc * fix bob * Add code web extension as package * gcr token refresh * fluentbit use service account * Add xterm web ide as package * add ide configmap patch * fix ide first page 502 * remove secret manager * fix monitoring * fix integration and delete preview * cleanup * use previewctl:install * change folder * cleanup * change leeway cache bucket for main branch * cleanup * fix * hot-deploy
34 lines
1.5 KiB
Docker
34 lines
1.5 KiB
Docker
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
|
|
# Licensed under the GNU Affero General Public License (AGPL).
|
|
# See License.AGPL.txt in the project root for license information.
|
|
FROM node:18 as builder
|
|
|
|
ARG CODE_EXTENSION_COMMIT
|
|
|
|
RUN apt update -y \
|
|
&& apt install jq --no-install-recommends -y
|
|
|
|
RUN mkdir /gitpod-code-web \
|
|
&& cd /gitpod-code-web \
|
|
&& git init \
|
|
&& git remote add origin https://github.com/gitpod-io/gitpod-code \
|
|
&& git fetch origin $CODE_EXTENSION_COMMIT --depth=1 \
|
|
&& git reset --hard FETCH_HEAD
|
|
WORKDIR /gitpod-code-web
|
|
RUN yarn --frozen-lockfile --network-timeout 180000
|
|
|
|
# update package.json
|
|
RUN setSegmentKey="setpath([\"segmentKey\"]; \"untrusted-dummy-key\")" && \
|
|
jqCommands="${setSegmentKey}" && \
|
|
cat package.json | jq "${jqCommands}" > package.json.tmp && \
|
|
mv package.json.tmp package.json
|
|
RUN yarn build:gitpod-web && yarn --cwd gitpod-web/ inject-commit-hash
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder --chown=33333:33333 /gitpod-code-web/gitpod-web/out /ide/extensions/gitpod-web/out/
|
|
COPY --from=builder --chown=33333:33333 /gitpod-code-web/gitpod-web/public /ide/extensions/gitpod-web/public/
|
|
COPY --from=builder --chown=33333:33333 /gitpod-code-web/gitpod-web/resources /ide/extensions/gitpod-web/resources/
|
|
COPY --from=builder --chown=33333:33333 /gitpod-code-web/gitpod-web/package.json /gitpod-code-web/gitpod-web/package.nls.json /gitpod-code-web/gitpod-web/README.md /gitpod-code-web/gitpod-web/LICENSE.txt /ide/extensions/gitpod-web/
|