mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
* Build breaks 1 * Build breaks * Build breaks * Build breaks * More build breaks * Build breaks (#2512) * Runtime breaks * Build breaks * Fix dialog location break * Update typescript * Fix ASAR break issue * Unit test breaks * Update distro * Fix breaks in ADO builds (#2513) * Bump to node 16 * Fix hygiene errors * Bump distro * Remove reference to node type * Delete vscode specific extension * Bump to node 16 in CI yaml * Skip integration tests in CI builds (while fixing) * yarn.lock update * Bump moment dependency in remote yarn * Fix drop-down chevron style * Bump to node 16 * Remove playwrite from ci.yaml * Skip building build scripts in hygine check
23 lines
1.3 KiB
Docker
23 lines
1.3 KiB
Docker
# This dockerfile is used to build up from a base image to create an image a cache.tar file containing the results of running "prepare.sh".
|
|
# Other image contents: https://github.com/microsoft/vscode-dev-containers/blob/master/repository-containers/images/github.com/microsoft/vscode/.devcontainer/base.Dockerfile
|
|
|
|
# This first stage generates cache.tar
|
|
FROM mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:dev as cache
|
|
ARG USERNAME=node
|
|
COPY --chown=${USERNAME}:${USERNAME} . /repo-source-tmp/
|
|
RUN mkdir /usr/local/etc/devcontainer-cache \
|
|
&& chown ${USERNAME} /usr/local/etc/devcontainer-cache /repo-source-tmp \
|
|
&& su ${USERNAME} -c "\
|
|
cd /repo-source-tmp \
|
|
&& .devcontainer/cache/before-cache.sh \
|
|
&& .devcontainer/prepare.sh \
|
|
&& .devcontainer/cache/cache-diff.sh"
|
|
|
|
# This second stage starts fresh and just copies in cache.tar from the previous stage. The related
|
|
# devcontainer.json file is then setup to have postCreateCommand fire restore-diff.sh to expand it.
|
|
FROM mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:dev as dev-container
|
|
ARG USERNAME=node
|
|
ARG CACHE_FOLDER="/usr/local/etc/devcontainer-cache"
|
|
RUN mkdir -p "${CACHE_FOLDER}" && chown "${USERNAME}:${USERNAME}" "${CACHE_FOLDER}"
|
|
COPY --from=cache ${CACHE_FOLDER}/cache.tar ${CACHE_FOLDER}/
|