Skip to content

Commit

Permalink
Cleaned up changes in CLI and remote-desktop dockerfile bits.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekzbigniewdudek committed Oct 8, 2024
1 parent 8abcc03 commit 5297091
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 99 deletions.
9 changes: 0 additions & 9 deletions docker-bits/4_CLI.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

# Narrowing down which quarto related step throws an error:

# Verify what shell variables resolve to:
RUN echo ${QUARTO_VERSION}
RUN echo ${QUARTO_URL}

# Download quarto archive
RUN curl -sLO ${QUARTO_URL}

Expand All @@ -100,9 +94,6 @@ RUN tar -xf quarto-${QUARTO_VERSION}-linux-amd64.tar.gz
# Change file modes
RUN chmod +x quarto-${QUARTO_VERSION}

RUN sudo ls /usr/local/bin
RUN sudo file /usr/local/bin/quarto

# Move binaries to /usr
RUN sudo rm -f /usr/local/bin/quarto
RUN sudo mv ./quarto-${QUARTO_VERSION} /usr/local/bin/quarto
21 changes: 3 additions & 18 deletions docker-bits/6_remote-desktop.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -261,21 +261,9 @@ RUN if [ -f /usr/bin/npx ]; then \
sudo mv -f /usr/bin/npx /usr/bin/npx.old; \
fi

# RUN sudo [ /usr/bin/node -f ] && mv /usr/bin/node /usr/bin/node.old
# RUN sudo [ /usr/bin/npm -f ] && mv /usr/bin/npm /usr/bin/npm.old
# RUN sudo [ /usr/bin/npx -f ] && mv /usr/bin/npx /usr/bin/npx.old

RUN sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/node /usr/bin/node \
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npm /usr/bin/npm \
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npx /usr/bin/npx

# RUN sudo file /usr/bin/node \
# && sudo file /usr/bin/npm \
# && sudo file /usr/bin/npx

# RUN node --version \
# && npm --version \
# && npx --version
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npm /usr/bin/npm \
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npx /usr/bin/npx

RUN npm install @vscode/vsce

Expand All @@ -291,10 +279,7 @@ RUN ls $VSCODE_DIR/extensions
WORKDIR /tmp
RUN rm -fr vscode-lang-pack-install

# We don't need to bother since we deleted the entire node_modules subdirectory.
# RUN npm uninstall -g vsce

# Still need to restore old node, npm, npx files in /usr/bin if they existed.
# Restore old node, npm, npx files in /usr/bin if they existed.
RUN if [ -f /usr/bin/node.old ]; then \
sudo mv -f /usr/bin/node.old /usr/bin/node; \
fi
Expand Down
9 changes: 0 additions & 9 deletions output/jupyterlab-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

# Narrowing down which quarto related step throws an error:

# Verify what shell variables resolve to:
RUN echo ${QUARTO_VERSION}
RUN echo ${QUARTO_URL}

# Download quarto archive
RUN curl -sLO ${QUARTO_URL}

Expand All @@ -157,9 +151,6 @@ RUN tar -xf quarto-${QUARTO_VERSION}-linux-amd64.tar.gz
# Change file modes
RUN chmod +x quarto-${QUARTO_VERSION}

RUN sudo ls /usr/local/bin
RUN sudo file /usr/local/bin/quarto

# Move binaries to /usr
RUN sudo rm -f /usr/local/bin/quarto
RUN sudo mv ./quarto-${QUARTO_VERSION} /usr/local/bin/quarto
Expand Down
9 changes: 0 additions & 9 deletions output/jupyterlab-pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,6 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

# Narrowing down which quarto related step throws an error:

# Verify what shell variables resolve to:
RUN echo ${QUARTO_VERSION}
RUN echo ${QUARTO_URL}

# Download quarto archive
RUN curl -sLO ${QUARTO_URL}

Expand All @@ -179,9 +173,6 @@ RUN tar -xf quarto-${QUARTO_VERSION}-linux-amd64.tar.gz
# Change file modes
RUN chmod +x quarto-${QUARTO_VERSION}

RUN sudo ls /usr/local/bin
RUN sudo file /usr/local/bin/quarto

# Move binaries to /usr
RUN sudo rm -f /usr/local/bin/quarto
RUN sudo mv ./quarto-${QUARTO_VERSION} /usr/local/bin/quarto
Expand Down
9 changes: 0 additions & 9 deletions output/jupyterlab-tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,6 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

# Narrowing down which quarto related step throws an error:

# Verify what shell variables resolve to:
RUN echo ${QUARTO_VERSION}
RUN echo ${QUARTO_URL}

# Download quarto archive
RUN curl -sLO ${QUARTO_URL}

Expand All @@ -286,9 +280,6 @@ RUN tar -xf quarto-${QUARTO_VERSION}-linux-amd64.tar.gz
# Change file modes
RUN chmod +x quarto-${QUARTO_VERSION}

RUN sudo ls /usr/local/bin
RUN sudo file /usr/local/bin/quarto

# Move binaries to /usr
RUN sudo rm -f /usr/local/bin/quarto
RUN sudo mv ./quarto-${QUARTO_VERSION} /usr/local/bin/quarto
Expand Down
30 changes: 3 additions & 27 deletions output/remote-desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

# Narrowing down which quarto related step throws an error:

# Verify what shell variables resolve to:
RUN echo ${QUARTO_VERSION}
RUN echo ${QUARTO_URL}

# Download quarto archive
RUN curl -sLO ${QUARTO_URL}

Expand All @@ -232,9 +226,6 @@ RUN tar -xf quarto-${QUARTO_VERSION}-linux-amd64.tar.gz
# Change file modes
RUN chmod +x quarto-${QUARTO_VERSION}

RUN sudo ls /usr/local/bin
RUN sudo file /usr/local/bin/quarto

# Move binaries to /usr
RUN sudo rm -f /usr/local/bin/quarto
RUN sudo mv ./quarto-${QUARTO_VERSION} /usr/local/bin/quarto
Expand Down Expand Up @@ -506,21 +497,9 @@ RUN if [ -f /usr/bin/npx ]; then \
sudo mv -f /usr/bin/npx /usr/bin/npx.old; \
fi

# RUN sudo [ /usr/bin/node -f ] && mv /usr/bin/node /usr/bin/node.old
# RUN sudo [ /usr/bin/npm -f ] && mv /usr/bin/npm /usr/bin/npm.old
# RUN sudo [ /usr/bin/npx -f ] && mv /usr/bin/npx /usr/bin/npx.old

RUN sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/node /usr/bin/node \
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npm /usr/bin/npm \
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npx /usr/bin/npx

# RUN sudo file /usr/bin/node \
# && sudo file /usr/bin/npm \
# && sudo file /usr/bin/npx

# RUN node --version \
# && npm --version \
# && npx --version
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npm /usr/bin/npm \
&& sudo ln -sfv /tmp/vscode-lang-pack-install/$NODE_VERSION_ARCH/bin/npx /usr/bin/npx

RUN npm install @vscode/vsce

Expand All @@ -536,10 +515,7 @@ RUN ls $VSCODE_DIR/extensions
WORKDIR /tmp
RUN rm -fr vscode-lang-pack-install

# We don't need to bother since we deleted the entire node_modules subdirectory.
# RUN npm uninstall -g vsce

# Still need to restore old node, npm, npx files in /usr/bin if they existed.
# Restore old node, npm, npx files in /usr/bin if they existed.
RUN if [ -f /usr/bin/node.old ]; then \
sudo mv -f /usr/bin/node.old /usr/bin/node; \
fi
Expand Down
9 changes: 0 additions & 9 deletions output/rstudio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

# Narrowing down which quarto related step throws an error:

# Verify what shell variables resolve to:
RUN echo ${QUARTO_VERSION}
RUN echo ${QUARTO_URL}

# Download quarto archive
RUN curl -sLO ${QUARTO_URL}

Expand All @@ -157,9 +151,6 @@ RUN tar -xf quarto-${QUARTO_VERSION}-linux-amd64.tar.gz
# Change file modes
RUN chmod +x quarto-${QUARTO_VERSION}

RUN sudo ls /usr/local/bin
RUN sudo file /usr/local/bin/quarto

# Move binaries to /usr
RUN sudo rm -f /usr/local/bin/quarto
RUN sudo mv ./quarto-${QUARTO_VERSION} /usr/local/bin/quarto
Expand Down
9 changes: 0 additions & 9 deletions output/sas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ RUN \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version

# Narrowing down which quarto related step throws an error:

# Verify what shell variables resolve to:
RUN echo ${QUARTO_VERSION}
RUN echo ${QUARTO_URL}

# Download quarto archive
RUN curl -sLO ${QUARTO_URL}

Expand All @@ -158,9 +152,6 @@ RUN tar -xf quarto-${QUARTO_VERSION}-linux-amd64.tar.gz
# Change file modes
RUN chmod +x quarto-${QUARTO_VERSION}

RUN sudo ls /usr/local/bin
RUN sudo file /usr/local/bin/quarto

# Move binaries to /usr
RUN sudo rm -f /usr/local/bin/quarto
RUN sudo mv ./quarto-${QUARTO_VERSION} /usr/local/bin/quarto
Expand Down

0 comments on commit 5297091

Please sign in to comment.