diff --git a/deploy/docker/Dockerfile b/deploy/docker/Dockerfile index 1916d0d68..086b5f680 100644 --- a/deploy/docker/Dockerfile +++ b/deploy/docker/Dockerfile @@ -18,24 +18,24 @@ RUN apt-get update \ && apt-get install -y nodejs \ && apt-get clean \ && corepack enable \ - && corepack prepare yarn@stable --activate + && corepack prepare yarn@4.9.1 --activate ARG OPENVSX_VERSION ENV VERSION=$OPENVSX_VERSION -RUN git clone --branch ${VERSION} --depth 1 https://github.com/eclipse/openvsx.git /workdir +RUN git clone --branch ${VERSION} --depth 1 https://github.com/eclipse-openvsx/openvsx.git /workdir COPY ./configuration /workdir/configuration -RUN /usr/bin/yarn --cwd webui \ - && /usr/bin/yarn --cwd webui build \ - && /usr/bin/yarn --cwd webui build:default - +RUN cd webui \ + && yarn install --immutable \ + && yarn build \ + && yarn build:default # Main image derived from openvsx-server -FROM ghcr.io/eclipse/openvsx-server:${OPENVSX_VERSION} +FROM ghcr.io/eclipse-openvsx/openvsx-server:${OPENVSX_VERSION} ARG OPENVSX_VERSION COPY --from=builder --chown=openvsx:openvsx /workdir/webui/static/ BOOT-INF/classes/static/ COPY --from=builder --chown=openvsx:openvsx /workdir/configuration/application.yml config/ -RUN sed -i "s//$OPENVSX_VERSION/g" config/application.yml \ No newline at end of file +RUN sed -i "s//$OPENVSX_VERSION/g" config/application.yml diff --git a/deploy/docker/build.sh b/deploy/docker/build.sh index 50de75c09..28a2854bb 100644 --- a/deploy/docker/build.sh +++ b/deploy/docker/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -OPENVSX_VERSION=$(curl -sSL https://api.github.com/repos/eclipse/openvsx/releases/latest | jq -r ".tag_name") +OPENVSX_VERSION=$(curl -sSL https://api.github.com/repos/eclipse-openvsx/openvsx/releases/latest | jq -r ".tag_name") export OPENVSX_VERSION sudo docker build -t "openvsx:$OPENVSX_VERSION" --build-arg "OPENVSX_VERSION=$OPENVSX_VERSION" . diff --git a/deploy/openshift/openvsx.Dockerfile b/deploy/openshift/openvsx.Dockerfile index 6c0063a3a..b997d1aae 100644 --- a/deploy/openshift/openvsx.Dockerfile +++ b/deploy/openshift/openvsx.Dockerfile @@ -25,10 +25,10 @@ ENV VERSION=$OPENVSX_VERSION RUN git clone --branch ${VERSION} --depth 1 https://github.com/eclipse/openvsx.git /workdir -RUN yarn --version \ - && yarn --cwd webui \ - && yarn --cwd webui install \ - && yarn --cwd webui build:default +RUN cd webui \ + && yarn --version \ + && yarn install --immutable \ + && yarn build:default # Main image derived from openvsx-server FROM ghcr.io/eclipse-openvsx/openvsx-server:${OPENVSX_VERSION}