Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
fix(docker): bring back xdg vars
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Sep 18, 2023
1 parent 1a92877 commit 13b70bf
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion dockerfiles/sfpowerscripts.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ LABEL org.opencontainers.image.title "DX@Scale sfpowercripts docker image - Augu
ENV DEBIAN_FRONTEND=noninteractive


RUN ln -sf bash /bin/sh


RUN apt-get update \
Expand Down Expand Up @@ -65,6 +64,22 @@ RUN npm install --global --omit=dev \
&& npm cache clean --force


# Create symbolic link from sh to bash
# Create isolated plugins directory with rwx permission for all users
# Azure pipelines switches to a container-user which does not have access
# to the root directory where plugins are normally installed
RUN ln -sf bash /bin/sh && \
mkdir -p $XDG_DATA_HOME && \
mkdir -p $XDG_CONFIG_HOME && \
mkdir -p $XDG_CACHE_HOME && \
chmod -R 777 sfdx_plugins && \
export JAVA_HOME && \
export XDG_DATA_HOME && \
export XDG_CONFIG_HOME && \
export XDG_CACHE_HOME



# Install sfdx plugins
RUN echo 'y' | sf plugins:install sfdx-browserforce-plugin@${BROWSERFORCE_VERSION} \
&& echo 'y' | sf plugins:install sfdmu@${SFDMU_VERSION} \
Expand Down

0 comments on commit 13b70bf

Please sign in to comment.